View Full Version : Adding a reply button to postbit without quote/no quote/no nested quote?
Ogmuk
04-30-2009, 09:02 PM
I've done some searching but I wasn't able to find it. I'm not looking to replace the quote button with a stripquote button. I'm trying to add the reply_small.gif button left of the regular quote button, which would only show when reading a post (i.e. not PMs), and which would result in an ordinary reply, without quote.
This is the closest what I could find, but it's for PM:
http://www.vbulletin.com/forum/showthread.php?t=240878
mmoore5553
05-02-2009, 01:22 AM
I do not understand your question but those edits are in the postbit template or postbit legacy. It has all the buttons listed there .
Ogmuk
05-02-2009, 05:46 AM
I'm simply looking to add a "Reply" button to each post, left of each "Quote" button. So people have the option to reply without quoting the post they are replying to.
mmoore5553
05-02-2009, 09:49 AM
If you have quick reply on you should see post reply right under the post. That is there by default. Is is not there ? Quick reply you can set in your vbulletin options where you can just reply and hit send . Also there shoudl be a regular post that is one without quotes. If still confused or need help PM me link to forum and i can take a look but both of those options should be there and easier but the other is possible but not sure why needed. Just like this forum you hit post reply and then type and submit.
Ogmuk
05-02-2009, 02:13 PM
Thanks for taking the time to respond. I know of the Quick Reply and the Post Reply button on the bottom but the problem is, some of the users of my forum apparently do not and often quote an entire post and then respond to it with 1 word. I don't want to remove the quote options altogether, just add a reply button left of quote, which would bring them to the same window as pressing on "Post Reply" with the only difference that it shows correctly to which person the people is replying in Display Mode > Hybrid Mode (not like anyone uses it, but still). So I guess I'm trying to make it a little newbie friendlier. :)
mmoore5553
05-02-2009, 04:01 PM
<td class="smallfont"><a rel="nofollow" href="newreply.php?do=newreply&noquote=1&p=1803047"><img border="0" alt="Reply" src="images/cstyle/blue/buttons/reply.gif" title="Reply"/></a></td>
here is the actually code for button. This will be in postbit or postbit legacy.
Lynne
05-02-2009, 04:04 PM
That is correct, except this part: &p=1803047
You need to do this: &p=$post[postid]
Ogmuk
05-02-2009, 04:16 PM
Thanks again. But don't I need to include a if condition to keep it from showing on any other page other than the thread view? For instance, in the template mod which I linked above, the following if condition is used:
<if condition="THIS_SCRIPT == 'private'"></if>
Which script do I need to refer to for thread view?
mmoore5553
05-02-2009, 04:36 PM
hahha thanks lynn i should have caught that one when i posted it but did it real quick from an Iphone lol
Lynne
05-02-2009, 04:54 PM
If you only want it to show on threads, then you can put this condition around it:
<if condition="THIS_SCRIPT == 'showthread'"><td class="smallfont"><a rel="nofollow" href="newreply.php?do=newreply&noquote=1&p=$post[postid]"><img border="0" alt="Reply" src="images/cstyle/blue/buttons/reply.gif" title="Reply"/></a></td></if>
Ogmuk
05-02-2009, 10:17 PM
I'll try that. Thank you. :)
visitangeles
05-22-2009, 11:06 PM
That is correct, except this part: &p=1803047
You need to do this: &p=$post[postid]
I want to be able to put a simple Reply button next to Quote, but the Reply is ONLY to that particular previous poster (kind of like a quote but not putting anything in the message area) and in the Title is:
Re: Budget and Value Meals in AC [username_who_i_am_replying_to]
where would that be? postbit?newreply? i am looking all over for the best way to edit that iand which variables to use. what would be the coding for that?
please help,
thanks.
Lynne
05-22-2009, 11:41 PM
I can't picture what you want. Perhaps you have an image to show of what you want?
If you are trying to figure out what template to add something to, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
visitangeles
05-23-2009, 07:30 AM
I can't picture what you want. Perhaps you have an image to show of what you want?
If you are trying to figure out what template to add something to, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Ok, you can see when I click the Quote button it puts: your username: Lynne in the Quote section. What I want to be able to do is in the Title section add your name or whoever I clicked on to Quote, but not have all the rest of it like the message: I can't picture what you want. Perhaps you have an image to show of what you want? - that needs to go away. but i dont want to loose the ability to Quote all the time either. I just want to add a button that is like quick reply quote - just has the Original Posted by: Username but no message quoted.
is that possible? does that make sense?
how would you do that?
Mark.B
05-23-2009, 08:42 AM
Use Lynne's code above, but also add this mod (if it'll work on later versions of vB, which I think it should):
https://vborg.vbsupport.ru/showthread.php?t=93247
This adds "in reply to [username]" to the top of each post.
visitangeles
05-23-2009, 12:49 PM
thanks. that worked great, but when u add an extra button, it seems like it doesnt want to take it. like there is only so much space available.
it will only keep 4 buttons. not sure why?
do you have to change anything anywhere else?
i have edit, quote, multi quote and quick reply. it wont let me add anything else.
any ideas?
ykkrox
01-21-2014, 02:33 AM
awesome! Exactly what I was looking for.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.