PDA

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


Mazinger
05-12-2008, 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

JadedSouls
05-14-2008, 12:59 AM
Nice idea! *installed*

Forensic
05-14-2008, 03:59 PM
Nice idea! *installed*

Ditto.

Thanks

Super Jinni
05-16-2008, 02:27 PM
nice one

thanks

but it doesn't show only if there is a message or more in the inbox or in the outbox

if any of them is empty, the button doesn't show up..

that what I wanted to point to..

thanks

Mazinger
05-16-2008, 02:43 PM
Yes, as the whole table disappear the buttons should disappear too.

Super Jinni
05-16-2008, 08:26 PM
why not make it appear when there is table just like the new thread button when there is no threads?

I think that will be better if possible of course....

^-^

AzH
05-16-2008, 08:36 PM
Installed. Thanks. Nice and simple.

Mazinger
05-17-2008, 10:53 AM
why not make it appear when there is table just like the new thread button when there is no threads?

I think that will be better if possible of course....

^-^
I'll put this under consideration when I look again into it. Thanks for your suggestion - it's logical. :)

karnevil
06-06-2008, 09:36 PM
Nice one, installed, thanks

DssCrazy
06-07-2008, 08:45 AM
Thanks:)

Dingo14
06-11-2008, 01:11 AM
installed nice one thanks

Losha
06-11-2008, 11:00 AM
installed nice one thanks

M? Mostafa
06-13-2008, 06:10 AM
Nice Work :up:

PoetJA-1975
06-26-2008, 02:40 PM
Thanx ;)

Jacquii.

Alfa1
06-26-2008, 03:59 PM
It always baffled me why this button was missing in the first place.

Atlantean
06-26-2008, 07:27 PM
Nice one - installed.

g0dfather1984
06-26-2008, 07:38 PM
Nice, thank you.

drsli
08-03-2008, 03:51 PM
Very nice and useful! Many thanks. :)

Mazinger
10-20-2008, 01:56 PM
For those who inquires, This will work also on 3.8. :)

forumsonsuz
10-20-2008, 02:30 PM
thanks

caltek
12-19-2008, 02:53 AM
OMG...thank you. Makes navigating that section a little easier!

*INSTALLED*

Bill from Cleve
12-23-2008, 03:03 PM
Very nice. Installed!

SSJB_7
12-31-2008, 08:29 AM
can i added also in postbit or postbit_legacy ?
it will work there?

yotsume
08-09-2009, 08:51 PM
Id like to see a PM tool bar actually. So right across the top it would say: New Message - Inbox - Sent - Saved, etc...

Each item on the tool bar would be an Ajax tabbed item. There is zero reason why we have to reload a whole page anymore these days because Ajax is now perfectly integrated with VB.

yotsume
08-09-2009, 09:48 PM
More Buttons in PMs!

Aaa now this is how I like my PMs! (see my screenshot!)

I added more buttons in the line and already my members are in love with me! LOL

Here is the code I am using to do the replacement:

<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]/newmessage.gif" alt="$vbphrase[send_new_message]" border="0" /></a> <a href="private.php?s=&pp=&folderid=0"><img src="$stylevar[imgdir_button]/inbox.gif" alt="Inbox" border="0" /></a> <a href="private.php?s=&pp=&folderid=-1"><img src="$stylevar[imgdir_button]/sent.gif" alt="Sent Items" border="0" /></a></td>
<if condition="$pagenav">
<td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>

Mr_Pat
10-27-2009, 11:38 PM
Nice, Thanks for your hard work!

Mr_Pat
10-27-2009, 11:52 PM
More Buttons in PMs!

Aaa now this is how I like my PMs! (see my screenshot!)

I added more buttons in the line and already my members are in love with me! LOL

Here is the code I am using to do the replacement:

<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]/newmessage.gif" alt="$vbphrase[send_new_message]" border="0" /></a> <a href="private.php?s=&pp=&folderid=0"><img src="$stylevar[imgdir_button]/inbox.gif" alt="Inbox" border="0" /></a> <a href="private.php?s=&pp=&folderid=-1"><img src="$stylevar[imgdir_button]/sent.gif" alt="Sent Items" border="0" /></a></td>
<if condition="$pagenav">
<td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>

I like that a lot, does anyone have some icons to use with it? I have no idea how to make an icon.

93Corvette
10-30-2009, 01:09 AM
I really like this mod.... I am also looking for Icons.... Any know of a good site that has the New PM, Inbox, and Sent?

Mazinger
11-02-2009, 12:02 PM
I really like this mod.... I am also looking for Icons.... Any know of a good site that has the New PM, Inbox, and Sent?
You can find some in the Graphics (https://vborg.vbsupport.ru/forumdisplay.php?f=213) Section.