PDA

View Full Version : PM issues.


SnakeXs
Thu 3rd Apr '08, 11:24pm
Hi there,

I'm running vBulletin 3.7.0 beta 6, with the default theme that I've hacked apart and simplified. I've got a quote "button" right in the postbit (I'm using postbit_legacy), as in the following:

http://mt13.quickshareit.com/share/picture187f06.png

Now, this is being displayed in a PM context as well, which would be fine if I could get the behaviour right. I've gotten so far as to have it use a different link when it's a PM (using is PRIVATE stuffs), but I can't get it to quote. When I look at the link, I see that it's not pulling the pmid. How can I make it do this?

As well, something I've noticed in general that there seems to be now way to have a button to reply to a PM without a quote. I've searched for mods here, and can't find anything, nor is the almighty Googles revealing anything. This must be possible. I can see some references in private.php, but I can't figure out the syntax. Can anyone answer this definitively?

Thanks very much.

Wayne Luke
Fri 4th Apr '08, 10:53am
You will need to compare your custom template with the default 3.7.0 template for your version.

SHydroxide
Fri 4th Apr '08, 7:04pm
You will need to compare your custom template with the default 3.7.0 template for your version.

Sorry, I should have been more specific. Here is my code:

<if condition="THIS_SCRIPT!='private'">
<a href="newreply.php?do=newreply&amp;p=$post[postid]" rel="nofollow">Quote</a>
<else />
<a href="private.php?do=newpm&amp;pmid=$pm[pmid]" rel="nofollow">Quote</a>
</if>

So the code is in place for it to get the pmid, but if one hovers over the link, in the status bar the link it's actually giving is "private.php?do=newpm&pmid=", and so that's why I say that it's not grabbing the pmid. That's what I need diagnosed. I can't consult the unmodified code because there's no quote tag in the original postbit. On the other hand, I know that it's possible because I've seen this done elsewhere.

As well, could someone address the issue of replying to PMs without quoting?

Wayne Luke
Fri 4th Apr '08, 8:27pm
In the default template the link is controlled via PHP code and variables. THe default template has this:

<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>


That does what you are trying to achieve. The REPLY button is synonomous with your quote link in vBulletin. The default system assumes that you will be quoting when replying to a private message and there is no way to turn this off. You would have to get an addon from vBulletin.org to add this functionality.