[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
oxfordsi
Registered User
Posts: 266
Joined: Sun Jan 06, 2008 10:06 pm
Location: Witney, Oxfordshire, UK

Re: [RC] Max Guest Views Before Login

Post by oxfordsi » Tue Jul 28, 2009 1:15 am

Great MOD, thank you!

geishinhan
Registered User
Posts: 31
Joined: Thu May 28, 2009 2:56 am

Re: [RC] Max Guest Views Before Login

Post by geishinhan » Sat Aug 08, 2009 11:18 am

I have a problem that is the board not show the anouce of the page they was visit
Sorry for my bad English
this is my site: http://chuyen.haclonghoi.co.cc and http://chipchip.haclonghoi.co.cc

geishinhan
Registered User
Posts: 31
Joined: Thu May 28, 2009 2:56 am

Re: [RC] Max Guest Views Before Login

Post by geishinhan » Wed Aug 12, 2009 6:49 am

nobody help? Iam using 3.0.5

purusam
Registered User
Posts: 440
Joined: Sat Feb 02, 2008 10:31 pm

Re: [RC] Max Guest Views Before Login

Post by purusam » Thu Aug 27, 2009 11:29 am

i got this fault

this happend when i as guest viwed 10 pages and this mod told me that i should register or logg in.
if i just close the browser and go to my root (www.luftvapen.info) i get this fault:

any solution for this ?
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2141: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2141: strtr() [function.strtr]: The second argument is not an array


template->_tpl_load_file(): File /login_body.html does not exist or is empty

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [RC] Max Guest Views Before Login

Post by autinhyeu » Sat Sep 05, 2009 6:41 pm

Debug:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3884: Undefined index: is_registered
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4143: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3307)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4145: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3307)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4146: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3307)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4147: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3307)
around line 3884 to 3904

Code: Select all

	if ($user->data['is_registered'])
	{
		$sql = "SELECT count(id) as total FROM " . DL_CAT_TABLE . "
			WHERE bug_tracker = 1";
		$result = $db->sql_query($sql);
		
		if ($result)
		{
			$row = $db->sql_fetchrow($result);
		}
		$db->sql_freeresult($result);
		
		if ($row['total'] != 0)
		{
			$template->assign_var('S_BUGTRACKER_ON', true);
			$template->assign_vars(array(
				'L_BUG_TRACKER' => $user->lang['DL_BUG_TRACKER'],
				'U_BUG_TRACKER' => append_sid("{$phpbb_root_path}downloads.{$phpEx}?view=bug_tracker"))
			);
		}
	}
:(
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [RC] Max Guest Views Before Login

Post by autinhyeu » Sun Sep 06, 2009 8:11 pm

no have any ideas for this problem :?: :?: :?:
This problem of session file, but i can't fix... i need help from the mod Author.

Thanks!!!
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [RC] Max Guest Views Before Login

Post by autinhyeu » Tue Sep 08, 2009 5:34 pm

I had remove this MOD in my board, thanks you ;)

Autinhyeu
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] Max Guest Views Before Login

Post by 4_seven » Tue Sep 08, 2009 6:15 pm

by autinhyeu » Sat Sep 05, 2009 7:41 pm
testwise add before that

Code: Select all

	if ($user->data['is_registered'])
	{
		$sql = "SELECT count(id) as total FROM " . DL_CAT_TABLE . "
			WHERE bug_tracker = 1";
		$result = $db->sql_query($sql);
		
		if ($result)
		{
			$row = $db->sql_fetchrow($result);
		}
		$db->sql_freeresult($result);
		
		if ($row['total'] != 0)
		{
			$template->assign_var('S_BUGTRACKER_ON', true);
			$template->assign_vars(array(
				'L_BUG_TRACKER' => $user->lang['DL_BUG_TRACKER'],
				'U_BUG_TRACKER' => append_sid("{$phpbb_root_path}downloads.{$phpEx}?view=bug_tracker"))
			);
		}
	}
this

Code: Select all

global user;
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Haldirman
Registered User
Posts: 49
Joined: Tue Apr 14, 2009 1:01 pm
Location: ./adm/index.php
Contact:

Re: [RC] Max Guest Views Before Login

Post by Haldirman » Wed Sep 09, 2009 12:13 pm

Thanks :D. Very nice MOD. I have 1 question: Is it possible to make a code in overall_header that would dispay the guests something like "You have x pages left for visit before you will be redirected to login page"?

Thanks in advance.

Highway311
Registered User
Posts: 75
Joined: Fri May 25, 2007 2:42 am
Location: Thailand
Contact:

Re: [RC] Max Guest Views Before Login

Post by Highway311 » Sun Oct 25, 2009 7:55 am

Thank you for this Mod, is a great Mod.
Sorry for my bad English.

Live every day so as if it were your last day with the dear female students in this lovely world

User avatar
ALpa # Gun
Registered User
Posts: 80
Joined: Thu May 28, 2009 6:43 pm
Location: Austria / Vienna

Re: [RC] Max Guest Views Before Login

Post by ALpa # Gun » Sun Oct 25, 2009 2:30 pm

SQL ERROR [ mysqli ]

Unknown column 'session_pages_viewed' in 'field list' [1054]

help please

faqbch99
Registered User
Posts: 48
Joined: Mon Nov 03, 2008 9:52 pm

Re: [RC] Max Guest Views Before Login

Post by faqbch99 » Thu Nov 05, 2009 4:21 am

Been looking for something like this.. Thanks.

User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

Re: [RC] Max Guest Views Before Login

Post by katib » Fri Nov 06, 2009 2:26 pm

Nice Mod
However I have two request to fine tune it:
1- Is it possible to spcify the pages to include or to exclude in ACP?
there is already a workaround for "pages to exclude": http://www.phpbb.com/community/viewtopi ... 5#p9719785
But, "pages to include" is more practical, because one would to restrict guest acess to Viewtopic.php only, usefull infos are in topic content
There is no need to count faq.php, rules.php, memberlist.php...

2- is it possible to make it forum dependant? because one may have forums for introducing, faq, off-topic..etc So one need not to count guest veiwing pages from such forums !!
Indeed it is recommended to allow guest to read those forums as much as possible to get an idea about board

nexum
I've Been Banned!
Posts: 156
Joined: Tue May 25, 2004 8:36 pm

Re: [RC] Max Guest Views Before Login

Post by nexum » Thu Nov 19, 2009 9:44 am

anyone tested it with 3.0.6 ?

User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [RC] Max Guest Views Before Login

Post by tumba25 » Thu Nov 19, 2009 1:31 pm

The MOD author has not posted in this topic since June 2009, so I'll lock this as abandoned.

If the MOD author wants to continue with this MOD he/she can pm me or some other MOD team member.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Locked

Return to “[3.0.x] Abandoned MODs”