Announcement

Collapse
No announcement yet.

Replacement Variables - replace with a function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RobTD
    replied
    hmmm it is possible with custom BB codes! Thank you :-)

    Leave a comment:


  • Incendium
    replied
    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.

    Leave a comment:


  • RobTD
    started a topic Replacement Variables - replace with a function

    Replacement Variables - replace with a function

    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

Related Topics

Collapse

Working...
X