This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

MB Themes

Unregistered users
« on: July 07, 2016, 10:44:10 AM »
Hello guys,
Today there has been update to 1.0.3 version that allows messaging to unregistered users as well without need to register.
Check and leave feedback ;)

// Note that you need to uninstall and install plugin again.
« Last Edit: July 07, 2016, 10:51:19 AM by frosticek »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #1 on: August 22, 2016, 01:08:44 PM »
i am having trouble with unregistered user message taking over the threads from other users.

i had done test message for an item 2 weeks ago and now a message has been sent by a real user but this users message have been merged with the test message i had been sending. i was using a logged in user for the test but the real user is not logged in

here is a screenshot of the thread

the test messengers name has changed the real users name. but the phone number stayed the same for the test message.

i have noticed similar behaviour with other test messages.

how does the plugin organgise the threads? by email or ip and item?


i also have trouble with removing threads . when i remove threads they do seem to be removed from within the admin panel but when a message gets sent the old threads reappear with in that new message thread :-\

« Last Edit: August 22, 2016, 01:18:21 PM by BabyDunk »
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #2 on: August 22, 2016, 01:12:13 PM »
the only modification i have made to the plugin is on line 185 of the index.php

i changed this
Code: [Select]
$to_user_name = $item['s_contact_name'];

to this
Code: [Select]
$to_user_name = osc_username_now();

and that function looks like this
Code: [Select]
<?php
// Display UserName
    
function osc_username_now(){
        if( 
osc_item_user_id() <> && osc_item_user_id() <> '') {
        
$user User::newInstance()->findByPrimaryKeyosc_item_user_id() );
        return 
$user['s_username'];
    } else {
        return 
false;
    }
}
?>



I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #3 on: August 22, 2016, 01:15:09 PM »
oooh and i made a change in how the contact name is got in my theme.

with this
Code: [Select]
<?php
// Child Class for Contact::Form
class myContactForm extends ContactForm {

    static public function 
your_username() {
        if( 
Session::newInstance()->_getForm("yourName") != "" ) {
            
$name Session::newInstance()->_getForm("yourName");
            
parent::generic_input_text("yourName"$namenullfalse);
        } else {
            
parent::generic_input_text("yourName"BO_username_commentator_now(), nullfalse);
        }
        return 
true;
    }
}
?>


and the function used here is this
Code: [Select]
<?php
// Display Commentator UserName
    
function BO_username_commentator_now(){
        if( 
osc_logged_user_id()  <> && osc_logged_user_id()  <> '') {
        
$user User::newInstance()->findByPrimaryKeyosc_logged_user_id()  );
        return 
$user['s_username'];
    } else {
        return 
false;
    }
}
?>

« Last Edit: August 22, 2016, 01:19:16 PM by BabyDunk »
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Unregistered users
« Reply #4 on: August 22, 2016, 01:21:51 PM »
@BabyDunk
For phone number, it will not change as it is placed inside message. There is no function that would get it from user profile.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #5 on: August 22, 2016, 01:27:33 PM »
here is a thread from 2 diffrerent items and 2 different users being merged
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Unregistered users
« Reply #6 on: August 22, 2016, 01:29:23 PM »
@BabyDunk
Can you do this on our demo site?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #7 on: August 22, 2016, 01:30:00 PM »
i will give it a go and see if i can .
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #8 on: August 22, 2016, 01:40:46 PM »
i cant try it on your system . spam protect plugin bans me everytime i send a message.
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Unregistered users
« Reply #9 on: August 22, 2016, 01:47:53 PM »
@BabyDunk
What are you doing? :D
I have disabled it for while.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #10 on: August 22, 2016, 01:54:45 PM »
im gonna try and get the same result as i receive on my system :D lol

i havent received my activation email for registration. can you activate me please :D
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Unregistered users
« Reply #11 on: August 22, 2016, 01:56:43 PM »
@BabyDunk
Done.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #12 on: August 22, 2016, 02:03:22 PM »
thanks :D  need listing activated now thanks
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Unregistered users
« Reply #13 on: August 22, 2016, 02:11:56 PM »
Done
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Unregistered users
« Reply #14 on: August 22, 2016, 02:14:35 PM »
can you activate a second account please :D

I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D