Page 1 of 1

[SOLVED] "Read more..." option for guests?

PostPosted: Thu Apr 19, 2007 6:00 pm
Author: astroman
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://www.littleelmforums.com

PHP Version: 2.22
MySQL Version:


What was done before the problem appeared?
N/A


What was done to try to solve the problem?
N/A



De.scription and Message

I wonder is there's a way to limit guests time or make postings "Read more..." then sending them to to the registration page. Can it be done?

Re: "Read more..." option for guests?

PostPosted: Thu Apr 19, 2007 10:42 pm
Author: Helter
you can use the FTR mod, found in the acp to force them to read a specific post and restrict them from posting. You can restrict them from even seeing certain forums, which could motivate them to register.

Re: "Read more..." option for guests?

PostPosted: Fri Apr 20, 2007 7:02 am
Author: astroman
FTR is a nice feature on IntegraMod but the only problem I see is that it logs guests as "Anonymous" so after one guest reads FTR all the others come and go without reading it until I go in and delete the "Anonymous" user entry from FTR Users. Is there a way to stop saving this entries, only the guest entires? I selected "New members" on the FTR configuration.

Re: "Read more..." option for guests?

PostPosted: Fri Apr 20, 2007 6:51 pm
Author: Helter
you could add this mod (Welcome Panel on Index)
http://www.integramod.com/forum/dload.p ... ile_id=102

it will not force users to read a post, but it will suggest the post, or link of your choosing until they are logged in

PostPosted: Fri Apr 20, 2007 8:11 pm
Author: tmotley
I saw a mod somewhere that only shows the first post of each topic unless you are logged in as a registered user.

Would that work? If so, I'll try to find it.

Re: "Read more..." option for guests?

PostPosted: Fri Apr 20, 2007 8:36 pm
Author: astroman
Welcome panel on index is an option, but the mod that tmotley suggests sound very interesting. I would give it a try if you can point me to it.

Thanks all for you support!

Re: "Read more..." option for guests?

PostPosted: Mon Apr 23, 2007 9:20 am
Author: astroman
OK, I found the mod but could not find the following code in profile.php"

Code: Select all
#-----[ OPEN ]------------------------------------------ # profile.php # #-----[ FIND ]------------------------------------------ # //// End page specific functions// ---------------------------  # #-----[ AFTER, ADD ]------------------------------------------ # // Start Guest See Only First Post by Wicherif ( isset($HTTP_GET_VARS[POST_DATA_URL]) ){     $data_url = $HTTP_GET_VARS[POST_DATA_URL];     if ( $data_url == 'gosfp_registered' )     {         //         // Update the GSOFP realregisters counter         //         $sql = "UPDATE " . GSOFP_TABLE . "             SET GSOFP_realregisters = GSOFP_realregisters + 1";         if ( !$db->sql_query($sql) )         {             message_die(GENERAL_ERROR, "Could not update GSOFP realregisters counter.", '', __LINE__, __FILE__, $sql);         }     }}// End Guest See Only First Post by Wicher


I stopped since I thought that there will be many other things that won't match the mod...

Re: "Read more..." option for guests?

PostPosted: Tue Apr 24, 2007 10:29 am
Author: astroman
OK I found a solution on a posting on another site:

Open viewtopic.php and find:

init_userprefs($userdata);


After, add:

///////////////////////////////
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid("login.$phpEx?redirect=viewforum.$phpEx", true));
}
//////////////////////////////

Now guests can see topics but are directed to the loggin page when they try to read any topic!