vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Age Lock Hack (https://vborg.vbsupport.ru/showthread.php?t=95992)

KBV 11-14-2005 12:25 PM

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=

stuie_b 11-14-2005 02:10 PM

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

katholic 11-15-2005 05:34 PM

Would this work on exsisting members or only new members? Also would it work on 3.5.1?

stuie_b 11-16-2005 10:07 AM

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

Vizionz 11-17-2005 02:03 AM

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.

bigmonay2k 11-17-2005 03:42 AM

demo

davidw 11-17-2005 09:50 AM

* 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. :D

KBV 11-17-2005 12:22 PM

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


stuie_b 11-17-2005 01:50 PM

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

Mastar 11-17-2005 02:10 PM

Can this hack be used for individual sections in the site or is this just for reigstering to enter the site?


All times are GMT. The time now is 09:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01233 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete