[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.
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 »

This mod wor over IP, righit?
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 session id as IPs may change over the course of your browsing.
Do one thing everyday, that scares you!
onel0ve
Registered User
Posts: 182
Joined: Thu Aug 21, 2008 6:26 pm

Re: [RC] Max Guest Views Before Login

Post by onel0ve »

how to removed this sql

Code: Select all

INSERT INTO `phpbb_config` (
`config_name` ,
`config_value` ,
`is_dynamic`
)
VALUES (
'amount_guest_views', '12', '0'
);

ALTER TABLE `phpbb_sessions` ADD `session_pages_viewed` INT( 3 ) NOT NULL DEFAULT '0';
i wana uninstall this mod
TEF
Registered User
Posts: 298
Joined: Sat Jul 05, 2008 2:15 pm

Re: [RC] Max Guest Views Before Login

Post by TEF »

Edit: Answered my own question.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [RC] Max Guest Views Before Login

Post by darkonia »

very nice mod, thx a lot for your work
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
xconnect
Registered User
Posts: 21
Joined: Sat May 02, 2009 8:07 pm
Location: Berlin, Germany
Name: Nicolas Lehmann
Contact:

Re: [RC] Max Guest Views Before Login

Post by xconnect »

Nice mod! I'll use this one! :D

I have a question:
Is it possible to refresh the "I've seen 12 sites"-view as guest after I close and reopen my browser? Or a time-delay of 30 min, etc. ? Or will my website "remeber" the "I've seen my 12 sites"-views forever?
Last edited by xconnect on Wed Jun 03, 2009 8:10 am, edited 2 times in total.
Greetings xconnect :)
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 »

xconnect wrote:Nice mod! I'll use this one! :D

I have a question:
Is it possible to refresh the "I've seen 12 sites"-view as guest after I close and reopen my browser? Or a time-delay of 30 min, etc. ? Or will my website "remeber" the "I've seen my 12 sites"-views forever?
As long as they have the same ip it will not let them in until the register or login, but if ip changes they can view another 12
Do one thing everyday, that scares you!
User avatar
xconnect
Registered User
Posts: 21
Joined: Sat May 02, 2009 8:07 pm
Location: Berlin, Germany
Name: Nicolas Lehmann
Contact:

Re: [RC] Max Guest Views Before Login

Post by xconnect »

Thx for your answer, I have another question:

Is it possible to exclude special sites from this Mod (for example the page "portal.php" and "rules.php"). Maybe this is an Idea for the next version.

I guess it would be good that guests can see the my portal ("portal.php" and "index.php") and the Top-Links ("rules.php") without having the possibility to ready the topics until they register. :D
Last edited by xconnect on Wed Jun 03, 2009 8:10 am, edited 2 times in total.
Greetings xconnect :)
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 »

xconnect wrote:Thx for your answer, I have another question:

Is it possible to exclude special sites from this Mod (for example the page "portal.php" and "rules.php"). Maybe this is an Idea for the next version.

I guess it would be good that guests can see the my portal ("portal.php" and "index.php") and the Top-Links ("rules.php") without having the possibility to ready the topics until they register. :D
for the time being you could use this
Open - includes/session.php
Find

Code: Select all

				/**
				* Update guest views
				* By Poppertom69
				*/ 
After Add

Code: Select all

				$ignore_pages = array(
					'index.php',
					'portal.php',
					'rules.php',
					'faq.php',
					'ucp.php',
				);	
					
Find

Code: Select all

if ($this->data['user_id'] == ANONYMOUS && $this->page['page_name'] != 'ucp.php')
Replace With

Code: Select all

if ($this->data['user_id'] == ANONYMOUS && !in_array($this->page['page_name'], $ignore_pages))
Then just add new pages to the array for them not to count, no query strings just base page name
Do one thing everyday, that scares you!
User avatar
xconnect
Registered User
Posts: 21
Joined: Sat May 02, 2009 8:07 pm
Location: Berlin, Germany
Name: Nicolas Lehmann
Contact:

Re: [RC] Max Guest Views Before Login

Post by xconnect »

Thx, thats' great!

This mod rules!!! :D
Greetings xconnect :)
User avatar
xconnect
Registered User
Posts: 21
Joined: Sat May 02, 2009 8:07 pm
Location: Berlin, Germany
Name: Nicolas Lehmann
Contact:

Re: [RC] Max Guest Views Before Login

Post by xconnect »

Hi again,

I have a new problem:
I wanted to increase the numbers of viewable sites. ;)

So I change the value "12" in my mysql-database --> "phpbb_config" table --> "config_value" @ "amount_guest_views" into the value "25".

So far so good... The problem is that this took no effect :shock:

I still have to login after I viewed 12 sites instead of 25(!) ... :?

Why that? Help! :D
Greetings xconnect :)
User avatar
RMcGirr83
Former Team Member
Posts: 21595
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC] Max Guest Views Before Login

Post by RMcGirr83 »

You have to purge the cache if doing a direct database entry.
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
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 »

In the acp go to board settings next time and it will stop you from having to go into your database!
Do one thing everyday, that scares you!
User avatar
xconnect
Registered User
Posts: 21
Joined: Sat May 02, 2009 8:07 pm
Location: Berlin, Germany
Name: Nicolas Lehmann
Contact:

Re: [RC] Max Guest Views Before Login

Post by xconnect »

Thx a lot! :D
Greetings xconnect :)
The-Lord
Registered User
Posts: 103
Joined: Thu Jan 31, 2008 12:13 pm

Re: [RC] Max Guest Views Before Login

Post by The-Lord »

Thanks. :)

Works fine on test board. :)
Locked

Return to “[3.0.x] Abandoned MODs”