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?
Auto parse links per forum
Collapse
X
-
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>
Make this same change to the newthread and editpost templates. -
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.Comment
-
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
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment