PDA

View Full Version : prevent useless full quotes


yjeanrenaud
06-25-2012, 06:39 PM
Hi,
some users prefer to use the quote function all the time, but this produces tons of redundancy. I am looking for a mod to prevent users from quoting an article which is on the same page, or at least quoting an post which is just above theirs.

DivisionByZero
06-28-2012, 03:01 AM
interesting. you could disable quoting, and take the very rare step of switching to threaded or hybrid mode, but to develop this sort of mod would take some doing.

Badshah93
06-28-2012, 06:25 AM
least quoting an post which is just above theirs.

Create a new plugin
Hook: postbit_display_complete

Code:

if (THIS_SCRIPT == 'showthread' AND ($post['isfirstshown'] OR $post['islastshown']))
{
$show['multiquote_post'] = false; // disable multiquote button from last and first post
$post['replylink'] = false; // disable quote button from last and first post
}

I am looking for a mod to prevent users from quoting an article which is on the same page

its also possible with one extra line of code but you should not be doing this as this will prevent all users (from a group, if you usergroup condition) from quoting the post which is on same page.

But still here is the code for it (don't add this with previous code)

$npshowing = $_GET['pp'] ? intval($_GET['pp']) : $this->registry->options['maxposts'];

if (THIS_SCRIPT == 'showthread' AND ($post['postcount'] < $npshowing OR $post['islastshown']))
{
$show['multiquote_post'] = false;
$post['replylink'] = false;
}

yjeanrenaud
06-28-2012, 08:11 AM
lovely, great!

Andy
06-28-2012, 08:33 AM
Hi,
some users prefer to use the quote function all the time, but this produces tons of redundancy. I am looking for a mod to prevent users from quoting an article which is on the same page, or at least quoting an post which is just above theirs.

Your best bet is to educate your members when to use the Reply with Quote versus Reply to Thread buttons. Create a thread that explains this and send the offender a link to the thread.

yjeanrenaud
06-28-2012, 08:49 AM
I can't even educate my moderators not to do so :/