Announcement

Collapse
No announcement yet.

Escaping to PHP in vBulletin posts?

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

  • Escaping to PHP in vBulletin posts?

    Is there a way to insert a PHP script into posts made inside the vBulletin system?

    I want create a set of 'fortune cookie' messages in a forum. I tried putting the PHP inside of a SCRIPT HTML tag, but that didn't seem to work.

    Any suggestions?

  • #2
    Add something like $fortune in the postbit template

    In showthread.php, add something like this:
    Code:
    Pick Random Quote
    $fortune = quote;

    Comment


    • #3
      Kuma, to get vb support on these forums you first need to register for Priority Forum Support. To do this, please click HERE and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page. Thanks.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X