PM box Status percentage bar

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PM box Status percentage bar

Post by Stoker »

Author: Stitch626, DrAcid & Stoker
Description: Displays a colored status bar in your PM inbox that changes color according to how much PM space you have left in your folder.
Demo: This site.
Screenshots:
Percentage bar.JPG
pro.png
Attached file:
percentag_bar.zip
(860 Bytes) Downloaded 453 times
Upload the two images to your forums image folder.

Template edits

Open styles/subsilver2/template/ucp_pm_message_header.html
Find:

Code: Select all

<td class="gensmall" nowrap="nowrap" width="100%">&nbsp;[ <b>{FOLDER_CUR_MESSAGES}</b>/{FOLDER_MAX_MESSAGES} {L_MESSAGES} ({FOLDER_PERCENT}%) ]&nbsp;</td>
Replace with:

Code: Select all

<td class="gensmall" nowrap="nowrap" width="100%">&nbsp;[ <b>{FOLDER_CUR_MESSAGES}</b>/{FOLDER_MAX_MESSAGES} {L_MESSAGES}]<br /><div><div style="background:url(images/green_bar.png) repeat-x; background-color: #33ff00; border: 1px solid black; width:50%; margin-top: 2px;"><div style="background:url(images/red_bar.png) repeat-x;background-color: #ff0000; color: white; font-weight:bold; max-width:100%;  width:{FOLDER_PERCENT}%; height:18px;"><div align="center">({FOLDER_PERCENT}%)</div></div></div></div>&nbsp;</td>

Open styles/prosilver/template/ucp_pm_message_header.html
Find:

Code: Select all

<!-- IF FOLDER_STATUS and FOLDER_MAX_MESSAGES neq 0 --><p>{FOLDER_STATUS}</p><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF FOLDER_STATUS and FOLDER_MAX_MESSAGES neq 0 --><p style="float:left;">{FOLDER_STATUS}</p><div style="float:right; background:url(images/green_bar.png) repeat-x; background-color: #cccccc; border: 1px solid black; width:200px;"><div style="background:url(images/red_bar.png) repeat-x;background-color: #008040; color: white; font-weight:bold; max-width:100%; width:{FOLDER_PERCENT}%; height:18px;"></div></div><br style="clear:both" /><!-- ENDIF -->
Save, upload and refresh templates.
Board rules! No PM support
dragoth
BBCoder III
BBCoder III
Posts: 81
Joined: 05 Mar 2010, 02:57

Re: PM box Status percentage bar

Post by dragoth »

there are no images
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: PM box Status percentage bar

Post by KukY13 »

I wonder why 3 people were needed to make this mod... :-?
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: PM box Status percentage bar

Post by cisco007 »

you shouldn't wonder, there was a reason!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: PM box Status percentage bar

Post by KukY13 »

cisco007 » 04 Sep 2010, 19:40 wrote:you shouldn't wonder, there was a reason!
Umm... What was the reason?
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: PM box Status percentage bar

Post by cisco007 »

I don't know, it doesn't really matter! the mod is released!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: PM box Status percentage bar

Post by KukY13 »

cisco007 » 04 Sep 2010, 20:13 wrote:I don't know, it doesn't really matter! the mod is released!
Ok, I'll wait on someone else.
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: PM box Status percentage bar

Post by cisco007 »

like i said previously! why does it matter how many people worked on this seemingly easy mod! or snippet? what matters is that it is here!
or do you need help with it, why not just post your question!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: PM box Status percentage bar

Post by Stoker »

dragoth » 04 Sep 2010, 19:19 wrote:there are no images
Try unzip the file attached to first post ;)
KukY13 wrote:I wonder why 3 people were needed to make this mod... :-?
Well, we cant have that. 8-)

Somebody requested it at the old board.
Stitch626 did it for subsilver
I did it for porsilver
DrAcid did the images

So its not really about why 3 guys was needed, its about giving credit to the involved people.
Its much better than just make a few changes and claim that I did it all by myself.
So many people could learn from this!
Board rules! No PM support
Locked