Secret BBCode?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigsoccer tech
    Senior Member
    • Apr 2000
    • 573
    • 3.6.x

    Secret BBCode?

    Can you create a custom bbcode taht doesn't auto-appear in the FAQ so you only give it to members you want to?
    The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    No, all bbcode is public. Even if you hid it and only gave it to specific users, other users can just quote a post and get the bbcode.

    Comment

    • Crippius
      New Member
      • Sep 2007
      • 7

      #3
      Solution

      Actually you can keep your custom bbcode secret.


      Edit template help_bbcodes
      Remove the following lines:
      Code:
      $template[bbcodelinks]
      Code:
      $template[bbcodebits]
      And I've solved the quote problem with a pluggin

      Let's say your custom bbcode is
      [test]value[/test]

      Create a new pluggin

      Hook Location : newreply_quote
      PHP Code:
      $pagetext str_replace('[test]''[???]'$pagetext);
      $pagetext str_replace('[/test]''[/???]'$pagetext);
      $pagetext str_replace('[TEST]''[???]'$pagetext);
      $pagetext str_replace('[/TEST]''[/???]'$pagetext); 
      When quoting, all occurences of your custom bbcode will be replaced by
      [???]value[/???]

      Et voila

      NB: I don't use multiquoting on my forum so I have not tested my hack with that feature, but for normal quoting it works fine

      Comment

      Related Topics

      Collapse

      Working...