Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

how to add buttons besides home, help search etc.

Aloittaja RobbieB, huhtikuu 28, 2006, 03:55:07 IP

« edellinen - seuraava »

RobbieB

I installed the arcade package and that works fine and all, but now I need to put a button so people know its there.

I found the file I think I need to edit but I need some help since what I tried didn't work.

I believe the file is
sources/themes.php

Right after the show home and help button, I tried putting this code

// The [arcade]!
if ($context[\'allow_arcade\'])
echo \'
<a href="\', $scripturl, \'?action=arcade">\', ($settings[\'use_image_buttons\'] ? \'<img src="\' . $settings[\'images_url\'] . \'/\' . $context[\'user\'][\'language\'] . \'/arcade.gif" alt="\' . $txt[\'arcade\'] . \'" border="0" />\' : $txt[\'arcade\']), \'</a>\', $context[\'menu_separator\'];


However, the button still isn't showing up AND I'm logged in as admin... although that shouldn't matter because I changed permissions so everyone can see arcade.

RobbieB

#1
my index.template.php doesn't have code like the themes.php

I found the spot that displays the menu but I can't chagne it.


<tr class="windowbg2">
<td colspan="2" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">';

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</td>
</tr>';


I'm using Classic YaBB SE Theme

porcelainprincess

Keep scrolling down and look for the following:

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()

RobbieB

Thanks porcelainprincess that's where it was. just didn't scroll down enough.

Advertisement: