vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Disabling 'register' for a while (https://vborg.vbsupport.ru/showthread.php?t=33609)

Jawelin 12-29-2001 04:33 PM

Hi. In the option settings is written:

Quote:

Allow new user registrations
If you would like to temporarily (or permanently) prevent anyone new from registering, you can do so. The REGISTER button will still be seen throughout the BB, but anyone attempting to register will be told that you are not accepting new registrations at this time.
Well. I would disable for 'mantainance' reasons new users for a while. So I would:
1) Remove the register button into board (guests aren't allowed, as long double registration per user) so I should check every time those settings and hide the button on top bar

2) Most importantDon't display the 'Register' link on first page when they aren't allowed, optionally adding a new <list> item explaining this is for maintenance reasons.

How should I modify what template ?
Could I make some 'if' choose whitin it ?

Thanks a lot.
Bye

-.valkyre 12-29-2001 10:19 PM

Some people will find a way around this..

Because all vB's have board/register.php, so all a user has to do is change the URL to point to the register.php page and he will be able to register..

And why do you want to get rid of the buttons if no new users will be able to sign up anyways? I mean it's double work for nothing in my opinion.

okrogius 12-30-2001 01:22 AM

Quote:

Originally posted by -.valkyre
Because all vB's have board/register.php, so all a user has to do is change the URL to point to the register.php page and he will be able to register..
If enable new registrations in vb options in admin cp is disabled then it won't matter. If you try to access the page it will give you a 'vBulletin Message' thing saying no new registrations are accepted at this time.

-.valkyre 12-30-2001 01:39 AM

Yeah I know, at first I thought just wanted to remove the button, then I realized he wanted to do both.

Jawelin 12-30-2001 09:43 AM

Exactly. I saw an hack for removing the 'register' button INSIDE the bb, but would the same way remove - WHEN OPTIONS SAY SO - the register link on the 'unregistered front page', explaining there why new subscriptions aren't allowed for a while.

I would prefer a preventive check instead of a later one ('sorry .... etc.')

Hope this should be clear.
Thanks.

okrogius 12-30-2001 12:02 PM

My best idea for you would be to enable that option in vb options once you don't want new registrations. And afterwards open the header template. Put a <!-- before the rgeister button html code. And a --> after it.


All times are GMT. The time now is 08:08 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.01013 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete