PDA

View Full Version : Switch On/Off Out-of-Date Custom Templates Notifications in admincp


Omranic
01-13-2006, 10:00 PM
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:
// before the quick stats, display the number of templates that need updating


add above it directly the following code:
if ($vbulletin->options['disablevboutodt'])
{



in the same fille find the following code:
// *******************************
// Admin Quick Stats -- Toggable via the CP
$starttime = mktime(0, 0, 0, date('m'), date('d'), date('Y'));


add above it directly the following 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 :)