Jump to content


- - - - -

RESOLVED: Disable Quoting of first message in topic


This topic has been archived. This means that you cannot reply to this topic.
19 replies to this topic

#1 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

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.  thumbsup.gif

#2 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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

#3 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

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. smile.gif Thanks.

Edited by Miracle, 12 March 2007 - 10:03 PM.


#4 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 12 March 2007 - 10:08 PM

In the Topic View -> RenderRow skin template, change 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

#5 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

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 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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

#7 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

Posted 12 March 2007 - 10:22 PM

Hmmm, the quote button still shows up. I cleared the cache.

#8 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

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.

ohmy.gif

#9 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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

#10 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

Posted 12 March 2007 - 11:13 PM

Works now. smile.gif last thing is remove the +Quote button as well. Thanks so much.

#11 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 12 March 2007 - 11:17 PM

Change this code:
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

#12 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

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. ohmy.gif

Edited by Miracle, 12 March 2007 - 11:49 PM.


#13 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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

#14 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

Posted 13 March 2007 - 12:29 AM

Oh, I tried it on my 2.0 board lol. sorry about that.

#15 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

Posted 13 March 2007 - 12:49 AM

nevermind.

Edited by Miracle, 13 March 2007 - 12:52 AM.


#16 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

Posted 13 March 2007 - 01:01 AM

QUOTE(Michael @ Mar 12 2007, 07:17 PM) <{POST_SNAPBACK}>
Change this code:
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&amp;CODE=02&amp;f={$this->ipsclass->input['f']}&amp;t={$this->ipsclass->input['t']}&amp;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&amp;CODE=02&amp;f={$this->ipsclass->input['f']}&amp;t={$this->ipsclass->input['t']}&amp;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 blink.gif

Edited by Miracle, 13 March 2007 - 01:01 AM.


#17 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

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.  huh.gif

#18 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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

#19 Miracle

Miracle

    Coder

  • Members
  • PipPipPipPipPip
  • 140 posts

Posted 13 March 2007 - 04:47 PM

Now it's working fine on all forums now. Thanks a lot Michael.  smile.gif

#20 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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. smile.gif

Topic Closed
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter