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

Support for IntegraMOD 141

Moderator: Integra Moderator

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

PostAuthor: astroman » Thu Apr 19, 2007 6:00 pm

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?
Last edited by astroman on Tue Apr 24, 2007 10:30 am, edited 1 time in total.

astroman
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 5:51 pm
Cash on hand: 0.00

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

PostAuthor: Helter » Thu Apr 19, 2007 10:42 pm

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.
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

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

PostAuthor: astroman » Fri Apr 20, 2007 7:02 am

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.
Last edited by astroman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

astroman
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 5:51 pm
Cash on hand: 0.00

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

PostAuthor: Helter » Fri Apr 20, 2007 6:51 pm

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
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: tmotley » Fri Apr 20, 2007 8:11 pm

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.
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

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

PostAuthor: astroman » Fri Apr 20, 2007 8:36 pm

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!
Last edited by astroman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

astroman
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 5:51 pm
Cash on hand: 0.00

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

PostAuthor: astroman » Mon Apr 23, 2007 9:20 am

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...
Last edited by astroman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

astroman
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 5:51 pm
Cash on hand: 0.00

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

PostAuthor: astroman » Tue Apr 24, 2007 10:29 am

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!
Last edited by astroman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

astroman
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 5:51 pm
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]