Results 1 to 3 of 3

Thread: IPB Spioiler tag

  1. #1

    Default IPB Spioiler tag

    I just downloaded a hack to get a spoiler tag for my IPB board. I can't make heads or tails out of this. Any idea how I can set this up on my board?
    Attached Files Attached Files

  2. #2
    ..a Russian mountain cat. Yamaneko's Avatar
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    15,927
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    It tells you what to do there.

    First open <b>/sources/lib/post_parser.php</b> and find <b>if ( $in['CODE'] == 1 ) {</b> in the file. Below that add <b>$txt = preg_replace( "#\[spoiler\](.+?)\[/spoiler\]#ies", "\$this->regex_spoiler_tag('\\1')", $txt );</b>

    Etc... Just do what it says. Add after, add before, replace. Those are the basic procedures. Can't get much simpler.

  3. #3

    Default

    I'm editing the php just like it's telling me and it's still not working, I'm even copying and pasting to see if I can get it right. Can somebody edit this for me? It's not going well for me.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •