Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Age Lock Hack Details »»
Age Lock Hack
Version: 2.0 Beta 2, by stuie_b stuie_b is offline
Developer Last Online: Aug 2018 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 09-09-2005 Last Update: 06-12-2006 Installs: 52
DB Changes Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

UPDATE: Updated the code to work with latest versions (both stable and beta)

Quote:
----------------------
Whats it all about?
----------------------
Age Lock is an all-in-one Forum locking facillity that works off the users age instead of there permissions
It gives you the abillity to keep those Under 18's out of your adult section

IMPORTANT NOTICE: Please Make sure you uninstall any currently installed versions prior to
installing this version!! THIS IS A MUST DUE TO MAJOR CODE CHANGES!

---------------
Installaiton?
---------------

- Log into you Admin Control Panel -
#############################################
-----------------------------------------------
1.) Upload the contents of the Upload folder to your forum root
2.) Find Plugin System
3.) Click Manage Products
4.) Click [Add/Import Product]
5.) Under Import Product
6.) Select the Product-AgeLock.xml file
7.) Make sure Allow Overwrite is turned OFF!
8.) Press Import
-----------------------------------------------
Total Template edits: 1
Total File Modifications: 0
Total Plugins: 1
Total Hooks Used: 6
Total extra sql querys: 0

Make sure to read the txt files before installing!!!
limited support will be provided!

enjoy and dont forget to click install

Stuie B

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 12-11-2005, 08:42 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found out how, all they have to do is go to the profile of the last poster in the forum with the age mod and select "View posts by this user", and they can see them all.

Btw, wouldn't it be easier to hook the system up to usergroups, or a cronjob?

Usergroups:
User W who is X age is placed into sub-usergroup Y which gives access to Z.

Cronjob:
Each night at W user X who is Y years old is given access to forum Z.

Would be fullproof against the bug above.
Reply With Quote
  #43  
Old 12-28-2005, 06:28 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

using usergroups wouldn't be very practical since you would need to have a diff usergroup for each age.

For example if i had a forum that had three diff age required forums one for 15 one for 14 and one for 18 i would have to create three usergroups for each, then mod the promotions function to move each user up to the diff groups.

Using a Cron job would add an extra load onto your server which is not my aim, The current version uses vbulletins form cache data to do it's checking and never involves any extra mysql or external services to be run

i will look into this problem and get back to you.

thanks

Stuie B
Reply With Quote
  #44  
Old 01-08-2006, 09:30 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vizionz
Code:
<tr>
							<td>$vbphrase[month]:</td>
							<td>$vbphrase[day]:</td>
							<td><if condition="$show['birthday_optional']">$vbphrase[year_optional]:<else />$vbphrase[year]</if></td>
						</tr>
						<tr>
							<td><select name="month" id="bd_month">
								<option value="-1" $monthselected[default]></option>
								<option value="01" $monthselected[01]>$vbphrase[january]</option>
								<option value="02" $monthselected[02]>$vbphrase[february]</option>
								<option value="03" $monthselected[03]>$vbphrase[march]</option>
								<option value="04" $monthselected[04]>$vbphrase[april]</option>
								<option value="05" $monthselected[05]>$vbphrase[may]</option>
								<option value="06" $monthselected[06]>$vbphrase[june]</option>
								<option value="07" $monthselected[07]>$vbphrase[july]</option>
								<option value="08" $monthselected[08]>$vbphrase[august]</option>
								<option value="09" $monthselected[09]>$vbphrase[september]</option>
								<option value="10" $monthselected[10]>$vbphrase[october]</option>
								<option value="11" $monthselected[11]>$vbphrase[november]</option>
								<option value="12" $monthselected[12]>$vbphrase[december]</option>
							</select> &nbsp;</td>
							<td><select name="day" id="bd_day">
								<option value="-1" $dayselected[default]></option>
								<option value="01" $dayselected[01]>1</option>
								<option value="02" $dayselected[02]>2</option>
								<option value="03" $dayselected[03]>3</option>
								<option value="04" $dayselected[04]>4</option>
								<option value="05" $dayselected[05]>5</option>
								<option value="06" $dayselected[06]>6</option>
								<option value="07" $dayselected[07]>7</option>
								<option value="08" $dayselected[08]>8</option>
								<option value="09" $dayselected[09]>9</option>
								<option value="10" $dayselected[10]>10</option>
								<option value="11" $dayselected[11]>11</option>
								<option value="12" $dayselected[12]>12</option>
								<option value="13" $dayselected[13]>13</option>
								<option value="14" $dayselected[14]>14</option>
								<option value="15" $dayselected[15]>15</option>
								<option value="16" $dayselected[16]>16</option>
								<option value="17" $dayselected[17]>17</option>
								<option value="18" $dayselected[18]>18</option>
								<option value="19" $dayselected[19]>19</option>
								<option value="20" $dayselected[20]>20</option>
								<option value="21" $dayselected[21]>21</option>
								<option value="22" $dayselected[22]>22</option>
								<option value="23" $dayselected[23]>23</option>
								<option value="24" $dayselected[24]>24</option>
								<option value="25" $dayselected[25]>25</option>
								<option value="26" $dayselected[26]>26</option>
								<option value="27" $dayselected[27]>27</option>
								<option value="28" $dayselected[28]>28</option>
								<option value="29" $dayselected[29]>29</option>
								<option value="30" $dayselected[30]>30</option>
								<option value="31" $dayselected[31]>31</option>
							</select> &nbsp;</td>
							<td><input type="text" class="bginput" name="year" value="$year" size="4" maxlength="4" id="bd_year" /></td>
							<td rowspan="2">&nbsp; <input type="button" class="button" value="$vbphrase[clear]" onclick="clear_birthday()" /></td>
						</tr>
						</table>

Removing that also removes that from registration. then when someone tries to register they cant because it requires age.
I realized this to so i will proabbly make a <if> condition for registered users. not to see it .
Reply With Quote
  #45  
Old 01-08-2006, 10:52 PM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've added both this hack and the other age one: https://vborg.vbsupport.ru/showthrea...&highlight=age

This means that underage members don't even get to see the forum if it is restricted.

Best of both worlds
Reply With Quote
  #46  
Old 01-09-2006, 02:55 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi peeps

Working great thanks

Bashy
Reply With Quote
  #47  
Old 01-10-2006, 10:55 PM
DruidToolz DruidToolz is offline
 
Join Date: Oct 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this mod work with ver. 3.5.3 if not could someone please help me with editing the code to make it work
Reply With Quote
  #48  
Old 01-11-2006, 01:52 PM
Devil Woman Devil Woman is offline
 
Join Date: Jul 2005
Location: England
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this but I can not find anywhere in the admin panel where I change settings please can someone advise, thanks
Reply With Quote
  #49  
Old 01-15-2006, 10:05 AM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Does this mod work with ver. 3.5.3 if not could someone please help me with editing the code to make it work
it should still work for 3.5.3 but i havnt tested it on this,

Quote:
I have installed this but I can not find anywhere in the admin panel where I change settings please can someone advise, thanks
The only settings which can be changed are the forum age settings, which are located under the forums options when editing a forum


stuie b
Reply With Quote
  #50  
Old 01-21-2006, 10:12 PM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice *Clicks Install* :glasses:
Reply With Quote
  #51  
Old 02-11-2006, 01:24 AM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't want to exempt Mod, how can i do that ???
Reply With Quote
Reply

Thread Tools

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 06:14 PM.


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.13202 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete