RESOLVED: Disable Quoting of first message in topic
Started by Miracle, Mar 12 2007 09:29 PM
19 replies to this topic
#1
Posted 12 March 2007 - 09:29 PM
This would come in handy on one of my forums where members have to reply in order to see hidden content. Often times, members quote the first post in their replies. It takes up a lot of space, would be nice to have a mod to disable them quoting the first message of a topic in certain forums only.
#2
Posted 12 March 2007 - 09:51 PM
It's not possible, you can remove the quote button, but there's nothing to stop people from copying the text and wrapping it in quote tags.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#3
Posted 12 March 2007 - 10:01 PM
The members that quote the entire message doesn't copy and paste since the quote contains the snapback code. Is there any way to remove the quote button on the first message only? If not, then I'll just remove the quote button from that one forum instead.
Thanks.
Edited by Miracle, 12 March 2007 - 10:03 PM.
#4
Posted 12 March 2007 - 10:08 PM
In the Topic View -> RenderRow skin template, change this:
To this:
CODE
<{P_QUOTE}>
To this:
CODE
<if="$post['post_count'] != 1><{P_QUOTE}></if>
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#5
Posted 12 March 2007 - 10:13 PM
That's gonna remove the quote button on all forums, any way to remove for a certain forum only?
#6
Posted 12 March 2007 - 10:14 PM
CODE
<if="$post['post_count'] != 1 && $this->ipsclass->input['f'] == X><{P_QUOTE}></if>
Replace the X with the ID# of that forum.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#7
Posted 12 March 2007 - 10:22 PM
Hmmm, the quote button still shows up. I cleared the cache.
#8
Posted 12 March 2007 - 10:27 PM
Oh, I got this message:
These template bits could not be saved because they cause an error when parsed. Please check the data including any HTML logic used and any input data variables.
These template bits could not be saved because they cause an error when parsed. Please check the data including any HTML logic used and any input data variables.
#9
Posted 12 March 2007 - 10:30 PM
Yeah, I see that too, make sure you put a double quote after the forum ID#:
CODE
<if="$post['post_count'] != 1 && $this->ipsclass->input['f'] == X"><{P_QUOTE}></if>
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#10
Posted 12 March 2007 - 11:13 PM
Works now.
last thing is remove the +Quote button as well. Thanks so much.
#11
Posted 12 March 2007 - 11:17 PM
Change this code:
To this:
CODE
<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
To this:
CODE
<if="$post['post_count'] != 1 && $this->ipsclass->input['f'] == X"><a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a></if>
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#12
Posted 12 March 2007 - 11:49 PM
Ooops, all forums quote buttons are missing in every single post, not just the first post like I wanted.
Edited by Miracle, 12 March 2007 - 11:49 PM.
#13
Posted 13 March 2007 - 12:19 AM
I just verified, that code is correct...
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#14
Posted 13 March 2007 - 12:29 AM
Oh, I tried it on my 2.0 board lol. sorry about that.
#15
Posted 13 March 2007 - 12:49 AM
nevermind.
Edited by Miracle, 13 March 2007 - 12:52 AM.
#16
Posted 13 March 2007 - 01:01 AM
QUOTE(Michael @ Mar 12 2007, 07:17 PM) <{POST_SNAPBACK}>
Change this code:
To this:
CODE
<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
To this:
CODE
<if="$post['post_count'] != 1 && $this->ipsclass->input['f'] == X"><a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a></if>
This removes the +quote and quote buttons on all messages in every forum on my 2.2 board
Edited by Miracle, 13 March 2007 - 01:01 AM.
#17
Posted 13 March 2007 - 01:27 AM
QUOTE(Michael @ Mar 12 2007, 06:14 PM) <{POST_SNAPBACK}>
CODE
<if="$post['post_count'] != 1 && $this->ipsclass->input['f'] == X><{P_QUOTE}></if>
Replace the X with the ID# of that forum.
Really odd, on the forum it is set to, it's working properly. However, on the other forums, every message in a topic is missing the Qutoe button.
#18
Posted 13 March 2007 - 03:29 PM
Sorry, bit of a logic error there. The code should be:
CODE
<if="$post['post_count'] != 1 || $this->ipsclass->input['f'] != X"><a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a></if>
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#19
Posted 13 March 2007 - 04:47 PM
Now it's working fine on all forums now. Thanks a lot Michael.
#20
Posted 13 March 2007 - 05:36 PM
The issue this topic was opened for has now been resolved. If you need further assistance, please open a new topic. If this topic was closed prematurely, please contact me so I can re-open it.
Topic Closed
Topic Closed
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
















