![]() |
How to add a php include
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"); ?> |
3.0.x or 3.5?
|
1 Attachment(s)
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. |
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 |
The opening and closing php tags are not needed in the phpinclude templates.
|
@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 |
Quote:
|
All times are GMT. The time now is 11:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|