PDA

View Full Version : File include on bbcode


JamesHarrison
07-09-2007, 02:08 AM
Hi,

I'm trying to get a BBcode to include a PHP file, which access a variable set in the BBcode PHP side.

Eg, my bbcode needs to run this PHP:

$var = 32;
include("file.php");


And the script parsing it will do some clever DB stuff based on the $var and output HTML (file.php).

Any ideas how I would go about doing this? $var would be set by the user input (var's value)

Reeve of shinra
07-09-2007, 02:29 AM
Can you be a little clearer about what you are aiming to achieve / what the end result should be?

JamesHarrison
07-09-2007, 03:03 AM
Can you be a little clearer about what you are aiming to achieve / what the end result should be?

Basically, I want to allow the user to do 32. This will go off and call some DB-stored data (Indexed by the number 32) from a different database and output a line of text containing the DB-stored data, as well as a link to a full view page.

Anyone able to help with this? I'm fairly proficient in PHP/HTML/CSS/MySQL, just not sure how vBulletin is laid out.