vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Insert php somewhere in / near header (https://vborg.vbsupport.ru/showthread.php?t=298360)

DF031 05-21-2013 04:32 PM

Insert php somewhere in / near header
 
Hi All,

I have created (basically tweaked some available free code) a small quotes database and some php code to retrieve a random quote.

I would like to include that php code somewhere so that the random quote is display here

https://dl.dropboxusercontent.com/u/...B6582/here.PNG

or here

https://dl.dropboxusercontent.com/u/...582/orhere.PNG

Is that possible ?

Thanks in advance for all your help !

ForceHSS 05-21-2013 04:44 PM

Have you not tried adding it to the header template

DF031 05-21-2013 05:07 PM

Yes I tried that. No error, but seems the php code is ignored. Or maybe I am doing something wrong ?!

Zachery 05-21-2013 09:02 PM

You can't use raw php in vBulletin templates. You can check out articles here on vBulletin.org, or in the vBulletin.com docs on how to include external files, or parse your php into a variable for output in a template.

DF031 05-25-2013 09:16 PM

Thanks for the help Zachery.

I used this technique --> https://vborg.vbsupport.ru/showthread.php?t=242454

Works like a charm !


All times are GMT. The time now is 12:06 AM.

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.01035 seconds
  • Memory Usage 1,712KB
  • 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
  • (5)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