PDA

View Full Version : How


webmaster74
01-12-2011, 11:41 PM
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


{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

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 1295384006 at 1295384006 ---------------

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 1295384160 at 1295384160 ---------------

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

here you go Carnage:


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('includedC MSheader' => $includedCMSheader));