The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Customizing vbulletin forum
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. |
#2
|
|||
|
|||
common guys... anyone?
|
#3
|
||||
|
||||
Quote:
What exactly do you want to acomplish by "using PHP in a template"? |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
so...?
|
#6
|
|||
|
|||
i got more responses from open-source products rather then paid ones
|
#7
|
|||
|
|||
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.
|
#8
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|