View Full Version : Customizing vbulletin forum
suciuvlad
04-06-2010, 09:54 AM
Hello,
After i succeeded in creating a login/register from my main website i faced another problem. How do i add php to the template?
The website and the forum are on the same domain and use the samedatabase. I have edited the COMMON vbulletin template so that it has a visual style more similar to the website. The problem is that currently the navigation is static(i have only added html and css) but i need to query the database somehow and get the navigation from the database(i have added a pages table). I cant do that since i dont know how to add php to the templates.
I have attached a picture.
suciuvlad
04-07-2010, 07:40 AM
common guys... anyone?
Andreas
04-07-2010, 10:28 AM
How do i add php to the template?
Short answer: You can't
What exactly do you want to acomplish by "using PHP in a template"?
suciuvlad
04-07-2010, 11:48 AM
Hello Andreas,
As i was saying i wraped the forum in a div that it's styled to match my websites design. To do that i edited the common templates(Header, Headinclude and Footer).
If you look at the screenshot you can see that it works(as expected) but the thing is the navigation of my website it's database driven. Therefore i want to replace the currently added html (for the navigation) with html generated by php.
Regards,
Vlad.
suciuvlad
04-09-2010, 09:34 AM
so...?
suciuvlad
04-11-2010, 07:55 PM
i got more responses from open-source products rather then paid ones :)
Jabong82
04-11-2010, 08:10 PM
You should just open a support ticket. Its faster than posting on these forums. I usually post my questions on these forums and feel its an "added bonus" in case maybe someone will answer my question as often no one ever answers :). But yah support ticket is more direct.
Vaupell
04-11-2010, 08:14 PM
deleted the standard tabs, by disabled their respective plugins.
then add you own with one of the 5-8 tab modificaitons availible..
i ewen made one myself that adds navigation from DB via the plugin system.
https://vborg.vbsupport.ru/showthread.php?t=232224
And to ansver your other question, to run php
you either create a php file and run the templates in that not the other way around.
OR
create a plugin and run your php in there, but still render templates via php not other way around..
I know for a fact you can modify the layout anyway you want.
exsample : http://www.evisystems.org/?styleid=10 <-- NOT xhtml firendly its a build test.
default i run : http://www.evisystems.org/?styleid=8 <-- its just normal, more appealing.
EDIT : yes support tickets, usually faster than here..
vbulletin.org have died lately here on the forums, and alot of forum trolls have appeared.
so i guess the trolls came with the cms upgrade, and the great coders who responded help left for something else.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.