vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Include file in footer template (https://vborg.vbsupport.ru/showthread.php?t=236587)

Muller2 02-22-2010 02:18 PM

Include file in footer template
 
Hi,

I would like to include a php file in the footer template and I followed this guide http://www.vbulletin.com/forum/showt...P-or-HTML-File but that doesn't seem to work.

Has this changed in VB4? Or am I doing something incorrectly?

On the template I have '<div>$includedphp</div>' and on my plugin that is active I have

Code:
ob_start();
include('sitestats.php');
$includedphp = ob_get_contents();
ob_end_clean();
If anyone can help it would be much appreciated

Thanks,

Al

mtakhar 03-04-2010 11:04 PM

Did you ever resolve this?

I am having the same issue and it doesn't appear to work in version 4.0.

Can anyone shed some light on this?

I created a global_start plugin with this:

ob_start();
include('rscHeader.php');
$includedphp = ob_get_contents();
ob_end_clean();

I then added this to the style manager/header:

<div>$includedphp</div>

When I view source I get <div></div>

TimberFloorAu 03-05-2010 03:25 AM

<?php include("yourfile.php");?>

Then create a php file called yourfile.php

job done

chuckrobbie 03-06-2010 06:58 AM

I dunno

Everything I try to add to the footer template comes up with nasty errors!
VB4.0.2 is not like previous verions were this was easy to add stuff to a footer!

Can someone shed some light please?
Google analytics, custom php scripts etc do not work in footer template!

ChopSuey 03-06-2010 07:43 AM

Chuck i have responded to your thread.


All times are GMT. The time now is 07:52 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.00992 seconds
  • Memory Usage 1,714KB
  • 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
  • (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