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 ???

hbalagh1 03-23-2006 04:27 PM

any way to make this so that users that can't access the forum can't read the title of the latest topic posted

HellBoy 03-25-2006 03:01 PM

Excellent addon, but I would love to see a couple of features:

-Restrict people who haven't got a birthday set
-A feature that will allow you to enable or disable users to set their birthday.

bigmonay2k 03-29-2006 08:53 PM

Quote:

Originally Posted by HellBoy
Excellent addon, but I would love to see a couple of features:

-Restrict people who haven't got a birthday set
-A feature that will allow you to enable or disable users to set their birthday.

good idea mate, stuie_b should look in to it.

Injektilo 06-20-2006 04:34 PM

installed but, DOESNT WORK :S .... i've set the settings right, but still nothing...only thing that is workin is when a user without age tries to go into an age locked forum, it gives a message that he cannot go in due to age......

So what's this?

Injektilo 06-22-2006 03:24 PM

can someone plz explain y is not working?

Exitilus 06-27-2006 09:13 PM

Can this be used to stop people from actually Registering on the site? Not just accessing / posting in certain forums ?

XeroStatic 07-03-2006 05:00 AM

Got this installed, people can register and input their age, but then when they try to view the forums it says they are unable to. I view their user info and the Birthdate field is blank. I am having to manually edit members info. Any ideas why?

Exitilus 07-04-2006 06:53 PM

Quote:

Originally Posted by Exitilus
Can this be used to stop people from actually Registering on the site? Not just accessing / posting in certain forums ?

Anyone ?

RFViet 09-02-2006 02:35 PM

Doesn't work for vB 3.5.5

murdo 09-07-2006 09:04 AM

work with 3.6.0 ?

Mikecp421 10-03-2006 11:37 PM

nice, been looking for this

Mikecp421 10-03-2006 11:39 PM

sorry reply froze on me, double post

RFViet 10-10-2006 05:01 PM

installed :D

carlosacgj 11-26-2006 10:58 AM

Quote:

Originally Posted by hbalagh1 (Post 932795)
any way to make this so that users that can't access the forum can't read the title of the latest topic posted

users that can't access the forum with a age lock restriction, can jump the restriction by "latest topic posted" on the home of the forum, can join to the this topic and post on it

anyone know a one solution for this bug?

http://img85.imageshack.us/img85/9525/problemmn6.jpg

wobbly 04-15-2007 10:43 AM

Got this installed on 3.5.4 and it seesm to have deleted every single DOB entry and once ive edited it it deletes it again if they edit their profile.

Eccentricity 07-06-2007 12:45 PM

All this does on 3.6.x is crash the database with the same errors that were reported 2 years ago. If you can't make it work in two years time, I'll pass. :D

stuie_b 07-07-2007 10:58 PM

Quote:

Originally Posted by Eccentricity (Post 1284337)
All this does on 3.6.x is crash the database with the same errors that were reported 2 years ago. If you can't make it work in two years time, I'll pass. :D

funny this version is for 3.5 not 3.6.x so maybe you should try the correct vesion before you start blaming the code if thats how it is on vb.org maybe i shouldnt have bothered or maybe u should do it yourself next time

in responce all qrys about the direct link on index should also check 3.6.x package

all other bugs (that were reported) have been fixed in 3.6.x package

stuie

Mikecp421 07-08-2007 02:53 PM

works great for me, thanks alot, been using it for over a year now, never a problem and just what I wanted

antonybaker 07-25-2007 09:34 PM

Hello, in principle this hack looks great but as an almost complete newbie to vbulletin I'm having a few probs

I have installed the hack and it appears to be switched on, and in manage plugins I can see the items related to agelock...however the forum still allows me to register a user who is 13 years old for example...

In what part of the code do i set the age restriction to be a minimum of 17 ?

Sorry is this is completely obvious, I've only had vbulletin a few weeks and its all still much of a mystery to me.

Thanks

stuie_b 07-26-2007 01:50 AM

Age lock works on a forum by forum basis, by doing this it allows you to set a different age for each forum,

To set the age you simply login to the admincp goto the forum manager and select the forum you wish to age lock, then scroll to the bottom and specify the age and if they have too be older or younger.

on a side note i'd recommend you install the latest version of vb and install the latest version of age lock (located here) dont install this version on vb3.6.x

if you need any futhur help please feel free to contact me directly via PM or email.


Stuie

antonybaker 07-26-2007 09:19 PM

thanks very much for the reply...wow, I didnt think it would be that quick...I'll give that a go..I do have the latest version of vb, only installed it about a month ago :)

Thanks again
Antony


All times are GMT. The time now is 09:29 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.01238 seconds
  • Memory Usage 1,833KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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