Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reminder to admin when the board is off Details »»
Reminder to admin when the board is off
Version: 1.00, by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-11-2002 Last Update: Never Installs: 4
 
No support by the author.

Someone requested this on vBulletin.com real quick hack not really a major thing but I'll do it anyway.

open global.php and find
PHP Code:
// check that board is active - if not admin, then display error
if (!$bbactive) {
  if (!
$permissions['cancontrolpanel']) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  }

change to

PHP Code:
unset($board_closed);
// check that board is active - if not admin, then display error
if (!$bbactive) {
  if (!
$permissions['cancontrolpanel']) {
    eval(
"standarderror(\"".str_replace("\'""'"addslashes($bbclosedreason))."\");");
    exit;
  }
  else {
    
$board_closed "<center><b>The board is currently closed to non admins</b></center>";
  }

then in whatever template you want add $board_closed, i just added it to the header template at the very top.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-12-2002, 08:52 PM
Ordovicium's Avatar
Ordovicium Ordovicium is offline
 
Join Date: Oct 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First it also doesn't work on my board, but then I add the $board_closed after:
PHP Code:
  <title>$bbtitle powered by vBulletin</title>
  
$headinclude
</head>
<
body>
$header 
in forumhome template.

Now it works. Thanx for the hack.
Reply With Quote
  #13  
Old 05-12-2002, 10:15 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops that would be my bad
you can't add it to
header, footer or headerinclude as their loaded before the permissions are checked, you'd have to add
PHP Code:
eval("\$header = \"".gettemplate('header')."\";"); 
after $board_closed in the global.php file to get it to work in the header.
Reply With Quote
  #14  
Old 05-13-2002, 02:04 AM
Ian's Avatar
Ian Ian is offline
 
Join Date: Mar 2002
Location: Minnesota
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doing your fix it made the Header appear twice... So literally, I had two headers.
Reply With Quote
  #15  
Old 05-13-2002, 10:59 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
eval('$header = "' . gettemplate('header') . '";');
Reply With Quote
  #16  
Old 05-14-2002, 12:55 AM
Ian's Avatar
Ian Ian is offline
 
Join Date: Mar 2002
Location: Minnesota
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What?
Reply With Quote
  #17  
Old 05-14-2002, 06:03 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is a dot before the equals sign, remove it.
Reply With Quote
  #18  
Old 05-14-2002, 01:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by PPN
oops that would be my bad
you can't add it to
header, footer or headerinclude as their loaded before the permissions are checked, you'd have to add
PHP Code:
eval("\$header = \"".gettemplate('header')."\";"); 
after $board_closed in the global.php file to get it to work in the header.
If you add that, will it still work any where else or does it HAVE to go in the header, footer or headerinclude then?

BTW: I used Firefly's update to this already.
Reply With Quote
  #19  
Old 05-14-2002, 07:54 PM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and yes this is a good hack since vbb is very explotable and if someone got admin on your board while you were on and closed it down itd tell you...so yes it is VERY useful for forums that get hacked alot. lol
Reply With Quote
  #20  
Old 05-14-2002, 07:59 PM
Ian's Avatar
Ian Ian is offline
 
Join Date: Mar 2002
Location: Minnesota
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you boards get hacked a lot there's a problem.
Reply With Quote
  #21  
Old 05-18-2002, 12:36 AM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive been hacked so many [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth]ing times due to vbbs unsecurity..i even have htaccess passs on my mod/admin panels and also they are ******* user names and multi numbers/letters passes also my ftp nobody knows about and in the admin logs it leaves no logs due to they dont even have to use the control panel to get admin/unban ppl/ban i do now know exactly how this is done but yet if you dont realize it VBB isnt secure at all. So far ive been hacked 3 times. 1 time from a rival forum and 2 times from some gay hacking forum. which i got the guy from the hacking forum in deep [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth]...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04578 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete