Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Customize your PM Bars Details »»
Customize your PM Bars
Version: 1.00, by Sofia Sofia is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.8.x Rating:
Released: 05-21-2009 Last Update: Never Installs: 191
Template Edits
Re-useable Code Translations  
No support by the author.

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 !

Download Now

File Type: zip Images-bar.zip (2.3 KB, 401 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
FIM, Polo

Comments
  #22  
Old 06-26-2009, 02:19 PM
SVR01 SVR01 is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

i must create a folder for it ?
Reply With Quote
  #23  
Old 06-26-2009, 03:11 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVR01 View Post
i can't find "images/pmbars" in vB 3.8.3

i must create a folder for it ?
Yes
Reply With Quote
  #24  
Old 06-26-2009, 03:48 PM
SVR01 SVR01 is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done .

Thank so much
Reply With Quote
  #25  
Old 07-07-2009, 04:49 AM
EidolonAH EidolonAH is offline
 
Join Date: Apr 2009
Location: London, England
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 07-07-2009, 08:51 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EidolonAH View Post
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>
Reply With Quote
  #27  
Old 07-08-2009, 07:05 PM
jonlar jonlar is offline
 
Join Date: Mar 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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



Full-Picture

Thanks
Reply With Quote
  #28  
Old 07-09-2009, 07:25 AM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jonlar View Post
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



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.
Reply With Quote
  #29  
Old 07-09-2009, 08:29 AM
P?ŋĭsЋ?я's Avatar
P?ŋĭsЋ?я P?ŋĭsЋ?я is offline
 
Join Date: Mar 2009
Location: Trabzon
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice thanks installed
Reply With Quote
  #30  
Old 07-15-2009, 06:37 PM
ravi_9793 ravi_9793 is offline
 
Join Date: Sep 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Installed
Reply With Quote
  #31  
Old 07-16-2009, 06:32 AM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by P?ŋĭsЋ?я View Post
very nice thanks installed
Quote:
Originally Posted by ravi_9793 View Post
Thanks, Installed
Thank you for this reply. You're welcome
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05322 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (2)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete