Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 11-14-2005, 12:25 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love the idea, but it dosn't work.

MySQL Error : Unknown column 'age_locked' in 'field list'
Error Number : 1054
Referrer : http://www.japani.no/forum/admincp/f...o=edit&f=30&s=
Reply With Quote
  #13  
Old 11-14-2005, 02:10 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not sure why you get that but it does work, i've just installed it onto the latest VB release and it works 100%, if you would like me to try to install it for you just pm me

stuie b
Reply With Quote
  #14  
Old 11-15-2005, 05:34 PM
katholic katholic is offline
 
Join Date: Nov 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this work on exsisting members or only new members? Also would it work on 3.5.1?
Reply With Quote
  #15  
Old 11-16-2005, 10:07 AM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as long as all of your members have a date of birth set in there profiles it will work for them all,

and yes it works for 3.5.1

stuie_b
Reply With Quote
  #16  
Old 11-17-2005, 02:03 AM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 11-17-2005, 03:42 AM
bigmonay2k bigmonay2k is offline
 
Join Date: May 2004
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

demo
Reply With Quote
  #18  
Old 11-17-2005, 09:50 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* christianb subscribes to this thread

How hard would this be to set up a reversely? For example: I've got forums that are for teens only (under the age of 18) - this would work great if that would be possible.
Reply With Quote
  #19  
Old 11-17-2005, 12:22 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought I should try an uninstall it and then install it again. But I got this

Code:
Database error in vBulletin 3.5.0:

Invalid SQL:
ALTER TABLE forum DROP COLUMN age_locked;

MySQL Error  : Table 'japani_forum.forum' doesn't exist
Error Number : 1146
Date         : Thursday, November 17th 2005 @ 03:21:31 PM
Script       : http://www.japani.no/forum/admincp/plugin.php
Referrer     : http://www.japani.no/forum/admincp/plugin.php?do=productdelete&productid=AgeLimit&s=
Classname    : vb_database
Reply With Quote
  #20  
Old 11-17-2005, 01:50 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KBV
I thought I should try an uninstall it and then install it again. But I got this

Code:
Database error in vBulletin 3.5.0:

Invalid SQL:
ALTER TABLE forum DROP COLUMN age_locked;

MySQL Error  : Table 'japani_forum.forum' doesn't exist
Error Number : 1146
Date         : Thursday, November 17th 2005 @ 03:21:31 PM
Script       : http://www.japani.no/forum/admincp/plugin.php
Referrer     : http://www.japani.no/forum/admincp/plugin.php?do=productdelete&productid=AgeLimit&s=
Classname    : vb_database

It seems as it isn't updating the tables correctly, Try installing it again but this time try using the "Allow Overwrite" set to YES

Stuie B
Reply With Quote
  #21  
Old 11-17-2005, 02:10 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this hack be used for individual sections in the site or is this just for reigstering to enter the site?
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 07: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.07034 seconds
  • Memory Usage 2,317KB
  • 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
  • (3)bbcode_code
  • (2)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
  • (3)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