![]() |
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? |
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:
|
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 The quiestion is, how can i do this in vBulletin, still having it's design, footer and header? |
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:
|
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. |
After some stress found this topic: https://vborg.vbsupport.ru/showthrea...4&page=1&pp=15 where I found everything i needed. Thanks, everyone!
|
Quote:
|
There's nothing wrong with Gary's code at all Zachery :)
|
Nothing wrong with it at all execpt Zach came up with it first. ;)
|
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..
|
All times are GMT. The time now is 10:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|