PDA

View Full Version : Miscellaneous Hacks - Prevent Quoting Last Post in Thread


oldengine
14 May 2008, 23:03
Folks are hitting the Quote button rather than Post Reply when answering the last post in a thread.

We default to Linear Oldest First so it gets rather stale and wasteful to see all the duplicate postings one after the other. We do not use Quick reply.

Find in postbit template:


<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>


Replace with:

<!-- Start last post reply Hack -->

<if condition="$post['islastshown'] AND $post['replylink']">
<a href="$post[replylink]&amp;noquote=1" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply]" border="0" /></a>

<else />

<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>

</if></if>
<!-- End last post reply Hack -->


http://www.vbulletin.org/forum/showthread.php?t=107498

Take notice that this is for default setting "Linear - Oldest First".

Quantnet
15 May 2008, 01:51
thanks.
This has been a nuisance. Glad finally someone came up with this.

oldengine
16 May 2008, 17:48
My tag edits were not working with all of my other postbit mods, so here it is one more time in tested form, my inserts in red. Looks the same to me, but cleaner...


<!-- Start last post reply Hack -->

<if condition="$post['islastshown'] AND $post['replylink']">
<a href="$post[replylink]&amp; noquote=1" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply]" border="0" /></a>

<else />
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>

</if>

</if>
<!-- End last post reply Hack -->


Apparently I was OK in the first place, but now we are sure.

oldengine
16 May 2008, 18:46
Would anyone care to match this into postbit_legacy ?

Quantnet
18 May 2008, 07:24
i use this for postbit legacy and it works fine.

DaninMS
22 May 2008, 19:15
This has bugged me too. Unfortunately it apparently isn't working for me. I replaced the code but am still able to quote the last message in a thread.

DaninMS
22 May 2008, 19:20
Nevermind..didn't replace the code in the postbit legacy. Now it works !

andreamarucci
22 May 2008, 22:17
Fantastic it works!!!

oldengine
23 May 2008, 04:56
All's not gold that glitters. :eek:

I was noticing some quoted posts by one individual at the bottom of a thread.

Turns out that he is viewing threads "Linear - Newest First".

My default setting is "Linear - Oldest First".

I just wanted you to know. Back to the drawing board. :(

KanmaiseR
23 May 2008, 08:39
Thanks, installed :)

andreamarucci
23 May 2008, 10:09
A small problem. I've substituted reply_small. with reply.gif otherwise the reply button in the message was smaller that the others. Problem is that the reply button in the PM is larger than the other one. I mean, there's a way to differentiate between the reply button in PM and in the threads?

DaninMS
23 May 2008, 15:11
I'm noticing now that in one of my threads the post at the bottom of each page is keeping the reply button instead of displaying the quote.

Quantnet
25 May 2008, 03:46
you should also remove the multi-quote button as people now can click that on the last post, click reply and bypass the purpose.

oldengine
25 May 2008, 05:52
Multi Quote is truned off on my forum. Great for computer savvy users, really bad for my users. They would multi-quote the contents of the entire thread into one post.

That's the deal, most of vB is aimed toward young computer geeks. Us old farts need to have forums too. ;)

Edit: Included screen shot. It's working fine on my board. YMMV.

andreamarucci
27 May 2008, 12:43
I'm noticing now that in one of my threads the post at the bottom of each page is keeping the reply button instead of displaying the quote.

Yes, same here. I cannot keep this mod with this problem sorry...

oldengine
04 Feb 2009, 16:49
Removing quoted posts when the user is quoting the previous post in its entirety is still a valid need on vBulletin. I am using this mod and no one else appears to have come up with anything better, Jelsoft Enterprises included. I do not use multi-quote.

If your users aren't computer geeks, then they will go for the "Quote" button every time they reply. That's the way it is and I don't want it.

The reason that the Quote button still shows on some pages is because of the users choice of a threaded or hybrid display mode, or they are set for newest post first instead of newest post last. The non-geeks do not use these modes.

andreamarucci
10 Mar 2009, 22:44
Is this one compatible with 3.8.1?