The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How do i include a php file in the header of the forum? (VB3.5 RC2)
I have inserted this but nothing happens Code:
<?php include("http://www.myfootballforum.com/banners/showbanner.php"); ?> |
#2
|
||||
|
||||
![]()
3.0.x or 3.5?
|
#3
|
||||
|
||||
![]()
The best way to do this would be through a plugin.
Go to "Add Plugin", and put in your php code (without the <?php ?>), and hook it onto global_start. |
#4
|
|||
|
|||
![]()
i'm unsure as i've never done this before
I received an error: Code:
Warning: mysql_connect(): Access denied for user: 'myfootba@localhost' (Using password: NO) in /includes/functions.php(4191) : eval()'d code on line 69 Die Verbindung zum MySQL-Datenbankserver ist fehlgeschlagen |
#5
|
|||
|
|||
![]()
The opening and closing php tags are not needed in the phpinclude templates.
|
#6
|
||||
|
||||
![]()
@mcyates
If your Include uses mySQL, make sure a) The Tables are in the same Database as vBulletin OR b) It uses another Username/Password OR c) It opens a new connection |
#7
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|