Need to Register! Message

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

Need to Register! Message

Post by syberpro »

Hello since i hide my forum from guest when they click a topic they see following:

Image

How can i make them see this rather:

Image

( Thats the login page )

Re: Need to Register! Message

Post 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

Post 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" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /><!-- IF S_AUTOLOGIN_ENABLED -->&nbsp; <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->&nbsp; <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

Post 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:

Code: Select all

$user->setup('memberlist'); 
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

Post 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

Post by Steve »

Did you read my post and try it ?

Re: Need to Register! Message

Post by syberpro »

i want to know what it does before modifying

Re: Need to Register! Message

Post by Steve »

Subsilver2 based style so mine looks like this:
sub.PNG