PDA

View Full Version : Private Messages Enhancements - New PM button in messagelist


Mazinger
10-29-2007, 10:00 PM
This is a modification to show 'send pm' button in messagelist -- screenshot attached.


Style Manager -> Edit Templates -> pm_messagelist

Find:
<if condition="$show['pagenav']">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
</if>


Replace it with:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td><a href="private.php?do=newpm"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="$vbphrase[send_new_message]" border="0" /></a></td>
<if condition="$pagenav">
<td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>


Then save.



You may change $stylevar[imgdir_button]/sendpm.gif to any other image.



Please click INSTALLED to get support for this modification.

Mr_Snob
10-31-2007, 07:15 AM
interesting :D

yoyoyoyo
10-31-2007, 09:33 AM
<img src="$stylevar[imgdir_button]/new_pm.gif" alt="$vbphrase[send_new_message]" border="0" />

I don't have a new_pm.gif button... I have a sendpm.gif button

Mazinger
10-31-2007, 12:23 PM
I don't have a new_pm.gif button... I have a sendpm.gif button
Fixed.

karabaja3
01-15-2008, 07:10 PM
Your replace code ruins appearance.

Please, replace with this one:

<if condition="$show['pagenav']">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td><a href="private.php?do=newpm"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="$vbphrase[send_new_message]" border="0" /></a></td>
<if condition="$pagenav">
<td align="$stylevar[right]">$pagenav</td>
</if>

Mazinger
02-14-2008, 08:13 AM
Why you think it ruins appearance?