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 12-11-2005 08:42 PM

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.

stuie_b 12-28-2005 06:28 PM

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

Xplorer4x4 01-08-2006 09:30 PM

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 . ;)

moonclamp 01-08-2006 10:52 PM

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 :)

bashy 01-09-2006 02:55 PM

Hi peeps

Working great thanks :)

Bashy

DruidToolz 01-10-2006 10:55 PM

Does this mod work with ver. 3.5.3 if not could someone please help me with editing the code to make it work

Devil Woman 01-11-2006 01:52 PM

I have installed this but I can not find anywhere in the admin panel where I change settings please can someone advise, thanks

stuie_b 01-15-2006 10:05 AM

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

htscpl 01-21-2006 10:12 PM

Very Nice *Clicks Install* :glasses:

RFViet 02-11-2006 01:24 AM

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


All times are GMT. The time now is 09:32 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.02385 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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