PDA

View Full Version : Private Messages Enhancements - Simple PM Inbox/Outbox mod


Nickbe
11-21-2007, 10:00 PM
Personally I dislike that drop down list that allows you to select the Inbox or Outbox. I don't know why but I find it tedious. So I edited it a little to show direct links to the inbox/outbox as opposed to the little drop-down list.

Find template: pm_messagelist

Find
<td>
$vbphrase[jump_to_folder]:<br />
<select name="folderid" onchange="this.form.submit();">
$folderjump
</select>$gobutton
</td>


Replace with:
<td>
$vbphrase[jump_to_folder]:&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=0">Inbox</a>&nbsp;&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=-1">Outbox</a>
</td>

This is a very simple mod that makes the PM area more efficient.

I do not make mods but when I make something for myself I usually share it.

yoyoyoyo
11-22-2007, 11:27 AM
cool idea - I find dropdowns to be annoying also, especially when it is only choosing between 2 options, but why not use the phrases?

<td>
$vbphrase[jump_to_folder]:&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=0">$vbphrase[inbox]</a>&nbsp;&nbsp;&nbsp;<a href="private.php?s=&pp=&folderid=-1">$vbphrase[sent_items]</a>
</td>

also - one nice thing about the way it is by default is the fact that it displays the number of itmes in the inbox and sent items in the dropdown - can you add that feature in to your mod?

Lionel
11-22-2007, 11:41 AM
The drop down is good fo those who created folders. With this change they no longer have access to them.

Nickbe
11-22-2007, 11:44 AM
It says it at the top so I did not bother but I will look into it anyway. I am an amateur coder only been doing it a month or two. I will figure it out and update soon.

yoyoyoyo
11-22-2007, 11:45 AM
The drop down is good fo those who created folders. With this change they no longer have access to them.
good point - I never create folders, but I imagine other people do, so I forgot about that.

Nickbe
11-22-2007, 11:46 AM
The drop down is good fo those who created folders. With this change they no longer have access to them.

Can easily add additional folders.

You are right though, if you create additional folder this is probably not for you.

Lionel
11-22-2007, 11:49 AM
Not necessarily me, but you don't know others who did so you can't add their folders therefore cannot add what you don't know :-)

Marco van Herwaarden
11-22-2007, 12:00 PM
Best would be to add the direct links, instead of replacing the dropdown. Then you would have best of both worlds.

alserb
12-03-2007, 08:09 AM
Cool :)

Kaycee123
12-05-2007, 05:13 PM
I like it - I just added the code in instead of replacing it like Marco suggested - both options are there now. Works well!

Marco van Herwaarden
12-07-2007, 09:23 AM
hehe, sometimes i have a good idea.