The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Insert PHP code in Style Manager
Hello all,
I divided the forum in two columns using the Style Manager. http://www.hyperlinkbuilding.org/seoforum.php In the right column (where you can see some adds now), I want to display some info related to the user. So I need to insert some PHP code there. When I do it, the PHP code is displayed like a comment. Greetings, Eddie --------------- Added [DATE]1331170301[/DATE] at [TIME]1331170301[/TIME] --------------- Hello all, I read in the manual the following: Using PHP Functions in Template Conditionals As a security precaution, to prevent malicious damage to either your database or your server itself, most PHP functions are disallowed in template conditionals. This, for example, would be disallowed by the vBulletin template system, as it contains a call to a 'forbidden' function: mysql_query. <vb:if condition="$my_variable = mysql_query('SELECT * FROM mytable')"> <!-- naughty naughty... --> </vb:if> At the time of writing, the list of allowed 'safe' functions is as follows: Therefore .... How can we use mysql_query function?? is there an alternative way??? I am trying to adapt vbulltin to an old website with many tables and info... I need to use that function.. Someone knows what to do?? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|