Not Solved shoutbox updates
#1
Not Solved
where in newthread.php and newreply.php i insert this php code to have forum post(s) updates in changfcb shoutbox?

help me please


[Image: 2wrm6ax.png]

		###########################################################
		#### MODIFIED FOR SHOUTBOX POST?REPLY NOTICE
			require_once('chatbox/functions.php');
			require_once('chatbox/config.php');
			$huid = $mybb->user['uid'];
			$hgroupid = $mybb->user['usergroup'];
			$fcb_musername = format_name($mybb->user['username'], $mybb->user['usergroup'], $mybb->user['displaygroup']);
			$huser = $mybb->user['username'];
			$hmess = '/me posted the thread ' . $mybb->input['subject'] . ' http://yoursite.com/showthread.php?tid=' . $tid;
			
					 $shout['username'] = $fcb_musername;
					 $shout['message'] = $hmess;
					if ($config['strip_slash'])
					{
						$shout['username'] = stripslashes($shout['username']);
						$shout['message'] = stripslashes($shout['message']);
					}

					$shout['userid'] = intval($mybb->user['uid']);
					$shout['groupid'] = intval($mybb->user['usergroup']);
					$shout['color'] = strip_tags('white');
					$shout['font'] = strip_tags('arial');
					$shout['dateline'] = time();
			
					$smilies = unserialize(file_get_contents('chatbox/' . $fcbfile['ds_smilie']));
					// save chat message
					$handle = fopen('chatbox/' . $fcbfile['message'],"a");
					fwrite($handle, build_chat($shout)."\n");
					fclose($handle);
			
			
		
		#### MODIFIED FOR SHOUTBOX POST?REPLY NOTICE
		###########################################################
[/QUOTE]
Reply
#2
Not Solved
This user has been denied support. This user has been denied support.
do u know how to make avatar appear on shoutbox before the username?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)