Age lock down and link shows if age and anoth posts = ture

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72352
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by KevC »

rexzooly wrote:i do want to check there age but not with like avaidated as most people don't have Drivers L or passports i have never.
There isn't any other way to do it. If they say they're 16+ you have no right to ask them to prove it and you have no other way to confirm it.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
Jim_UK
Former Team Member
Posts: 18480
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Re: Age lock down and link shows if age and anoth posts = ture

Post by Jim_UK »

Clearly you will require some sort of mod to be able to do what you want so I have moved your topic to Mod Requests Forum.

What you would require would be a mod that placed your users into usergroups when they register with that usergroup being determined by age (and not post count)
You would then require that their age be entered as a new field in the user table. This could be achieved by the Birthday Mod
With that in place you could use the usergroup system to be able to grant access or not to the various areas of your board.

I do agree with Kevin though that they would just lie about their age if it suited them to do so (if they thought they were missing something)


Jim
The truth is out there.
Unfortunately they will not let you anywhere near it!
rexzooly
Registered User
Posts: 18
Joined: Sat Apr 01, 2006 1:55 am
Location: uk
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by rexzooly »

agreed that what the limited post was going to be for so we can want what thay was saying before thay was promited to go on the messenger if nothing is flaged then the memebers would be able to use the messeger.

i looked at that link mod he says there a 1.1.1 version but i can't find it.

and if this fails how would i get a menu link to show if thay just a rank that other one blocks link i don't want
to block link posting i want to just add a link if rank = so so at the top as i would add the messenger manul
until another way comes avable.

if there is any good modders that is able to help out free or pay when the site starts getting on its feet that
would be great. thanks all.
rexzooly
Registered User
Posts: 18
Joined: Sat Apr 01, 2006 1:55 am
Location: uk
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by rexzooly »

Anyone whom can help would be great as i have had to hold back on the messenger until this is done
and i am no getting member contacting me as there waiting for this option to become live.
the messenger is ready just need to add this mod even if its just a set of ranks that show the
link in the menu just like when i login there are admin links i need a rank link to show the messenger.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by Lumpy Burgertushie »

I don't know about anyone else, but I have a really hard time even understanding what you are saying.

As far as the thing about keeping them out unless they are a certain age. That is impossible because there is no way you can know how old someone is before they register and even though you think you can tell if they post, this is not likely to be true.

Whatever you are saying about some type of rank;

ranks mean nothing, they have no privileges or anything, a "rank" is just for show.

so I dont know how or why you would creat something that can only be accessed by someone with a specific rank.

If that is what you are trying to say, which is not clear at all.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
rexzooly
Registered User
Posts: 18
Joined: Sat Apr 01, 2006 1:55 am
Location: uk
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by rexzooly »

Sorry i am dislexic

I want someting so when thay are a set rank the menu link will show if there not that wank thay
wont be show the link can anyone help me with that don't not matter anymore why but i still would
like this please so if a user is a set rank the link is show to them this is possable with a CMS e107
what is good but i don't want my hole site a CMS i want to use php BB as its etter for the forum so
can anyone else me if you need to know more PM me and i will send you my email addie.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by Lumpy Burgertushie »

rexzooly wrote:Sorry i am dislexic

I want someting so when thay are a set rank the menu link will show if there not that wank thay
wont be show the link can anyone help me with that don't not matter anymore why but i still would
like this please so if a user is a set rank the link is show to them this is possable with a CMS e107
what is good but i don't want my hole site a CMS i want to use php BB as its etter for the forum so
can anyone else me if you need to know more PM me and i will send you my email addie.
Like I said, "ranks" mean nothing, they are just for show. The only way I know to do this, would be to create a group instead of a "rank". Then , put the people you want , in that group.
Then you can create a "switch" like the logged in/out switch, for that group.

If the person is not in a specified group, then they do not see whatever the html code for the link is.
Here is how to create the group "switch":

Code: Select all

##############################################################
## MOD Title: Usergroup Switches
## MOD Author: Lumpy Burgertushie < [email protected] > (Robert Adams) http://phpbb-installer.com
## MOD Author: dicky <[email protected] > (Richard Foote) http://dicky.askmaggymae.com 
## MOD Description: This MOD creates switches like the login logout switches, 
## only for certain usergroups. It will allow you to show buttons, links, tables,
## etc , to only those in certain usergroups.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: 
## 		includes/page_header.php     
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check with Lumpy Burgertushie.
##############################################################
## Author Notes:
## you will need to find what the usergroup ID is before you do this.  
## you can look in the database for the group_id  in the phpbb_user_group table
## Also, you can make a switch for multiple groups as shown below.
## Or you can make a separate switch for individual groups if you wish.
## To do this, you would have to create multiple switches and give
## each one a new name in the code.
##############################################################
## MOD History:
##
##   2006-01-05 - Version 1.0.0
##      - first release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#------[OPEN ]-----------
#
includes/page_header.php
#
#--------[ FIND ]------------
#
	$template->assign_block_vars('switch_user_logged_in', array());
#
#--------[ AFTER, ADD ]-----------------------
#Find the group ID  by accessing the groups table of the database.
#You can use something like phpmyadmin for this.
//Begin usergroup switches MOD
// Change these numbers to the ID's of the groups you want to allow access to
$display_html_group = array(1,2,3,4);
$display_html_allowed = false;

$sql = "SELECT group_id FROM " . USER_GROUP_TABLE . "
   WHERE user_id = " . $userdata['user_id'];
if(!($result = $db->sql_query($sql)))
   message_die(GENERAL_ERROR,'Could not select from usergroup table','',__LINE__,__FILE__,$sql);

while ($row = $db->sql_fetchrow($result))
{
   $dhag = $row['group_id'];
}

if (in_array($dhag, $display_html_group))
{
   $display_html_allowed = true;
}

if ( $display_html_allowed )
{
   $template->assign_block_vars('switch_user_display_html',array() );
}
//End usergroup switches MOD
#
#----------[ DIY INSTRUCTIONS ]---------------
#
Then in your overall_header.tpl and other tpl files, You can then surround whatever you want to display to only certain usergroups
with the switches;
<!-- BEGIN switch_user_display_html -->
... stuff that only shows up when the user is in usergroup(s)...
<!-- END switch_user_display_html -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
rexzooly
Registered User
Posts: 18
Joined: Sat Apr 01, 2006 1:55 am
Location: uk
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by rexzooly »

intresting kool thanks and would there be away to change gourps after said number of posts or would that be manuel?

Thanks for the switch info means i have away to set the messenger up now thanks :mrgreen:


Rex
rexzooly
Registered User
Posts: 18
Joined: Sat Apr 01, 2006 1:55 am
Location: uk
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by rexzooly »

i am having also a little problem the forum is making me and the members login twice before it lets us in to the
site what could be going this thanks.
User avatar
Jim_UK
Former Team Member
Posts: 18480
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Re: Age lock down and link shows if age and anoth posts = ture

Post by Jim_UK »

rexzooly wrote:i am having also a little problem the forum is making me and the members login twice before it lets us in to the
site what could be going this thanks.
Easy fix

To correct configuration problems use the Auto cookie mod.
You must ftp the complete install directory to the root of phpBB2
Run the file with your browser like http://yourdomain/yourphpBB2/install/cookie.php
Accept all suggested settings and then:-
Delete the install directory
Log out and clear cache and cookies in your browser.
Now close and restart your browser.
If this does not work then run the mod again and post the "Suggested" and "Actual" settings into this support thread

Jim
The truth is out there.
Unfortunately they will not let you anywhere near it!
rexzooly
Registered User
Posts: 18
Joined: Sat Apr 01, 2006 1:55 am
Location: uk
Contact:

Re: Age lock down and link shows if age and anoth posts = ture

Post by rexzooly »

Thank you i will do this soon thanks 10++
Post Reply

Return to “[2.0.x] MOD Requests”