MyBB Community Forums

Full Version: shoutbox updates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
do u know how to make avatar appear on shoutbox before the username?