PDA

View Full Version : Private Messages Enhancements - Customize your PM Bars


Sofia
22 May 2009, 14:26
Customize your PM Bars



You can simply customize your private messages bars.

https://www.vbulletin.org/forum/external/2009/05/3.png


http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=214284

Installation
Download the zip and upload bars images into "images/pmbars"
Edit TemplateIn the template "pm_messagelist"


Find:


<table style="border:2px groove" cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" style="background-color:red; font-size:10px" height="13" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>">&nbsp;</td></if>
<if condition="$show['allfolderstotal']"><td width="$tdwidth[total]" style="background-color:orange; font-size:10px" height="13" title="<phrase 1="$bbuserinfo[pmtotal]">$vbphrase[total_messages_in_all_folders_x]</phrase>">&nbsp;</td></if>
<if condition="$tdwidth[quota] > 0"><td width="$tdwidth[quota]" style="background-color:green; font-size:10px" height="13" title="<phrase 1="$permissions[pmquota]">$vbphrase[maximum_allowed_messages_x]</phrase>">&nbsp;</td></if>
</tr>
</table>Replace by:


<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" style="background-image: url(images/pmbars/bar_red.gif); font-size:10px" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>">&nbsp;</td></if>
<if condition="$show['allfolderstotal']"><td width="$tdwidth[total]" style="background-image: url(images/pmbars/bar_orange.gif); font-size:10px" title="<phrase 1="$bbuserinfo[pmtotal]">$vbphrase[total_messages_in_all_folders_x]</phrase>">&nbsp;</td></if>
<if condition="$tdwidth[quota] > 0"><td width="$tdwidth[quota]" style="background-image: url(images/pmbars/bar_green.gif); font-size:10px" title="<phrase 1="$permissions[pmquota]">$vbphrase[maximum_allowed_messages_x]</phrase>">&nbsp;</td></if>
</tr>
</table>Please click INSTALL (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=214284) if you like this mod.

Enjoy ! :)

Oblivion Knight
22 May 2009, 14:56
Very nice, thank you for sharing! :)


--EDIT--

You've added too much code in your "Replace" instructions, it should just be:
<table cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" style="background-image: url(images/pmbars/bar_red.gif); font-size:10px" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>">&nbsp;</td></if>
<if condition="$show['allfolderstotal']"><td width="$tdwidth[total]" style="background-image: url(images/pmbars/bar_orange.gif); font-size:10px" title="<phrase 1="$bbuserinfo[pmtotal]">$vbphrase[total_messages_in_all_folders_x]</phrase>">&nbsp;</td></if>
<if condition="$tdwidth[quota] > 0"><td width="$tdwidth[quota]" style="background-image: url(images/pmbars/bar_green.gif); font-size:10px" title="<phrase 1="$permissions[pmquota]">$vbphrase[maximum_allowed_messages_x]</phrase>">&nbsp;</td></if>
</tr>
</table>

Sofia
22 May 2009, 16:22
Thank you, Oblivion Knight (Elder Scrolls player?). Fixed.

Oblivion Knight
22 May 2009, 17:46
Thank you, Oblivion Knight (Elder Scrolls player?). Fixed.I am an Elder Scrolls player, but had the username long before then.. ;)

drsli
22 May 2009, 17:57
Looks very nice! Installed, many thanks. :)

digicom
22 May 2009, 20:03
Looks very cool thankyou :up:

Sofia
22 May 2009, 20:07
I'm glad you like it ;)

mikey1991
23 May 2009, 08:53
Thanks sofia. Great idea. :)

Fastbird
25 May 2009, 05:31
Is there any way to remove the spacing between the images? It looks great but on a dark theme it looks a little goofy with the spacing. Thanks!

Sofia
25 May 2009, 09:33
Is there any way to remove the spacing between the images? It looks great but on a dark theme it looks a little goofy with the spacing. Thanks!

Yes, you can :)

In my first code (first line)

Replace:

<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">



By:

<table cellpadding="0" cellspacing="0" border="0" width="100%">

lm3a.net
25 May 2009, 10:25
WoW !!

that's great .

installed , thank u

Fastbird
26 May 2009, 01:44
Yes, you can :)

In my first code (first line)

Replace:

<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">



By:

<table cellpadding="0" cellspacing="0" border="0" width="100%">


That did it! Thanks!!!

UoR Overdose
26 May 2009, 02:04
Thanks again sofia seems everything good I'm seeing today is by you :) installed

