Page 1 of 1

must be loged in?

PostPosted: Mon Mar 10, 2008 7:59 am
Author: dropstarz
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://www.dropstarz.com

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

This is what i want to accomplish, I have a certian section of my forum that i want people only registered to be able to view, and reply, but i want guest to be able to "see" the section. I have accomplished that much using the premissions which was way easy, But when iam a guess and i click on it, it takes me to the login form, which i knew would happen what i want it to do is say "you must create an account to view this area" Kind of like a teaser. Iam sure you seen other sites that have that kind of message pop up then it takes then to the login page or to the registeration page. Let me know if someone knows how to accomplish this task.

ty
mikeb

Re: must be loged in?

PostPosted: Wed Mar 12, 2008 5:48 am
Author: dropstarz
bump cause i need to get a solution if anyone knows of any

Re: must be loged in?

PostPosted: Wed Mar 12, 2008 1:40 pm
Author: DjPorkchop
Now Im no pro by no means, but I think them messages are embedded in the database. BUT i could be wrong. I really stink when it comes to sql so I would wait for further confirmation on this.

I will look at my files and db and let you know if I find anything out.

Re: must be loged in?

PostPosted: Wed Mar 12, 2008 7:20 pm
Author: Helter
Code: Select all
############################################################### Title]------------------------------------------#viewforum.php  ##-----[ FIND ]------------------------------------------#       $message = ( !$is_auth['auth_view'] ) ? $lang['Forum_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);       message_die(GENERAL_MESSAGE, $message);  ##-----[ REPLACE WITH ]------------------------------------------#  /*  Original phpBB code - commented out for Redirection Suite MOD     $message = ( !$is_auth['auth_view'] ) ? $lang['Forum_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);       message_die(GENERAL_MESSAGE, $message);*/  //// MOD: Redirect From Private Forum (Forum)//       if( !$is_auth['auth_view'] )     {         // URL for redirection from private forum         $redirect = "index.$phpEx";           // If the above URL points to a location outside the phpBB directories         // move the slashes on the next line to the start of the following line:         //redirect(append_sid($redirect, true), true);         redirect(append_sid($redirect, true));     }     else     {         $message = sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);           message_die(GENERAL_MESSAGE, $message);     }  //// MOD: -END-//  ##-----[ OPEN ]------------------------------------------#viewtopic.php  ##-----[ FIND ]------------------------------------------#       $message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);       message_die(GENERAL_MESSAGE, $message);  ##-----[ REPLACE WITH ]------------------------------------------#    /*  Original phpBB code - commented out for Redirection Suite MOD     $message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);       message_die(GENERAL_MESSAGE, $message);*/  //// MOD: Redirect From Private Forum (Topic)//       if( !$is_auth['auth_view'] )     {         // URL for redirection from topic in private forum         $redirect = "index.$phpEx";           // If the above URL points to a location outside the phpBB directories         // move the slashes on the next line to the start of the following line:         //redirect(append_sid($redirect, true), true);         redirect(append_sid($redirect, true));     }     else     {         $message = sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);           message_die(GENERAL_MESSAGE, $message);     }  //// MOD: -END-//  ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## End