The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Please help me tweak my outside vb directory page...
Hi,
I have a php script that has a header and footer file. I want to use the vbulletin header and footer for the script. If I'm going about this the wrong way, please let me know. If I'm on the right track, please tell me how to display this code PHP Code:
PHP Code:
Thanks, Tim |
#2
|
||||
|
||||
If I were doing what you are looking to do, I would create 3 templates instead of 2. I would assign a variable to the test footer and test header like:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thanks Rich. In my original php script there are 100 different files/pages that are all run with a header/footer.
Is there a way I can add the vb header and footer to the other scripts header/footer file? It seems to me that using the method above, I would need to create 100 templates? Thanks, Tim |
#4
|
||||
|
||||
Before I go and give it a whirl at explaining this, have you considered using a CMS? vBadvanced allows you to pull PHP files in a "module" type of setting. Since vBadvaced is already 100% integrated with vBulletin, this would likely be the easiest way to do this.
It allows you to create pages, in unlimited quantities, using external or internal files and templates. The url would read: index.php?page=YourPageName and it would be automatically added to a vb page! For more information on this, check out: http://www.vbadvanced.com Did I mention it is free? lol With 100+ pages to add, no matter how you go about doing this, you are looking at some work. I believe this would be the easiest method though. |
#5
|
|||
|
|||
Even though I have 100 pages in my review script, the header and footer are all controlled by one php file. If I could get that one php file to show the vbulletin header and footer, I'd be set! It doesn't seem like it would be that hard to do!
Thanks again for your input! Tim |
#6
|
||||
|
||||
Ok, I think I am officially confused now. lol
HTML Code:
Even though I have 100 pages in my review script, the header and footer are all controlled by one php file. I was a bit thrown off because your first post is showing a vb powered page. If the script you are using isn't powered by vb, I don't see how a default vb powered page would work correctly. Attach the file that controls the header and footer or add the code in PHP tags so we can check it out. |
#7
|
|||
|
|||
He wants to know how to inlcude the login info into the header of his website so people can "log into" the other non-vb pages. He doesn't want to use any vb templates "inside" of vbulletin.
At least that's how I see it. I want to do the exact same thing? Any help? Thanks, Sean |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|