Hello, I just installed UseBB. So far I'm extremely happy with it. I would like to make my board so only people 18+ can get on it. Does anyone know how to do that?
Thanks
Moderators: Gaia.
Page: 1
| Author | Post |
|---|---|
|
#1 Fri Mar 13, 2009 2:25 am
|
|
|
Member
Registered: Mar 2009
Posts: 2
|
Hello, I just installed UseBB. So far I'm extremely happy with it. I would like to make my board so only people 18+ can get on it. Does anyone know how to do that?
Thanks |
|
#2 Fri Mar 13, 2009 1:54 pm
|
|
|
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
|
this is basic if they put they are 13 they can just go back and put they are 18! you can modifie it so it makes a session then do it so if that session exists it wont let you register till the session is destroyed.
you could add somat like this to the register form
then add this to the register page
NOT TESTED!!! |
|
#3 Sat Mar 14, 2009 12:42 pm
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
print does not work inside UseBB procedural code.
You need to use the template system.Moving to customization forum. |
|
#4 Tue Mar 17, 2009 12:09 pm
|
|
|
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
|
oh ok :S what is the template system for print then?
|
|
#5 Tue Mar 17, 2009 1:33 pm
|
|
Moderator
![]() Registered: Oct 2005
Posts: 502
Location: Canada
|
$template->add_raw_content('Content here');_______________ |
|
#6 Tue Mar 17, 2009 1:35 pm
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
That is indeed a posible way of adding contents, however the most dirty one.
![]() In fact you should alter the code to add a nice message box when needed instead of printing raw messages. |
|
#7 Tue Mar 17, 2009 1:44 pm
|
|
Moderator
![]() Registered: Oct 2005
Posts: 502
Location: Canada
|
Yeah, was the only thing I could remember off the top of my head XD.
![]() _______________ |
|
#8 Wed Mar 18, 2009 8:40 pm
|
|
|
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
|
fair enuf
![]()
that ok? ![]() |
|
#9 Wed Mar 18, 2009 8:44 pm
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
Now also use the language variables found in $lang.
![]() |
|
#10 Wed Mar 18, 2009 8:52 pm
|
|
Moderator
![]() Registered: Oct 2005
Posts: 502
Location: Canada
|
Haha, I had a feeling you'd say that
. I was going to initially add them in, but laziness took over. ![]() Viola:
_______________ |
|
#11 Fri Mar 20, 2009 3:52 am
|
|
|
Member
Registered: Mar 2009
Posts: 2
|
wow, this topic has really taken off, lol. Will the last post by Gaia work?
|
|
#12 Fri Mar 20, 2009 7:48 am
|
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
You need to fit the code in the proper place, you can't just wrap the if/else around all the code in panel_register.php.
Best is if anyone makes a mod for this that has been tested and can be applied when needed. |
|
#13 Sat Mar 21, 2009 11:26 am
|
|
|
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
|
ill do it when i get home atm im at work
|
|
#14 Sun Mar 22, 2009 6:45 pm
|
|
|
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
|
what about this
if you put your age as 0-17 it will add your ip to a database, then if you go to register to that site ever again it wont let you register. Theres probly a error i had to rush it as my break ended 5 mins ago
|
|
#15 Sun Mar 22, 2009 8:45 pm
|
|
Moderator
![]() Registered: Oct 2005
Posts: 502
Location: Canada
|
That wouldn't work.......there are quite a few things that are incorrect....just to name a few:
1. You wouldn't need a new database table, or entry for that matter. 2. $lang cannot be used in that manner. 3. You'd have to edit the register form HTML in the correct .tpl.php template file If you were coding your own standalone form, then yes, something like that may theoretically work. But that code isn't something you can just "slap around" the current UseBB code. _______________ |
Page: 1
UseBB Community is powered by UseBB 1 Forum Software