The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
wrapping vb5 header footer style around a page.
I know this is pretty early since this is a beta but I have been disecting the code for vb5 some.
Do not see a way like we use to be able to wrap the vb header footer navbar around custom pages like we use to do with vb3 and vb4. If this is truly the case I think this is going to put an end to alot of the vb mod forums. |
#2
|
|||
|
|||
Lots of views but anyone know if there is a way to full the header footer around a custom page?
I can grab the header template using the $templater but in vb3 and vb4 $header $footer where universally defined as the full vb header footer with all variables defined etc --------------- Added [DATE]1350836490[/DATE] at [TIME]1350836490[/TIME] --------------- This use to be easy in vb3 and vb4 so you could write your own scripts and use the vb header footer. $header $footer use to always resolve to the header footer of vb and then you just processed replacements. This is ultra simplified but worked with vb3 and vb4 Code:
<?php require "global.php"; $header = process_replacement_vars($header); $footer = process_replacement_vars($footer); $content = "blah blah"; print "$header<br />$content<br />$footer"; ?> I have been looking at vb5 and see no way to do that |
#3
|
|||
|
|||
The vb5 Page Manager seems to be a joke as you can only include data in those little container boxes so that does not work to wrap the vb header and footer around a full featured app/mod with multiple scripts in a directory.
I have successfully made a simple cloned test page with the vb header footer echoing nothing but hello in the middle. Placing this in say a cloned vb index,php minus the $class defines and then renamed to test.php will print what I need. Code:
$templater = new vB5_Template('header'); $header = $templater->render(); $templater = new vB5_Template('footer'); $footer = $templater->render(); print "$header<br />HELLO<br />$footer"; Any ideas. |
#4
|
|||
|
|||
My solution is a hybrid of the above; plus some symbolic links to get the file you create to run in the directory where you want it.
Instructions:
|
#5
|
|||
|
|||
Thats actually actually quite what I already did
http://omegatron.net/photos Basically what I did was make a dumbed down index.php called say test.php and place the dumbed down code into a function I named. I could then return an array with header footer values and in my code simply call the require that file in my application and can load the vb header footer. Likewise yes you have to softlink or place a modified copy of config.php in your other directory. Definately note a user friendly as earlier versions and I think the vb5 sales will be reflected as a result. |
#6
|
|||
|
|||
did you figure out how to get the sub nav menus to appear? mine will not generate on my custom pages..
|
#7
|
|||
|
|||
Found issue with 5.0, instructions above modified.
|
#8
|
|||
|
|||
This does not work for VB 5.1 ... ?
|
#9
|
|||
|
|||
Have not tested it with 5.1 yet. Once my board updates to 5.1 I will test and release any changes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|