Quote:
Originally Posted by McMendo
Could this mod be in the form of a "Quote PM" button to the left of the "Quote" button, instead of the drop-down menu?
I think that I've seen it in some forum.
|
Yes, you can do so.
- Install the product only
- In product options set "Update popup menu automatically" to "No".
- Open template qpipm_menu
Code:
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]&postid=$post[postid]"><phrase 1="$post[username]">$vbphrase[qpipm_quote_post_in_pm]</phrase></a></td></tr>
</if>
- Modify this part of template how you need it
Code:
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]&postid=$post[postid]"><phrase 1="$post[username]">$vbphrase[qpipm_quote_post_in_pm]</phrase></a></td></tr>
- Save the template
- Add $qpipm where you need to the left of the "Quote" button
In other words you have
To find in templates
postbit &&
postbit_legacy the code:
Code:
<if condition="$show['quickreply']">
<a href="javascript:insertQuote('$post[usernamequick]', selection, '$post[postid]')" onMouseOver="catchSelection()" title="$vbphrase[select_and_click]" class="smallfont"><img src="$stylevar[imgdir_button]/quickquote.gif" alt="$vbphrase[select_quote]" border="0" /></a>
</if>
Add before
$qpipm
Change template
qpipm_menu to something like this one:
Code:
<if condition="$show['pmlink']">
<a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]&postid=$post[postid]"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/your_new_button_here.gif" alt="$vbphrase[qpipm_quote_post_in_pm]" border="0" /></phrase></a>
</if>
Don't forget to upload you new button and give it the proper name in code above.
I highlighted it above
your_new_button_here.gif
Quote:
Originally Posted by pxd
For those of you who feel like they have set everything up properly but it "does not work", I just tested with vB 3.7.0 beta3 and it worked after I adjusted the usergroup settings related to private message permissions. Make sure that "Maximum Stored Messages:" is set to a positive value, and that current usergroup is allowed to use the PM system.
Great hack!
|
Thanks.