vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Get Date NOt Parsing from Vbulletin HELP? (https://vborg.vbsupport.ru/showthread.php?t=117920)

ggiersdorf 06-07-2006 06:44 PM

Get Date NOt Parsing from Vbulletin HELP?
 
Im using a script on my homepage that will rotate a header image each date and on my CMS it works fine. When I copied the exact code over to Vbulletin and put it in my header it acts weird like its not even parsing the command.


<img src="http://www.mysite.com/banners/<?php echo date("D"); ?>.jpg" />

is there a special adaption needed for Vbulletin files?

When I do this in vbulletin the image block show this

http://www.mysite.com/banners/%3C?php echo date(
and after the red box you get an additional jpg" />
text.

Can anyone please help me get this right

calorie 06-21-2006 08:08 PM

You cannot place PHP code directly into vB templates. Instead, you'd need to set a variable via a plugin or file edit, and then for the template available after such code change, you'd use the variable you created in the template. Also, there is probably some cutsie JavaScript trick you could use to set a Mon through Sun date, whereby you'd only need to edit a vB template.


All times are GMT. The time now is 08:49 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.01017 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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