Uutiset:

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

Main Menu
Advertisement:

Remove registration button

Aloittaja Fr3dY, maaliskuu 08, 2005, 05:26:15 AP

« edellinen - seuraava »

Fr3dY

hi guys..just wanna ask how do i remove the registration button on the main page of the forum or anywhere else??...which code and file do i have to edit??..thank you so much for the help..
appreciate it..

Oldiesmann

Admin -> Edit Features and Options
Set "Method of registration employed for new members" to "Registration Disabled".
Michael Eshom
Christian Metal Fans

Fr3dY

thanks..i had done that..however..not only do i wish to disable registration..i want to remove the registration button..i have searched around..and found some thread about this..however..i am still not able to do so. This is what i did at default them index.template.php

function template_menu()



if ($context['user']['is_guest'])
{
/* echo '<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>'; */

echo ' <a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator']'<a>';


}


however, the register button is still there..any idea?

code

Remove the Image, And the code behind it
Far more than just another brick in the wall..

Advertisement: