View Full Version : Quote reply control in postbit
MickDoneDee
04-24-2004, 07:51 PM
Hi, some of my new members haven't got the hang of using the various thread views and because the default view is Linear they find it difficult tracking the post relationships, particularly in long threads. So they constantly post using the quote button and include the entire quoted post - even if their reply follows. This makes it difficult to read threads since some posts are effectively duplicated.
I've attempted to educate some of them but as the forum grows this way becomes too time-consuming. So, i'd like to either replace the Quote button or include a Reply button next to it that calls up their default editor without the quote.
I found the code in the postbit template that will remove the control altogether but I'd prefer to modify it so that members can still call up their default editor.
Can anyone help?
Regards, Mike
Zachery
04-24-2004, 08:12 PM
If you have the quick reply enabled and they click on the icon it will take them down to the quick reply and the quote will only be added if they check the check box ^^
MickDoneDee
04-24-2004, 08:20 PM
I forgot to mention that Quick Reply is enabled and many members seem happy using it but a minority of prolific posters are spoiling the threads for everyone by quoting entire posts in their own - even when the post is just above theirs. As I said, I can remove the Quote control button entirely but that would disadvantage those who like to use the standard and advanced editors. I asked at vB.org and they said to come here as it should be a simple template modification.
Zachery
04-24-2004, 08:21 PM
Can you show me the vBulletin.org post?
And are you having problems with users who rae double posting?
MickDoneDee
04-24-2004, 08:26 PM
No problem with double-posting at all which is a great benefit of vBulletin software.
The vB.org link is: https://vborg.vbsupport.ru/showthread.php?p=505022
I should add that I'm using vB 3.0.1.
Zachery
04-24-2004, 08:56 PM
Ok now, do you want to leave the quote button? or do just want to replce it with a reply button?
MickDoneDee
04-24-2004, 09:00 PM
If the quotes go then the quote button should be replaced with reply_small.gif
MickDoneDee
04-25-2004, 03:54 PM
It keeps happening - this persons first post replying to the previous post:
Originally Posted by Scott-Wozniak
They've done their first pitch inspection and it doesn't look promising. Paul Allott interviewed the two Captains and they both sounded rather negative about whether the game would go ahead, saying the outfield was still too soggy to play on.
There will be another pitch inspection at 12.30pm local time, to decide whether it can go ahead, but would probably be reduced to 25 overs.
In my opinon it will be called off.
Scott
Another inspection at 17.30 BST.
Zachery
04-25-2004, 06:04 PM
Ok now, do you want to leave the quote button? or do just want to replce it with a reply button?
Lets just give me the simple anwser ^^
MickDoneDee
04-25-2004, 09:36 PM
Replace it with a reply button, thanks, Zachery.
Zachery
04-25-2004, 09:57 PM
If your using the default button set
use this button :) rename it to quote.gif :) http://www.vbulletin.com/forum/attachment.php?attachmentid=9274&stc=1
and find
<if condition="$post['replylink']">
<a href="$post[replylink]"><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 it with
<if condition="$post['replylink']">
<a href="<if condition="$post['forwardlink']">$post[replylink]<else />newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID</if>"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
MickDoneDee
04-25-2004, 10:33 PM
Hi Zachery, I replaced the code in the postbit template and got this message when replying to a post:
Invalid Thread specified. If you followed a valid link, please notify the webmaster
and the link you gave me doesn't work. My nick here is mickdonedee and Michael Dengler on vBulletin.com.
That error might be coming up for another reason. I'll try again. No, it still doesn't work. Is it meant to work, as it is, or have I missed something?
Dan P.
07-22-2004, 11:10 PM
Did you ever get this working ? I'm looking to do the same thing. People use the quote button on long messages and post only a short sentence..very annoying to read.
MickDoneDee
07-23-2004, 08:09 AM
Hi Dan, I didn't get Zachery's code to work but I'll keep trying. However, I did find a way to get rid of the quotes:
Expand the New Posting Templates and open the newpost_quote template. Delete the entire contents. ie [ QUOTE=$originalposter]{$pagetext}[/QUOTE]
Now the quotes won't appear when replying to a PM or a post.
why-not
07-28-2004, 08:14 PM
Hi
Find this code in template 'postbit' and 'postbit_legacy'
<div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]"><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 condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<!-- / controls -->
</div>
Then replace with this code....
<div align="$stylevar[right]"><if condition="$post['editlink']">
<!-- controls -->
<a href="$post[editlink]"><img border='0' src='$stylevar[imgdir_button]/edit.gif' alt='$vbphrase[edit_delete_message]' /></a></if><if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img border='0' src='$stylevar[imgdir_button]/forward.gif' alt='$vbphrase[forward_message]' /></a></if><if condition="$post['replylink']">
<a href="$post[replylink]&noquote=1"><img border='0' src='$stylevar[imgdir_button]/reply_small.gif' alt='$vbphrase[reply]' /></a></if><if condition="$post['replylink']">
<a href="$post[replylink]"><img border='0' src='$stylevar[imgdir_button]/quote.gif' alt='$vbphrase[reply_with_quote]' /></a></if><if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img border='0' src='$stylevar[imgdir_button]/quickreply.gif' alt='$vbphrase[quick_reply_to_this_message]' /></a>
<!-- / controls --></if>
</div>
F!
MickDoneDee
07-28-2004, 09:03 PM
Well done - works for me. It puts the reply_small gif between the edit and quote buttons and loads the editor without quotes. Postbit now has the option of posting with or without quotes.
A couple of side-effects: in the PM postbit the reply_small gif still loads quotes and an extra quote button has appeared which does the same thing.
Still I think that is minor compared to what is achieved. Well done.
Dan P.
08-10-2004, 12:59 AM
thx. I'll look into that. I wish they would move the dang quote button from the corner, put it at the top, and just replace it with the reply button.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.