View Full Version : Remove Calendar Button when calendar is off?
I would like someone to makei t so when I turn off the calendar it removes the button from my header. I think should be a built in feature to vbulletin. Any help would be great. :china:
In global.php
Find:
// parse PHP include ##################
Above This Place:
/* Calendar Disappearo!! */
if ($calendarenabled) {
$calbutton="<a href=\"calendar.php?s=$session[sessionhash]\"><img src=\"https://vborg.vbsupport.ru/images/top_calendar.gif\" alt=\"Calendar\" border=\"0\"></a>";
}
/* Calendar Disappearo END */
In header template
Find
<a href="calendar.php?s=$session[sessionhash]"><img src="https://vborg.vbsupport.ru/images/top_calendar.gif" alt="Calendar" border="0"></a>
Replace that with
$calbutton
:p Maybe I should make this a release
Originally posted by Bane
In global.php
Find:
// parse PHP include ##################
Above This Place:
/* Calendar Disappearo!! */
if ($calendarenabled) {
$calbutton="<a href=\"calendar.php?s=$session[sessionhash]\"><img src=\"https://vborg.vbsupport.ru/images/top_calendar.gif\" alt=\"Calendar\" border=\"0\"></a>";
}
/* Calendar Disappearo END */
In header template
Find
<a href="calendar.php?s=$session[sessionhash]"><img src="https://vborg.vbsupport.ru/images/top_calendar.gif" alt="Calendar" border="0"></a>
Replace that with
$calbutton
:p Maybe I should make this a release
Thanks so much! I think you should!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.