Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
Details »»

Version: 1.00, by Jawelin Jawelin is offline
Developer Last Online: May 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-27-2002 Last Update: Never Installs: 0
Is in Beta Stage  
No support by the author.

This is my first (mini)hack published - even wrote many customizations -, so please don't shoot against the player ! irate:

It's an Admin-purpose Swiss army knife to have the runtime status of your board pendings all at once on the AdminCP home.
Simply, along with user under moderation (coppa or not), it checks for
  • Board active or closed for maintenance ?
  • New members allowed ?
  • Existing posts awaiting moderation
  • Existing attachments awaiting moderation
  • ... if you have more ideas ... :china:
Each of the counters links to the appropriate page to manage its own value.
Is very very simple even to remove, so don't fear to try it.
No SS needed, of course.

Any test/tip should be very appreciated.

Let's go. Open the admin/index.php and find :
PHP Code:
if ($moderatenewmembers==or $usecoppa==1) { 
Then, just above, below or around the whole if-clause (beware the ending '}' ), add the following pieces of code:
PHP Code:
//HACK: Show BB NotActive on AdminCP homepage - begin
if (!$bbactive) {
    echo 
"<p><b>Remember: VB board is currently <a href=\"options.php?t=0&s=$session[sessionhash]#settinggroup1\">INACTIVE</a>&nbsp;!</b></p>";
}
//HACK: Show BB NotActive on AdminCP homepage - end

//HACK: Show NoNewUsers on AdminCP homepage - begin
if (!$allowregistration) {
    echo 
"<p><b>Remember: currently <a href=\"options.php?t=0&s=$session[sessionhash]#settinggroup6\">NO NEW USERS</a> are allowed !</b></p>";
}
//HACK: Show NoNewUsers on AdminCP homepage - end

//HACK: Show pending posts if any - begin
if (1==1) {        // flag to activate counter
  
$pending=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE visible=0");
  if (
$pending[posts]>0) {
    echo 
"<p><b><a href=\"../mod/moderate.php?action=posts&s=$session[sessionhash]\">There are currently $pending[posts] post(s) awaiting moderation</a>.</b></p>";
  }
}
//HACK: Show pending attachments if any - begin
if (1==1) {        // flag to activate counter
  
$pending=$DB_site->query_first("SELECT COUNT(*) AS attachments FROM attachment WHERE visible=0");
  if (
$pending[attachments]>0) {
    echo 
"<p><b><a href=\"../mod/moderate.php?action=attachments&s=$session[sessionhash]\">There are currently $pending[attachments] attachment(s) awaiting moderation</a>.</b></p>";
  }
}
//HACK: Show pending(s) if any - end 
That's all folks!
Am I a dummy hacker ? :surprised

Thanks

Show Your Support

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

Comments
  #2  
Old 01-04-2003, 10:10 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've found that a more useful place for this is in the Welcome Box - using the Dynamic Templates hack - to show that moderation actions are required of Mod's / Admins

Thansk for the work tho Excellent
Reply With Quote
  #3  
Old 01-06-2003, 10:13 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for releasing this - you might want to post this up in a text file so that unlicensed users can't have access to this hack

- miSt
Reply With Quote
  #4  
Old 01-17-2003, 11:50 PM
EchoHype.com's Avatar
EchoHype.com EchoHype.com is offline
 
Join Date: Mar 2002
Location: Harrisburg, PA
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea there mist
Reply With Quote
Reply

Thread Tools

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:07 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.03906 seconds
  • Memory Usage 2,237KB
  • Queries Executed 17 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete