PDA

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


Mazinger
13 May 2008, 20:37
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
14 May 2008, 02:59
Nice idea! *installed*

Forensic
14 May 2008, 17:59
Nice idea! *installed*

Ditto.

Thanks

Super Jinni
16 May 2008, 16:27
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
16 May 2008, 16:43
Yes, as the whole table disappear the buttons should disappear too.

Super Jinni
16 May 2008, 22:26
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
16 May 2008, 22:36
Installed. Thanks. Nice and simple.

Mazinger
17 May 2008, 12:53
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 Jun 2008, 23:36
Nice one, installed, thanks

DssCrazy
07 Jun 2008, 10:45
Thanks:)

Dingo14
11 Jun 2008, 03:11
installed nice one thanks

Losha
11 Jun 2008, 13:00
installed nice one thanks

MŽ Mostafa
13 Jun 2008, 08:10
Nice Work :up:

PoetJA-1975
26 Jun 2008, 16:40
Thanx ;)

Jacquii.

Alfa1
26 Jun 2008, 17:59
It always baffled me why this button was missing in the first place.

Atlantean
26 Jun 2008, 21:27
Nice one - installed.

g0dfather1984
26 Jun 2008, 21:38
Nice, thank you.

drsli
03 Aug 2008, 17:51
Very nice and useful! Many thanks. :)

Mazinger
20 Oct 2008, 15:56
For those who inquires, This will work also on 3.8. :)

forumsonsuz
20 Oct 2008, 16:30
thanks

caltek
19 Dec 2008, 04:53
OMG...thank you. Makes navigating that section a little easier!

*INSTALLED*

Bill from Cleve
23 Dec 2008, 17:03
Very nice. Installed!

SSJB_7
31 Dec 2008, 10:29
can i added also in postbit or postbit_legacy ?
it will work there?

yotsume
09 Aug 2009, 22:51
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
09 Aug 2009, 23:48
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
28 Oct 2009, 01:38
Nice, Thanks for your hard work!

Mr_Pat
28 Oct 2009, 01:52
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
30 Oct 2009, 03:09
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
02 Nov 2009, 14:02
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 (http://www.vbulletin.org/forum/forumdisplay.php?f=213) Section.