vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Internal Forums Closed Message/Reason (https://vborg.vbsupport.ru/showthread.php?t=207855)

jesus likes pie 03-09-2009 10:00 PM

Internal Forums Closed Message/Reason
 
1 Attachment(s)
Forums Closed Internal Reason by Rafael Lopez
03/09/2009 (m/d/y)

This is a very simple plugin [with 1 template edit..:( ] which adds an internal reason for closing the forums.

Most forums have a very general reason for closing forums which is displayed to the normal users "down for a few hours! Check back then!" etc.

This plugin will let you add more information to the "Alert: The forums are currently turned off!" phrase for a more detailed reason.

Of course, this will only be displayed to administrators.


::: Installation :::

Extract product-internal_closing.xml
Upload product-internal_closing.xml by going to ADMIN CP --> PLUGINS AND PRODUCTS --> MANAGE PRODUCTS --> ADD/IMPORT PRODUCT

Oh how I wish we were done. Unfortunately we must make a template edit (I know, I hate them too).


Code:

The template is called board_inactive_warning.

Replace
$vbphrase[alert_board_off]

with

$vbphrase[alert_board_off] ($icr)

The entire template should end up looking like this:

<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px">$vbphrase[alert_board_off] ($icr)</div>


And you're done!

You can edit the internal message on the same page that you close the forums and set a public reason/message.


Screenshots:

(I don't like vB's attachments because they always get resized too much for my liking)
Code:

http://img14.imageshack.us/img14/8824/vbmodicr1.jpg
http://img17.imageshack.us/img17/2703/vbmodicr2.jpg

Enjoy!

Don't forget to click install...

Jasem 03-11-2009 10:03 PM

Good work, thank you

installed


All times are GMT. The time now is 04:44 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,709KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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