Auto parse links per forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Reverend
    Senior Member
    • Jul 2002
    • 588
    • 4.2.x

    Auto parse links per forum

    Is it possible to have "Automatically parse links in text" set to disabled by default for individual forums,or can it only be done on a global basis?
    Techzonez - Tech News
    Techzonez Forums - Tech Community
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    This can be done with a template conditional.

    Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> New Posting Templates » -> newreply

    Find this code and add the code in red:

    <div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" <if condition="$postpreview OR $forumid != X">$checked[parseurl]</if> />$vbphrase[automatically_parse_links_in_text]</label></div>
    Where X is the forumid of the forum you want not to have that box checked by default.

    Make this same change to the newthread and editpost templates.

    Comment

    • Reverend
      Senior Member
      • Jul 2002
      • 588
      • 4.2.x

      #3
      Thanks Jake,worked like a charm.

      Just a couple of related questions:

      Which template do i need to edit for it to work with Quick Reply ?

      I presume i can add more than one forum by separating the forumid's with a , or ; ?

      Thanks.
      Techzonez - Tech News
      Techzonez Forums - Tech Community

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        The quickrelpy form doesn't have an Automatically parse links in text checkbox. The quickreply form always parses links.

        To add more forums to that condition, do like this:

        Code:
        <if condition="$postpreview OR [color=red]([/color]$forumid != X [color=red]AND $forumid != Y AND $forumid != Z)[/color]">

        Comment

        • Reverend
          Senior Member
          • Jul 2002
          • 588
          • 4.2.x

          #5
          OK thanks.
          Techzonez - Tech News
          Techzonez Forums - Tech Community

          Comment

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