The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Advice for "restricted content"
I own a model agency that deals with "adult" material.
I need it so that if the fields that say "does your profile contain nudity" says Yes, that anyone under the age of 18 cannot view the profile of that particular user. How would I do this? Is there an IF condition to check for birthdate? |
#2
|
||||
|
||||
Yeap, compliments of Loco.M/Brandon shelley, Michael Biddle, and others
Code:
<if condition="$bbuserinfo['birthday_search'] > '1980-01-01'">Your code here if born after 1-1-1980</if> Code:
<if condition="$bbuserinfo['birthday_search'] < '1980-01-01'">Your code here if born before 1-1-1980</if> http://forum.vbulletinsetup.com/f18/...list-2185.html |
#3
|
|||
|
|||
Compliments to you for finding it and for the author of the code
Thank you --------------- Added [DATE]1256226320[/DATE] at [TIME]1256226320[/TIME] --------------- Also, just a thought.. This code would only be needed IF the user of that profile states in the registration that their profile contains nudity as not all profiles will contain nudity. I don't want to do it so that they can't view ANY profile |
#4
|
||||
|
||||
Quote:
Code:
<if condition"$post['field10']"> <if condition="$bbuserinfo['birthday_search'] < '1980-01-01'">Your code here if born before 1-1-1980 i.e. cut and paste entire member profile to here</if> <else /> Member profile code here too so it will show even if they did not enter in a value into your field! </if> |
#5
|
|||
|
|||
How my profile system is set up now is:
Do your profile images contain Nudity? Yes | No Does your profile contain information not viewable by under 18? Yes | No I just use those profile field Id's? --------------- Added [DATE]1256228656[/DATE] at [TIME]1256228656[/TIME] --------------- Again, It still doesn't seem to make sense for me.. The content I have will be the same, so I cant use the <else /> condition. But if someone says they have nudity or profanity, then I want the whole page to give an error message. If I use the <else /> command and make a new profile layout for that one, then they will still be able to see images, as I always want the profile pics to be visible, so its much easier to restrict profiles totally for people under 18 who show nudity. |
#6
|
||||
|
||||
Quote:
It might require another if for the other profile field so two if's one else and 3 end if's. Also you can hide the entire profile or parts of it by wrapping the codes associated in if's . Don't get lost PM me I'll have time later to reply need to hunt down a mod but you ought to know this by looking at your mods released by viewing your profile good sir Mike Edit: Now I remember you and the reason for you not knowing this already - micheal332001 & https://vborg.vbsupport.ru/showthrea...=196819&page=8 I would rather you not pm me, simply saying it was a pleasure helping as always but I have internal rules and regulations I must abide by. Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|