Page 1 of 1

PM box Status percentage bar

Posted: 05 Mar 2010, 14:25
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 467 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.

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 19:19
by dragoth
there are no images

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 19:34
by KukY13
I wonder why 3 people were needed to make this mod... :-?

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 19:40
by cisco007
you shouldn't wonder, there was a reason!

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 20:07
by KukY13
cisco007 » 04 Sep 2010, 19:40 wrote:you shouldn't wonder, there was a reason!
Umm... What was the reason?

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 20:13
by cisco007
I don't know, it doesn't really matter! the mod is released!

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 20:20
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.

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 20:27
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!

Re: PM box Status percentage bar

Posted: 04 Sep 2010, 21:05
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!