The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
Id like to create an extra .php page which will contain Boards headers, footers and this part (please see an attachment)? Can somebody help me? Thank you. |
#2
|
||||
|
||||
![]() |
#3
|
|||
|
|||
![]() Quote:
I am aware of this code. But, this .php file is not displaying part of the headers. I am talking about that part (please, see an attachment to my post #1). Or maybe I can not make it works. How I should modify this code to display ?User CP FAQ Members List Calendar New Posts Search Quick Links Log Out? (please, see an attachment to my post #1)? Thank you. |
#4
|
||||
|
||||
![]()
https://vborg.vbsupport.ru/showpost....77&postcount=3 (It was the 3rd post in that thread
![]() |
#5
|
|||
|
|||
![]()
assassingod,
It is works if to change eval('$HTML = "' . fetch_template('name of template') . '";'); to eval('$HTML = "' . fetch_template('navbar') . '";'); I'd like to add some text or HTML code into that new page. But, I can not figure out how and where to insert text or any HTML code in that extra page. What I should add to this code? Please, help. <?php // GO TO FORUM DIR chdir('/full/path/to/forum/directory'); // STANDARD VBULLETIN STUFF define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'script_name'); require_once('./global.php'); // GENERIC_SHELL VARS $pagetitle = "Title of Page"; $HTML = ""; // PIECED TOGETHER IN SCRIPT eval('$HTML = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('GENERIC_SHELL') . '");'); ?> Thank you. |
#6
|
||||
|
||||
![]()
If you are trying add the navbar in your page, like in yours screenshot then use this code:
PHP Code:
|
#7
|
|||
|
|||
![]() Quote:
Thank you. Thank you. and Thank you. |
#8
|
||||
|
||||
![]()
You're welcome
![]() |
#9
|
|||
|
|||
![]() Quote:
I?d like to thank you for the help. This code works fine on Linux server. I am trying to use the same code on Windows server and I have an error. Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Domains\myDomain.net\wwwroot\includes\init.php on line 506 Warning: implode() [function.implode]: Bad arguments. in C:\Domains\myDomain.net\wwwroot\includes\init.php on line 511 Unable to add cookies, header already sent. File: C:\Domains\myDomain.net\wwwroot\includes\init.php Line: 506 Do you have an idea why it is different for Windows server and how to solve this problem? Thank you. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|