PDA

View Full Version : Maybe can't be done?


Okiewan
26 Mar 2002, 20:29
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
26 Mar 2002, 20:58
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
01 Apr 2002, 08:34
:disappointed:

Okiewan
02 Apr 2002, 21:31
Humm... anyone have any idea where to look for this answer?

Rick
10 Apr 2002, 22:43
I'm also interested in this...