Sofia
26 May 2009, 16:06
Thanks again sofia seems everything good I'm seeing today is by you :) installed

Thank you :)

Abdullah sahar
28 May 2009, 06:46
wooow !
thank you :)
I will test :)

Sofia
28 May 2009, 07:23
wooow !
thank you :)
I will test :)

You're welcome :)

Xencored
02 Jun 2009, 01:07
Installed and Nomination Love it!

Thanks :up:

Daky
03 Jun 2009, 05:04
Looks nice, thanks.

avsunforum
26 Jun 2009, 12:37
Thanks

ubcforums
26 Jun 2009, 14:34
Thanks ...
installed

SVR01
26 Jun 2009, 16:19
i can't find "images/pmbars" in vB 3.8.3

i must create a folder for it ?

Sofia
26 Jun 2009, 17:11
i can't find "images/pmbars" in vB 3.8.3

i must create a folder for it ?

Yes :)

SVR01
26 Jun 2009, 17:48
Done .

Thank so much

EidolonAH
07 Jul 2009, 06:49
Great addition, thank you for this Sofia.
I was wondering, how could we get to use $stylevar in this:
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" style="background-image: url(images/pmbars/bar_red.gif); font-size:10px" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>">&nbsp;</td></if>

as it is a background image we cannot easily assign a $stylevar like:
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" font-size:10px"><img src"$stylevar[imgdir_pmbars]/bar_red.gif" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>" /></td></if>
I'd like to be able to use this in my Themes but manually editing more files is a drag, do you know of any way of using $stylevar so we don't have to manually enter the style urls to the images.

Sofia
07 Jul 2009, 22:51
Great addition, thank you for this Sofia.
I was wondering, how could we get to use $stylevar in this:
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" style="background-image: url(images/pmbars/bar_red.gif); font-size:10px" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>">&nbsp;</td></if>
as it is a background image we cannot easily assign a $stylevar like:
<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" font-size:10px"><img src"$stylevar[imgdir_pmbars]/bar_red.gif" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>" /></td></if>I'd like to be able to use this in my Themes but manually editing more files is a drag, do you know of any way of using $stylevar so we don't have to manually enter the style urls to the images.

Just upload images in the misc folder (images/misc) then use this:

<if condition="$show['thisfoldertotal']"><td width="$tdwidth[folder]" font-size:10px"><img src"$stylevar[imgdir_misc]/bar_red.gif" title="<phrase 1="$totalmessages">$vbphrase[messages_stored_in_folder_x]</phrase>" /></td></if>

jonlar
08 Jul 2009, 21:05
Hi i used this <table cellpadding="0" cellspacing="0" border="0" width="100%"> but now i need to add a space where the "red Mark" is

https://www.vbulletin.org/forum/external/2009/07/64.jpg (http://img3.imagebanana.com/view/id49d04o/Unbenannt.jpg)

Full-Picture (http://img3.imagebanana.com/view/id49d04o/Unbenannt.jpg)

Thanks

Sofia
09 Jul 2009, 09:25
Hi i used this <table cellpadding="0" cellspacing="0" border="0" width="100%"> but now i need to add a space where the "red Mark" is

http://img3.imagebanana.com/img/id49d04o/thumb/Unbenannt.jpg (http://img3.imagebanana.com/view/id49d04o/Unbenannt.jpg)

Full-Picture (http://img3.imagebanana.com/view/id49d04o/Unbenannt.jpg)

Thanks

Hello Jonlar. :)

I don't undertsand your question. What do you want? There is already a space between the red and green bar.

PŋĭsЋя
09 Jul 2009, 10:29
very nice thanks installed:)

ravi_9793
15 Jul 2009, 20:37
Thanks, Installed :)

Sofia
16 Jul 2009, 08:32
very nice thanks installed:)

Thanks, Installed :)

Thank you for this reply. You're welcome :)

Zacaretas
29 Jul 2009, 04:51
Simple and it looks great - a double plus! (:

mavi_ay
16 Aug 2009, 02:05
Very Nice Thank You :)

glorify
16 Aug 2009, 19:16
Nice work. Installed.

fastrx
28 Mar 2011, 14:27
Love it.

https://www.vbulletin.org/forum/external/2011/03/2.png

Makes my forum look a lot cleaner. Thanks

Zylantex
28 Apr 2011, 18:14
Nice enhancement, thank you.

Eplexx
28 Apr 2011, 20:31
Looks good.