FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Quote depth limiter - mod or plugin (Looking for some pointers re writing a mod or plugin )
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Quote depth limiter - mod or plugin [message #166721] Thu, 16 February 2012 22:07 Go to next message
rboatright is currently offline  rboatright
Messages: 5
Registered: February 2012
Location: United States
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
We have a lot of users who read our forum via email, and as a result many of the posts coming into the forum contain quoted messages.

We would like to limit the length or depth of the quotes either to 'x' lines, or to a quote depth of 1 or 2. Any suggestions about where to start on the filter to do that?

It's not that I can't write the filter, but I have not managed to find the logical place to stick it in...

-_ Rick
Re: Quote depth limiter - mod or plugin [message #166722 is a reply to message #166721] Thu, 16 February 2012 22:30 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Function send_email() in iemail.inc.t.

Add a call-out for plugins before the message is sent and code your plugin against it.

See http://fudforum.svn.sourceforge.net/fudforum/?rev=5425&view=rev
Re: Quote depth limiter - mod or plugin [message #166751 is a reply to message #166722] Fri, 17 February 2012 07:09 Go to previous messageGo to next message
rboatright is currently offline  rboatright   United States
Messages: 5
Registered: February 2012
Location: United States
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
That doesn't seem fair. It would only be limiting quotes going OUT to email people.

It would make more sense to limit the quote depth at the time the quote button was pressed I would think.

-_ Rick
Re: Quote depth limiter - mod or plugin [message #166790 is a reply to message #166751] Thu, 23 February 2012 17:25 Go to previous messageGo to next message
NeXuS is currently offline  NeXuS
Messages: 121
Registered: July 2010
Location: South Korea
Karma: 5
Senior Member
Contributing Core Developer
add to buddy list
ignore all messages by this user
Quote:
It would make more sense to limit the quote depth at the time the quote button was pressed I would think.


I am sorry, but I does not make sense: when one quotes someone else it is logical to give them the full quote and then let them choose which parts should be discarded. If you preemptively discard part of the quote, it might make the whole quoting useless.
Re: Quote depth limiter - mod or plugin [message #166794 is a reply to message #166790] Fri, 24 February 2012 06:15 Go to previous message
rboatright is currently offline  rboatright
Messages: 5
Registered: February 2012
Location: United States
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Normally, you are completely correct, however in the particular forum in question, since well over half of the users participate in the forum by email, and are unable to have any context from a reply UNLESS there is at least some quoting, the reply button without quotes is disabled, and all replies automatically get quotes.

If no quote-length limit is imposed a linear lengthening happens.

Message length rapidly gets out-of-control for the web users, making it difficult for them to read the web pages.

In prior incarnations of the forum, where we were using something other than FUDforum, we implemented a routine we called "Otto Von Schnipp" which removed any quote parts with depth > 1. (anything with >> prepending)
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: GLOBALS.php and integration: suggested patch
Next Topic: Why a 302 redirect?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 14 12:14:48 EST 2017

Total time taken to generate the page: 0.00716 seconds