Page 1 of 1
Need to Register! Message
Posted: 27 Apr 2010, 03:30
by syberpro
Hello since i hide my forum from guest when they click a topic they see following:
How can i make them see this rather:
( Thats the login page )
Re: Need to Register! Message
Posted: 27 Apr 2010, 06:36
by Stoker
You can't because registering would not allways give access to a forum.
It could be a moderator forum.
Re: Need to Register! Message
Posted: 27 Apr 2010, 10:01
by Steve
Stoker true,
but if you want add this to the viewforum_body.html
Code: Select all
<!-- IF not S_ADMIN_AUTH and S_REGISTER_ENABLED -->
<td class="row1" align="center">
<p class="genmed">{L_LOGIN_INFO}</p>
<p class="genmed" align="center">
<a href="{U_TERMS_USE}">{L_TERMS_USE}</a> | <a href="{U_PRIVACY}">{L_PRIVACY}</a> | <!-- IF not S_ADMIN_AUTH and S_REGISTER_ENABLED --> <a class="gensmall" href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --> </p>
</td>
<!-- ENDIF -->
in your style/template/viewforum_body.html
find:
Code: Select all
<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" /> <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /><!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF --> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
and add before you may need to do some tweeking to your html as i dont know that style.
Re: Need to Register! Message
Posted: 27 Apr 2010, 16:02
by Marcus Vinny
This kind of thing just amazes its visitors ...
But to be simple enough to put this in viewtopic.php:
Open: viewtopic.php, find:
Add after:
Code: Select all
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
This always displays the login page for unregistered users.
Re: Need to Register! Message
Posted: 27 Apr 2010, 23:57
by syberpro
no no i want my guest to see what my forum looks like.. before registering.. like what are the topics and post.. and all
not like... go on site and BAM need register
Re: Need to Register! Message
Posted: 28 Apr 2010, 00:01
by Steve
Did you read my post and try it ?
Re: Need to Register! Message
Posted: 28 Apr 2010, 04:33
by syberpro
i want to know what it does before modifying
Re: Need to Register! Message
Posted: 28 Apr 2010, 10:09
by Steve
Subsilver2 based style so mine looks like this:
sub.PNG