News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

tried to add a button and just got errors

Started by tinatoth, June 03, 2005, 08:06:58 PM

Previous topic - Next topic

tinatoth

ive searched the board for this and yes there are many answers to it but none of them worked. 

ive put this:

echo '
<a href="http://www.audiojunkies.net">', ($settings['use_image_buttons'] ? '<img src="http://www.audiojunkies.net/Themes/AJ_Default_Theme/images/english/ajhome.gif" alt="AJ Home" style="margin: 2px 0;" border="0" />' : AJ Home), '</a>';



right under:



// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;



and i got some parsing error. then i put it in the end of the list of buttons, then it gave me some other kind of error....


can anyone tell me what on earth im doing wrong??

[edit]
this is the error it gives me now:

Template Parse Error!
There was a problem loading the /Themes/AJ_Default_Theme/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

tinatoth

ok found the solution:

Quote from: A.M.A on October 30, 2004, 05:08:08 PM
try this:
echo '
<a href="http://www.topspotz.com/in.php?site=1044479199" target="_blank"><img src="http://www.disciplesofwrestling.ca/pic/top/black.gif" alt="Vote for us here" style="margin: 2px 0;" border="0" /></a>', $context['menu_separator'];


Advertisement: