PDA

View Full Version : Replacement Variables - replace with a function


RobTD
Thu 13th May '04, 10:04am
Hello all,

Currently, I am thinking about creating a site that runs around vBulletin. For this, I would like to know if the following is possible:

- when a user posts something within brackets, like [Hello], the text within the brackets is put into a (php) function and is replaced by the result. For example, a user posts a reply with [Hello] in it. Then, "Hello" is put into function REPLACE, and the result, the new text, becomes <a href="hello.html">Hello</a>. If the user posts a reply with [Test], the text becomes <a href="test.html">Test</a>. etc, etc.

I don't think this will be possible using the admin panel, but maybe it is possible by adding a few lines to the parsing file or something?

Kind regards,

Rob Tieben

Incendium
Thu 13th May '04, 1:59pm
AFAIK, vBulletin only allows replacement variables in templates, not messages created by users.

Although, you might be able to achieve this effect with Custom BB Codes, but don't quote me on that.

RobTD
Thu 13th May '04, 6:39pm
hmmm it is possible with custom BB codes! Thank you :-)