PDA

View Full Version : No-quote reply button in postbit possible?


L2V
07-19-2008, 10:39 PM
Running 3.7.2 and I am trying to get a reply button to show up inside the postbit. Essentially I'd like to have buttons for reply (no quote), quote, multi-quote, quick-reply.

I have tried to grab the code for new reply from the showthread and using it in the postbit. Some examples:

<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$post[postid]" rel="nofollow"><img src="$stylevar[imgdir_button]/postbitreply.gif" alt="reply to post" border="0" /></a>
and
<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$post[postid]" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/postbitreply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>

Both options go to a new reply screen and add a reply properly... However, both also show a message: You have selected 1 post that is not part of this thread. Quote this post as well, or deselect this post which leads me to believe things aren't working as smoothly as I'd like.

Any hints on what I am doing wrong?

Digital Jedi
07-19-2008, 11:09 PM
Did you try using the SHOWTHREAD Reply code as is, without the post ID part?

newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID

L2V
07-20-2008, 01:37 AM
Did you try using the SHOWTHREAD Reply code as is, without the post ID part?

newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID


I did not... I wasn't sure of the purpose of including the $FIRSTPOSTID (or the postID part for that matter)... Does it serve any purpose?

Dismounted
07-20-2008, 05:24 AM
You have selected 1 post that is not part of this thread. Quote this post as well, or deselect this post.
That message is displayed if you have clicked the multi-quote button on a post, but then have browsed to another thread and clicked reply.

L2V
07-21-2008, 01:10 PM
You have selected 1 post that is not part of this thread. Quote this post as well, or deselect this post.
That message is displayed if you have clicked the multi-quote button on a post, but then have browsed to another thread and clicked reply.

Ah! Thanks for explaining the message.

Any clarification on the different between the need for do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID, $FIRSTPOSTID and if $post[postid] is even needed?

Dismounted
07-22-2008, 07:06 AM
The "p" variable is shorthand for "post", it is only there to determine which thread you're replying to, any post's ID in that thread will do. I believe also, that "t" ("thread") will also work, you specify the thread ID in this case.