Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2005, 11:42 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default adding date at top with global_start

PHP Code:
$topdate = date("F j, Y"); 
i put that in a plugin hooked to global_start. then i just call $topdate in my header template. it doesn't work. :/

i used to have that code in the phpinclude_start template, but since that is gone i moved it. can't get it to work.
Reply With Quote
  #2  
Old 09-30-2005, 12:06 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked for me. I'm using 3.5.0 Gold. Did you activate it? I know sometimes I'm in a hurry and forget to...
Reply With Quote
  #3  
Old 09-30-2005, 12:11 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya I did activate it. Here is what I have.

HEADER TEMPLATE:
PHP Code:
<td height="30" align="right" bgcolor="#2d356e" class="white">$topdate</td> 
PLUGIN:
PHP Code:
Product: vBulletin
Hook Location: global_start
Title: Header date
Plugin PHP Code: $topdate = date("F j, Y");
Plugin is active: YES 
I've tried calling the variable in the template with $GLOBAL[topdate] and $GLOBALS[topdate] as well but neither of those work. I am aware of $datenow but it is not in the format that I want.
Reply With Quote
  #4  
Old 09-30-2005, 12:55 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got the same on my board, everything shows up fine. That's strange... you're running 3.5.0 Gold?
Reply With Quote
  #5  
Old 09-30-2005, 01:38 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, I just downloaded it and upgraded my boards.

OK, nevermind ... complete moron. I didn't know you had to turn the plugin system on until just now. :/ Works perfect.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:37 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.