vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Switch On/Off Out-of-Date Custom Templates Notifications in admincp (https://vborg.vbsupport.ru/showthread.php?t=105320)

Omranic 01-13-2006 10:00 PM

Switch On/Off Out-of-Date Custom Templates Notifications in admincp
 
I see that many people asking for something to disable Out-of-Date Custom Templates Notifications.

Now I worked on it only 30 seconds & get it work with 2 file edits (in one file - admincp/index.php) & a small product to give the ability to switch On/Off this Notification.

I made it as a product to be easly installed & uninstalled if this option comes in future vbulletin versions as a default option.

Installation: go to admincp dir & then to index.php file & open it in any php or text editor & find in it the following code:
PHP Code:

// before the quick stats, display the number of templates that need updating 

add above it directly the following code:
PHP Code:

if ($vbulletin->options['disablevboutodt'])




in the same fille find the following code:
PHP Code:

// *******************************
// Admin Quick Stats -- Toggable via the CP
$starttime mktime(000date('m'), date('d'), date('Y')); 

add above it directly the following code:
PHP Code:




Now Save your work & upload the file in its place
Now go to your admincp & then to Manage Products then [Add/Import Product] then import the attached product.


Now you are done

to use the hack & see that option follow the following steps:
Admincp >> vBulletin Options >> Admin Control Panel Options >> see at the button for this option (Switch On/Off Out-of-Date Custom Templates Notification.) you will see it as default (yes) make it No if you need to disable it.

Rhoads 01-14-2006 11:15 PM

Thanks man, I asked there for :)

https://vborg.vbsupport.ru/showthread.php?t=103668

Click Install

Omranic 01-25-2006 07:10 AM

yes & I coded it for you & any one need it :)


All times are GMT. The time now is 03:19 PM.

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.00967 seconds
  • Memory Usage 1,721KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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