vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   php in header (https://vborg.vbsupport.ru/showthread.php?t=25340)

Da_FleX 08-14-2001 09:53 AM

i want to use php in the header so i can show the latest news on my website and stuff...
but the code of vbulletin is so complex...
where exactly can i do that?

hopy u guys can help me and that it's possible :)

mjames 08-14-2001 06:43 PM

The vBulletin code is not complex, it is simply HTML like any other web page.

You can edit the appropriate template to make changes as you desire. If you want to add information at the top, try the header template.

Da_FleX 08-14-2001 07:08 PM

html is no problem...
but it's php i want to use :)

on the top of the forum i wanna place a banner and the latest news and stuff that's stored in a database... but how can i do that..........

Scott MacVicar 08-14-2001 08:16 PM

within styles there is a Header Include text box, its the very top box.

it has some bits of PHP that are commented out. Add the php code there. Like

$news=virtual("/news/news.txt");

and you can use $news in your templates or the header.

Da_FleX 08-15-2001 10:37 AM

k tnx a lot that really helped me out dude!


All times are GMT. The time now is 02:51 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.00922 seconds
  • Memory Usage 1,707KB
  • 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