PDA

View Full Version : Removing [ quote ] from quote in certain forums


Jo_RHU
12-05-2010, 10:58 PM
When clicking the 'quote' button on a post I would like a new post to be created including the quoted text but WITHOUT the bbcode [ quote ] [ /quote ] around it, and only in specific forums.

I'm fairly clueless about if statements and have just tried different variations based on what I've found on various vb forums and nothing seems to be working.

In the 'newpost_quote' template I have tried the following:

<if condition="THIS_SCRIPT == 'newreply' AND $forumid == 74">{$pagetext}<else />{$pagetext}</if>


<if condition="THIS_SCRIPT == 'newpost' AND $forumid == 74">{$pagetext}<else />{$pagetext}</if>


<if condition="$forumid == 74">{$pagetext}<else />{$pagetext}</if>

<if condition="in_array($forumid,array(74,75,76))">{$pagetext}<else />{$pagetext}</if>

<if condition="in_array($forumid,array(74,75,76))">{$pagetext}<else />{$pagetext}</if>


:confused: Any help would be greatly appreciated. I'm using v 3.8.5.

p.s. I've also tried to add the 'if' in the 'bbcode_php_printable' template

kh99
12-05-2010, 11:05 PM
Maybe try

Never mind, try this instead:
<if condition="in_array($quote_post[forumid],array(74,75,76))">{$pagetext}<else />{$pagetext}</if>