vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Private Messages Enhancements - Customize your PM Bars (https://vborg.vbsupport.ru/showthread.php?t=214284)

Sofia 05-21-2009 10:00 PM

Customize your PM Bars
 
1 Attachment(s)
Customize your PM Bars


You can simply customize your private messages bars.



https://vborg.vbsupport.ru/vborg_mis...hreadid=214284

Installation
  • Download the zip and upload bars images into "images/pmbars"
  • Edit Template
In the template "pm_messagelist"


Find:


HTML Code:

<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:


HTML Code:

<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 if you like this mod.

Enjoy ! :)

Oblivion Knight 05-22-2009 12:56 PM

Very nice, thank you for sharing! :)


--EDIT--

You've added too much code in your "Replace" instructions, it should just be:
Code:

<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 05-22-2009 02:22 PM

Thank you, Oblivion Knight (Elder Scrolls player?). Fixed.

Oblivion Knight 05-22-2009 03:46 PM

Quote:

Originally Posted by Sofia (Post 1815210)
Thank you, Oblivion Knight (Elder Scrolls player?). Fixed.

I am an Elder Scrolls player, but had the username long before then.. ;)

drsli 05-22-2009 03:57 PM

Looks very nice! Installed, many thanks. :)

digicom 05-22-2009 06:03 PM

Looks very cool thankyou :up:

Sofia 05-22-2009 06:07 PM

I'm glad you like it ;)

mikey1991 05-23-2009 06:53 AM

Thanks sofia. Great idea. :)

Fastbird 05-25-2009 03:31 AM

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 05-25-2009 07:33 AM

Quote:

Originally Posted by Fastbird (Post 1816616)
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:

HTML Code:

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

HTML Code:

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

lm3a.net 05-25-2009 08:25 AM

WoW !!

that's great .

installed , thank u

Fastbird 05-25-2009 11:44 PM

Quote:

Originally Posted by Sofia (Post 1816687)
Yes, you can :)

In my first code (first line)

Replace:

HTML Code:

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

HTML Code:

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

That did it! Thanks!!!

UoR Overdose 05-26-2009 12:04 AM

Thanks again sofia seems everything good I'm seeing today is by you :) installed

Sofia 05-26-2009 02:06 PM

Quote:

Originally Posted by UoR Overdose (Post 1817211)
Thanks again sofia seems everything good I'm seeing today is by you :) installed

Thank you :)

Abdullah sahar 05-28-2009 04:46 AM

wooow !
thank you :)
I will test :)

Sofia 05-28-2009 05:23 AM

Quote:

Originally Posted by Abdullah sahar (Post 1818542)
wooow !
thank you :)
I will test :)

You're welcome :)

Xencored 06-01-2009 11:07 PM

Installed and Nomination Love it!

Thanks :up:

Daky 06-03-2009 03:04 AM

Looks nice, thanks.

avsunforum 06-26-2009 10:37 AM

Thanks

ubcforums 06-26-2009 12:34 PM

Thanks ...
installed

SVR01 06-26-2009 02:19 PM

i can't find "images/pmbars" in vB 3.8.3

i must create a folder for it ?

Sofia 06-26-2009 03:11 PM

Quote:

Originally Posted by SVR01 (Post 1837871)
i can't find "images/pmbars" in vB 3.8.3

i must create a folder for it ?

Yes :)

SVR01 06-26-2009 03:48 PM

Done .

Thank so much

EidolonAH 07-07-2009 04:49 AM

Great addition, thank you for this Sofia.
I was wondering, how could we get to use $stylevar in this:
Code:

<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:
Code:

<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-07-2009 08:51 PM

Quote:

Originally Posted by EidolonAH (Post 1844303)
Great addition, thank you for this Sofia.
I was wondering, how could we get to use $stylevar in this:
Code:

<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:
Code:

<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:

Code:

<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 07-08-2009 07:05 PM

Hi i used this
Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
but now i need to add a space where the "red Mark" is

https://vborg.vbsupport.ru/external/2009/07/64.jpg

Full-Picture

Thanks

Sofia 07-09-2009 07:25 AM

Quote:

Originally Posted by jonlar (Post 1845292)
Hi i used this
Code:

<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/id49.../Unbenannt.jpg

Full-Picture

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Ћ?я 07-09-2009 08:29 AM

very nice thanks installed:)

ravi_9793 07-15-2009 06:37 PM

Thanks, Installed :)

Sofia 07-16-2009 06:32 AM

Quote:

Originally Posted by P?ŋĭsЋ?я (Post 1845648)
very nice thanks installed:)

Quote:

Originally Posted by ravi_9793 (Post 1849408)
Thanks, Installed :)

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

Zacaretas 07-29-2009 02:51 AM

Simple and it looks great - a double plus! (:

mavi_ay 08-16-2009 12:05 AM

Very Nice Thank You :)

glorify 08-16-2009 05:16 PM

Nice work. Installed.

fastrx 03-28-2011 12:27 PM

Love it.

https://vborg.vbsupport.ru/external/2011/03/2.png

Makes my forum look a lot cleaner. Thanks

Zylantex 04-28-2011 04:14 PM

Nice enhancement, thank you.

Eplexx 04-28-2011 06:31 PM

Looks good.


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01281 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (6)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete