The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using php in styles to access my own db
I'm trying to add a few lines of php to an Ad Location style to pull some code out of a table in my mySQL db and echo it. Does anybody know the right syntax for this? Standard code doesn't seem to be working for me. Thanks.
-Greg |
#2
|
|||
|
|||
on top of this page, you see a tab called "Articles"... you will see there how to integrate your codes to vBulletin.
|
#3
|
||||
|
||||
The style manager limits which PHP functions can be called in templates to:
Note: Functions marked * are custom functions defined by vBulletin itself. Each function name is a link that will take you to the documentation for that function. Use of these functions requires knowledge of PHP http://www.vbulletin.com/docs/html/f...n_conditionals What you need to do is write a plugin, then define a variable and output the variable in your template. |
#4
|
|||
|
|||
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|