The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Page
I have a little fancy gallery script, that I would like to be part of my board (3.0 Gold). All I need is somehow include() the script in a custom vB page, that has the usual menu, and footer. I want the gallery to open up in vb, when i call forums/gallery.php. I can add the link in the navigation bar myself, but i've no ide how can I make the gallery look like part of vB (with navbar, footer, etc), just on a separate page.
Any ideas? |
#2
|
||||
|
||||
Quote:
I haven't tested this, but it should in logic work, I have tried to make variables and things respective to your problem. PHP Code:
|
#3
|
|||
|
|||
Here's a better description of what i need.
Forum address: www.site.com/forums/index.php Image gallery main page address: www.site.com/forums/gallery/index.php Needed address: www.site.com/forums/gallery.php Previously, i've used invision, and there i could do this simply by adding the required entry in www.site.com/forums/index.php. For example, if my file was gallery.php, i would add the folowing: "gal" => "gallery", And then if I called www.site.com/forums/index.php?act=gal I'd see my gallery. Contents of the gallery.php would be as follows: Code:
<?php $idx = new gallery; class gallery { var $output = ""; var $page_title = ""; var $nav = array(); var $html = ""; var $base_url = ""; function Articles() { global $ibforums, $DB, $std, $print; require('/home/site/public_html/forums/gallery/index.php'); $print->add_output(''); $print->do_output( array( 'TITLE' => "Gallery", 'JS' => 0, NAV => array( "Gallery" ) ) ); } } ?> The quiestion is, how can i do this in vBulletin, still having it's design, footer and header? |
#4
|
||||
|
||||
You want to route the address ./forums/gallery/index.php to ./forums/gallery.php?
This could be done easily enough through your server's Cpanel url redirects. As for integrating the gallery, just use the template above in Serge's post and place the object declaration ($idx = new gallery) below: PHP Code:
You'll have to configure the vB PHP file to then contain: PHP Code:
|
#5
|
||||
|
||||
Quote:
Not sure if the above post would do exactly what he wants it to do. This is just a tried and tested way, it works and it works well (see PHP code in attachment, it works). VB has been built in a way where its very easy to expand upon it and make use of functions while keeping performance at an optimum. Just try this... put the following code in a PHP file called integrate.php, upload it to your forum directory and run it. You will be presented with a custom page, using the vbulletin template. header, footer everything. PHP Code:
Very simple, very powerful, very effective. Just try it. |
#6
|
|||
|
|||
After some stress found this topic: https://vborg.vbsupport.ru/showthrea...4&page=1&pp=15 where I found everything i needed. Thanks, everyone!
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
There's nothing wrong with Gary's code at all Zachery
|
#9
|
||||
|
||||
Nothing wrong with it at all execpt Zach came up with it first.
|
#10
|
|||
|
|||
pissin contests are now cut off for you since you have become a mod, boofo.. leave that to us nobodies down here with our bellies to the floor..
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|