Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2009, 02:31 PM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 10-22-2009, 02:34 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
So wrap the member profile template with this if statement

http://forum.vbulletinsetup.com/f18/...list-2185.html
Reply With Quote
  #3  
Old 10-22-2009, 02:41 PM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 10-22-2009, 03:14 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hex_legend View Post
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
Then simply add in a new profile field and condition it with something similar to this:
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>
Might need to change $post to $user or $userinfo etc see the conditional list and whip it up real quick!
Reply With Quote
  #5  
Old 10-22-2009, 03:19 PM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-22-2009, 04:06 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hex_legend View Post
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.
Yes use those field ID #'s to set your conditions and YES you do want to use an <else /> otherwise it won't show the profile of the member to anyone but if it says hmm they have something, anything entered in that value do NOT show the profile and you can even throw in a message or redirect after the else before the end if

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:
Originally Posted by I honestly cant remember
Sometimes you have to speak up even if others do not want to hear it, otherwise your not being true to yourself.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05229 seconds
  • Memory Usage 2,222KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete