| View previous topic :: View next topic |
| Author |
Message |
bigbang New To The Evolution

Joined: Jan 28, 2008 Posts: 11
Status: Offline
|
Posted: Sun Apr 12, 2009 12:37 am Post subject: [FIX] - Private_Messages bargraph |
|
|
What I have attached will repair the graphic bar graph of your Private Messages’ Inbox, Sent Box, and Save Box.  This is for Nuke_Evolution 2.0.7
Files effected are:
/modules/Private_Messages/index.php
/themes/chromo/forums/forums.cfg
/themes/chromo/forums/primsgs_body.tpl
If you are using a theme other than chromo you need to merge these changes into your files.
Please back up these 3 files before uploading the files in the attachment.
-disclamer-
The concept of this repair is based upon code used in Evolution 2.1.0 and full credit goes towards the development team of Evolution series.
This has been tested and approved by me - TECHNOCRAT |
|
|
| Back to top |
|
 |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
|
| Back to top |
|
 |
davespanzer New To The Evolution

Joined: Feb 06, 2009 Posts: 14
Status: Offline
|
Posted: Fri Apr 17, 2009 12:47 pm Post subject: Re: [FIX] - Private_Messages bargraph |
|
|
Nice 1, worked well  |
|
|
| Back to top |
|
 |
Logan12 Evolution User

Joined: Aug 26, 2008 Posts: 31
Status: Offline
|
Posted: Sun May 03, 2009 9:39 pm Post subject: Re: [FIX] - Private_Messages bargraph |
|
|
| What code was added or changed? it would be simpler for those that have modded those files to know the changes made. |
|
|
| Back to top |
|
 |
bigbang New To The Evolution

Joined: Jan 28, 2008 Posts: 11
Status: Offline
|
Posted: Wed May 06, 2009 2:30 am Post subject: Re: [FIX] - Private_Messages bargraph |
|
|
| Logan12 wrote (View Post):
|
|
What code was added or changed? it would be simpler for those that have modded those files to know the changes made.
|
Ok if you wish to know, I did comment the code in the standard convention.
The heart of what was breaking the bargraph was that the $inbox_limit_img_length was not correct and got broken because if the Enhanced BBGroups mod
Look at around line 2634, where I commented out the Enhanced BBGroups code and you will see where I added alternate code under it.
The rest of this offering was to make the bargraph like what was done in 2.1.0, which I personally liked the look of.
I just liked the colored bargraph better than the solid white bargraph
I guess look through the 3 files. I commented correctly. look for PM Switchbox Repair |
|
|
| Back to top |
|
 |
Logan12 Evolution User

Joined: Aug 26, 2008 Posts: 31
Status: Offline
|
Posted: Wed May 06, 2009 9:35 am Post subject: Re: [FIX] - Private_Messages bargraph |
|
|
Thank you.
Might want to fix the profile_view_body.tpl as well. I have tried but, I think userinfo.php needs edited and I can't find where it's getting called from. |
|
|
| Back to top |
|
 |
bigbang New To The Evolution

Joined: Jan 28, 2008 Posts: 11
Status: Offline
|
Posted: Thu Jul 02, 2009 10:54 pm Post subject: Re: [FIX] - Private_Messages bargraph |
|
|
| Logan12 wrote (View Post):
|
Thank you.
Might want to fix the profile_view_body.tpl as well. I have tried but, I think userinfo.php needs edited and I can't find where it's getting called from.
|
Login12
Ok , here is what should work regarding what you are asking for. Permit me to be clear on this, I have not tested this on Basic! Only on Xtreme. But the code looks the same and I am as sure this is a valid solution as I can be without actually applying it to Evo Basic. I am using it on my site.
So I would be grateful if someone could confirm this. The great and all knowing Technocrat would be an excellent endorser! hint hint
But, if you are reading this! Be sure you understand that Technocrat has not blessed this until such time that he edits this post and puts his stamp of approval on the following solution to your request. And of course the support staff here has no responsibility for this unofficial solution to your request.
Ok if you would like to have the bargraph of the upload quota that you see in the view profile ( if you hit the "Account" nav bar button)
# Backup and then open /includes/usercp_viewprofile.php
#
# Find
#
| Code:
|
|
'SEARCH_IMG' => $search_img,
|
#
# Before, and on a new line, add
#
| Code:
|
/*****[Begin]******************************************
[ Mod: PM Switchbox Repair v1.0.1 ]
*******************************************************/
'LCAP_IMG' => $images['voting_lcap'],
'MAINBAR_IMG' => $images['voting_graphic'][0],
'RCAP_IMG' => $images['voting_rcap'],
/*****[END]********************************************
[ Mod: PM Switchbox Repair v1.0.1 ]
*******************************************************/
|
#
#
# Backup and then Open /themes/chromo/forums/profile_view_body
#
# Find
#
| Code:
|
<!-- BEGIN switch_upload_limits -->
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_UPLOAD_QUOTA}:</span></td>
<td>
<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
<tr>
<td colspan="3" width="100%" class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td bgcolor="{T_TD_COLOR2}"><img src="themes/chromo/images/spacer.gif" width="{UPLOAD_LIMIT_IMG_WIDTH}" height="8" alt="{UPLOAD_LIMIT_PERCENT}" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="33%" class="row1"><span class="gensmall">0%</span></td>
<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
</tr>
</table>
<strong><span class="genmed">[{UPLOADED} / {QUOTA} / {PERCENT_FULL}]</span> </strong><br />
<span class="genmed"><a href="{U_UACP}" class="genmed">{L_UACP}</a></span></td>
</td>
</tr>
<!-- END switch_upload_limits -->
|
#
#
# Replace with
#
#
| Code:
|
<!-- BEGIN switch_upload_limits -->
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_UPLOAD_QUOTA}:</span></td>
<td>
<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
<tr>
<td colspan="3" width="100%" class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td>
<img src="{LCAP_IMG}" width="4" height="13" alt="" /><img src="{MAINBAR_IMG}" width="{UPLOAD_LIMIT_IMG_WIDTH}" height="13" alt="{UPLOAD_LIMIT_PERCENT}" /><img src="{RCAP_IMG}" width="4" height="13" alt="" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="33%" class="row1"><span class="gensmall">0%</span></td>
<td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
<td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
</tr>
</table>
<strong><span class="genmed">[{UPLOADED} / {QUOTA} / {PERCENT_FULL}]</span> </strong><br />
<span class="genmed"><a href="{U_UACP}" class="genmed">{L_UACP}</a></span></td>
</td>
</tr>
<!-- END switch_upload_limits -->
|
Again I need to emphasis; I have NOT tested this in Basic 2.0.7
I have only tested and used this on Xtreme 2.0.7 and am very sure it is the same code, but there is nothing like actually applying it to Basic 2.0.7.
If someone would be willing to test this to confirm validity, that would be great!
Again be sure to have saved the original 2 files. This is a quick and easy alteration to complement the bargraph of the private messages’ mailboxes. And if this is not a valid solution, we need to get this post removed ASAP! |
|
|
| Back to top |
|
 |
|