Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2003, 03:15 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Posting Options by age

https://vborg.vbsupport.ru/showthrea...3&page=1&pp=15

and

https://vborg.vbsupport.ru/showthrea...0&page=1&pp=15

I have those two hacks installed, and what I'm trying to do is this.

In admin CP, making a new forum (or edit *shrugs*), under Posting Options, right underneat "Private forum", I wanted an option saying:

"Pirvate forum II (or something like that)" (Invisible to all except "insert age here"+ users; user access masks must be on!)

I wanted it set to age 18, but with a DB Query I assume it could easily be changed.

Case and point: I wanted a forum to show up or hide depending on age. Granted I am aware that a user could change his/her age at any time. But

1)when a user registers he/she won't be able to see that forum.
2)When a user under the specified age is an active member, he/she won't be able to see it.
3)There for they wouldn't know it's based on age, unless someone spills the beans.

Can someone please help me create such a hack? I tried myself, but I still don't know much about PHP. Many thanks in advance!
Reply With Quote
  #2  
Old 10-03-2003, 03:28 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sonikku
https://vborg.vbsupport.ru/showthrea...3&page=1&pp=15

and

https://vborg.vbsupport.ru/showthrea...0&page=1&pp=15

I have those two hacks installed, and what I'm trying to do is this.

In admin CP, making a new forum (or edit *shrugs*), under Posting Options, right underneat "Private forum", I wanted an option saying:

"Pirvate forum II (or something like that)" (Invisible to all except "insert age here"+ users; user access masks must be on!)

I wanted it set to age 18, but with a DB Query I assume it could easily be changed.

Case and point: I wanted a forum to show up or hide depending on age. Granted I am aware that a user could change his/her age at any time. But

1)when a user registers he/she won't be able to see that forum.
2)When a user under the specified age is an active member, he/she won't be able to see it.
3)There for they wouldn't know it's based on age, unless someone spills the beans.

Can someone please help me create such a hack? I tried myself, but I still don't know much about PHP. Many thanks in advance!
you could probally do this via vb3 very ezily

with a few if condititons
Reply With Quote
  #3  
Old 10-03-2003, 03:39 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OOookay... yet I don't use Vb3, nor do I want to until it's fully stable.

Thanks for trying to help though. ^^;
Reply With Quote
  #4  
Old 10-03-2003, 03:51 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sonikku
OOookay... yet I don't use Vb3, nor do I want to until it's fully stable.

Thanks for trying to help though. ^^;
i rethought it and you could do it another way with vb3

why use vb2 its not fully stable either

however the idea does seem doable
Reply With Quote
  #5  
Old 10-06-2003, 12:39 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone please help me create this? I need it.
Reply With Quote
  #6  
Old 10-06-2003, 12:41 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the best thing you could do is make a second usergroup and move members you know to be 18 or older, as anyone can fake their age
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 10:52 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.04138 seconds
  • Memory Usage 2,209KB
  • Queries Executed 11 (?)
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
  • (2)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_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