[ABD] Max Guest Views Before Login

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

[ABD] Max Guest Views Before Login

Post by poppertom69 »

MOD Title: Max Guest Views Before Login
MOD Description: Allows you to set a number of pages before a guest viewing your forum needs to login or register to continue browsing

MOD Version: 1.0.1
phpBB Version: 3.0.4

Author: Poppertom69

Features:
  • All configured in acp just have to say how many number of page they can view in board settings and your done
  • Can be installed using Auto Mod.
MOD Format:
MODX

Screenshots:
Image

Support:
PHPBB Topic

Planned Features:
  • None as of yet
Note:
  • If you would like to suggest a feature, please reply to this topic.
  • it counts towards every page visited e.g. index, search, viewforum, viewtopic so you may want to take that into account when setting the x amount of pages
Download
Download Guest Views

None Issues with 1.0.1
None as of yet

Upgrading from 1.0.0 to 1.0.1
Open - includes/session.php
Find

Code: Select all

if ($this->data['user_id'] == ANONYMOUS)
Replace With

Code: Select all

if ($this->data['user_id'] == ANONYMOUS && $this->page['page_name'] != 'ucp.php')
Last edited by poppertom69 on Fri May 15, 2009 10:08 am, edited 4 times in total.
Do one thing everyday, that scares you!
User avatar
Tophon
Registered User
Posts: 212
Joined: Wed Oct 22, 2008 12:19 am
Contact:

Re: [RC] Max Guest Views Before Login

Post by Tophon »

Great idea, was only asked about this a few weeks back.

Does it work via cookies the same as the VB one?
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

No it uses the phpbb sessions table so you can't delete the cookie and carry on viewing hope that explains
Do one thing everyday, that scares you!
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [RC] Max Guest Views Before Login

Post by Peter77sx »

Great! I will test this out today. great idea :)
User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [RC] Max Guest Views Before Login

Post by Lisbon »

Thei can see x pages or topics? or page in topics?
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

it counts towards every page visited e.g. index, search, viewforum, viewtopic so you may want to take that into account when setting the x amount of pages
Do one thing everyday, that scares you!
User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [RC] Max Guest Views Before Login

Post by Lisbon »

Cool. Great mod ;)
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [RC] Max Guest Views Before Login

Post by jmjm003 »

Did some testing.
After viewing 12 pages and being blocked. I couldn't even get to the register page as I remained blocked.
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

oops I attached the wrong xml file with that fix damn! sorry will post update 2moz
Do one thing everyday, that scares you!
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

jmjm003 wrote:Did some testing.
After viewing 12 pages and being blocked. I couldn't even get to the register page as I remained blocked.
Fix included in first post sorry everyone
Do one thing everyday, that scares you!
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [RC] Max Guest Views Before Login

Post by jmjm003 »

Tested your fix. It does allow me to the register page.

Have something else that's rather odd.
Here's how I repeat the issue. I logout of my forum so I'm a guest. I click on the register link. Everything works fine. After viewing 12 pages and then returning to the register link. I can no longer view the captcha image.

As long as I go to the register link prior to the 12 views it works fine. After viewing 12 pages it no longer works.

I log back in and then out again and it shows.

Is this an issue with your mod?
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

jmjm003 wrote:Tested your fix. It does allow me to the register page.

Have something else that's rather odd.
Here's how I repeat the issue. I logout of my forum so I'm a guest. I click on the register link. Everything works fine. After viewing 12 pages and then returning to the register link. I can no longer view the captcha image.

As long as I go to the register link prior to the 12 views it works fine. After viewing 12 pages it no longer works.

I log back in and then out again and it shows.

Is this an issue with your mod?


hmm you seem to be right i'll look into this tomorrow that is very strange.
Do one thing everyday, that scares you!
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

ok fixed was to do with other fix read first post

rechange the line with the new line
Do one thing everyday, that scares you!
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [RC] Max Guest Views Before Login

Post by jmjm003 »

That appears to have fixed the issue.

Thank you.
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [RC] Max Guest Views Before Login

Post by poppertom69 »

New release with fix added
Do one thing everyday, that scares you!
Locked

Return to “[3.0.x] Abandoned MODs”