vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How (https://vborg.vbsupport.ru/showthread.php?t=257033)

webmaster74 01-12-2011 11:41 PM

How
 
Hi. I know how to include a php file in a template in the forum.....

In which template should I include a php file to see it right after the <body> tag in CMS

I have copied a perfectly working plug-in I am using as header of my forums. (included php file)

I named it includedCMSHeader
attached it to global_start
went to the vbcms_page template

added that after the body tag, as you see here

Code:

    {vb:raw headinclude_bottom}
</head>

<body style="text-align:{vb:stylevar left}">

{vb:raw includedCMSheader}

{vb:raw header}
{vb:raw navbar}
{vb:raw toolbar}
<div class="vbcms_content">
{vb:raw layout}
</div>
{vb:raw footer}
</body>
</html>

this did not work........

any advice ? I don't need to be walked through step by step....... just point me in the right direction

Carnage 01-14-2011 05:32 AM

can you post the plugin code you are using and the location the plugin is execuuting at?

webmaster74 01-14-2011 06:39 AM

the plugin code is a simple include php like

Code:

ob_start();
include('path/to/this/file/myfile.php');
$includedphp = ob_get_contents();
ob_end_clean();

it is perfectly working in the forums...... that confirms that the path is fine, and there is no problem with the php file itself......

webmaster74 01-18-2011 06:49 PM

the vbulletin script is way too expensive for the support you get.....

--------------- Added [DATE]1295384006[/DATE] at [TIME]1295384006[/TIME] ---------------

I paid not less than 400 euros for my 2 vb licences...... I can't get support on which template to use to add my site header on that CMS.

am only looking for a piece of information.....

vbulletin.com tells you this is modification of the code, so no support........ go see vbulletin.org

you come to vbulletin.org, and you don't get help

Where should I go ?

--------------- Added [DATE]1295384160[/DATE] at [TIME]1295384160[/TIME] ---------------

Quote:

Originally Posted by Carnage (Post 2148821)
can you post the plugin code you are using and the location the plugin is execuuting at?

here you go Carnage:

Code:

ob_start();
  include('/var/www/vhosts/mysite.com/httpdocs/php/includes/body02.inc.php');

  $includedCMSheader = ob_get_contents();

ob_end_clean();

vB_Template::preRegister('header',array('includedCMSheader' => $includedCMSheader));



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.01171 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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