PDA

View Full Version : Remove Calendar Button when calendar is off?


LuBi
02-10-2002, 01:21 AM
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:

Bane
02-10-2002, 01:23 AM
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

LuBi
02-10-2002, 01:27 AM
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!