PDA

View Full Version : Maybe can't be done?


Okiewan
03-26-2002, 06:29 PM
I've read a ton of stuff in a search, but can't seem to find the answer.

I'm using photopost.
I added a php file ( latest_pic.php ) to rotate the latest pics on "any" page. Works fine on the home page of the site, using "

<!--#include virtual="/forums3/latest_pic.php" -->".

http://dirtrider.net/index2 (below the survey on the left)

Now I'm trying to add the same file to the header of the forum.
http://dirtrider.net/forums3/
(on the left side where all the logos are)

I've read about adding something like:
ob_start();
require("file.php");
$file = ob_get_contents();
ob_end_clean();
to the php include template ....but can't seem to make it work. (parse errors)

Sorry if this has been answered already, I searched!
Thanks in advance for any help.

Okiewan
03-26-2002, 06:58 PM
Update:

This is what I put in the php include template:

ob_start();
require("latest_pic.php");
$latest_pic = ob_get_contents();
ob_end_clean();


Then I put:
$latest_pic in the header template where I wanted it to display...

Get this database error:

Database error in vBulletin 2.2.1:

Invalid SQL: SELECT * FROM usergroup WHERE usergroupid=6
mysql error:

mysql error number:

Okiewan
04-01-2002, 06:34 AM
:disappointed:

Okiewan
04-02-2002, 07:31 PM
Humm... anyone have any idea where to look for this answer?

Rick
04-10-2002, 08:43 PM
I'm also interested in this...