Viewing 15 replies - 1 through 15 (of 39 total)
  • I can’t recall if I did a cookie or an option. But it should recall what you set it to be when you log in. This is the behavior in version 1.1.7.

    Thread Starter mborin

    (@mborin)

    I need it to be open on every new session even if it was closed before. Any way to do that?

    In the bp-chat.php file, right after the last get_usermeta ….. chat_hide
    call just put $chat_hide = ‘false’;

    Example:

    function addChatShoutbox()
    {
    	global $bp;
    
    	$current_url = site_url() . $_SERVER['REQUEST_URI'];
    	$this_chat_url = $bp->loggedin_user->domain . $bp->chat->slug;
    
    	if ((isset( $_REQUEST['close'] )) && ($_REQUEST['close'] == 'yes') )
    	{
    		#Enable showing chat for this session only
    		update_usermeta( (int)$bp->loggedin_user->id, 'chat_hide', attribute_escape("true") );
    	}
    
    	if ((isset( $_REQUEST['close'] )) && ($_REQUEST['close'] == 'no') )
    	{
    		#Disable showing chat for this session only
    		update_usermeta( (int)$bp->loggedin_user->id, 'chat_hide', attribute_escape("false") );
    	}
    	$chat_hide = "true";
    	if ( get_usermeta( (int)$bp->loggedin_user->id, 'chat_hide') != "" )
    	{
    		$chat_hide = get_usermeta( (int)$bp->loggedin_user->id, 'chat_hide');
    	}
            $chat_hide = "false";

    Thread Starter mborin

    (@mborin)

    That did not work. When I entered my site shoutbox did not open automatically. I think having this feature (shoutbox open on entry to site) will engage more users to participate in chat. When I used another shoutbox plugin as a side widget I had a lot of members chatting. But now there’s almost no one ever there. I did not like using a widget since it took up too much space so having the bp-chat shoutbox pop up on entry to site (new browser session) would be a great feature.

    Hi,

    Do you mean have the full blown chat pop out in to a new window?
    I could do that too.

    Should this be a configurable option of the user or admin?

    Thread Starter mborin

    (@mborin)

    Not the chat, just the shoutbox. This should be an option in the admin.

    Thread Starter mborin

    (@mborin)

    The shoutbox should pop up as it does now when a user selects to open it. But instead of having the user do this manually the shoutbox should pop up upon entry to the site. If user decides to close it then it will stay closed until he opens it again manually. This way the shoutbox is always visible upon entry to the site for new users who are not aware that they can participate in a chat. This will increase participation in chat 1000%.

    Ok, I’m looking at making an admin/settings page. I can add it in there.

    Thanks,
    Dave

    This is now an option in the admin panel.

    Enjoy,
    Dave:)

    Thread Starter mborin

    (@mborin)

    Thanks! There’s a bug in your latest version. After closing shoutbox it opens up again.

    Thread Starter mborin

    (@mborin)

    I get this error in chat:

    Notice: Only variable references should be returned by reference in /wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/lib/class/CustomAJAXChat.php on line 182

    Thread Starter mborin

    (@mborin)

    Also “Admin is offline” is always on and next to the Submit button there is a “0/1040” displayed, not sure what that is.

    Thread Starter mborin

    (@mborin)

    When shoutbox is minimized it does not stay minimized as I move through the site’s pages.

    Thread Starter mborin

    (@mborin)

    More bugs…. When I activate any plugin I always get the folliwng error:

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/buddypress-ajax-chat/bp-chat.php:480) in /wp-includes/pluggable.php on line 868

    Is this single or mu?

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘[Plugin: Buddypress-Ajax-Chat] Any way to make Shoutbox open automatically on session start?’ is closed to new replies.