Customizing SMF > Mod Requests

[PAID/FREE] don't show the registration when it's disabled

(1/3) > >>

tfs:
An oversight in SMF is that when registration is disabled, the landing page still has links to register, which result in an "Error" message.

Mod would work with SMF 2.0 final.

Mod would remove any reference on the login page regarding registration, and (possibly) replace it with a customizable string, where one could notify people that registration is disabled.  Text should be HTML-able so that admin could provide a link to additional information.

I'm not sure what I'd pay for this, but would be interested in seeing what the price would be.  This is really something that should be made part of the SMF codebase.

live627:
Which landing page do you refer to?

JBlaze:
./Sources/Subs.php

--- Code: (find) --- 'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
--- End code ---

--- Code: (replace with) --- 'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'] || (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3),
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
--- End code ---

tfs:

--- Quote from: live627 on June 16, 2011, 06:41:36 PM ---Which landing page do you refer to?

--- End quote ---

The one that new people see when they "land" at your forum.  When they're not logged in.  This is assuming that the forum is setup in such a way that they see nothing beyond the login page unless they're logged in.

tfs:
J, that works great!  How tough would it be to turn it into a mod?

I think with the other stuff... the "Please login below or register an account with %Forum%", I could probably just get rid of that in the language editor.

Navigation

[0] Message Index

[#] Next page

Go to full version