vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Maybe can't be done? (https://vborg.vbsupport.ru/showthread.php?t=36590)

Okiewan 03-26-2002 06:29 PM

Maybe can't be done?
 
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 "
Code:

<!--#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:
Code:

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:
Code:

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

Then I put:
Code:

$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...


All times are GMT. The time now is 07:18 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.02396 seconds
  • Memory Usage 1,723KB
  • 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
  • (4)bbcode_code_printable
  • (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