MyBB Community Forums

Full Version: help me out here.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
please i would like to add a like where my top links are to my chat url.i am using alitalk chat script.please can anyone help me out?
Go into your header template and look for the rest of your top links. You can then basically copy the format for one of them and just change the image to your chat.gif and the link to your chat script url.

for example, this is what you would look for:

<div class="menu">
				<ul>
		<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" /><span class="smalltext">{$lang->toplinks_search}</span></a></li>

You would copy from the <li> to the </li> and paste it where you want the chat image to show up, then just change search.php to chat.php (or if the script is not within your forum directory, you replace {$mybb->settings['bburl']}/search.php with the entire url of your where your chat is. Then replace search.gif with a new chat.gif image (you might need to find or make it yourself) and then replace {$lang->toplinks_search} with something like Chat Room. Hope that helps.
this is what i got.

Parse error: syntax error, unexpected T_STRING, expecting '}' in /home/obinna/public_html/forum/global.php(336) : eval()'d code on line

what should i do next
You must have left one of the old { in the template. Paste the top links area in your header, so we can see what needs to be taken out.
its working put its only showing the image(chat image) but it is not showing the word chat.please what should i do
Please follow judel's instructions and paste your header template here so we can see it.
thanks its all resolved.the topic can now be closed