Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Sep 03, 2004 8:02 am Reply with quote

in Nuke Treasury? I really like the look of it. Will it change to black once it reaches $0.00?
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Fri Sep 03, 2004 8:16 am Reply with quote

It will once I complete the coding Smile. To change the color, modify donameter.html and wrap it in a font tag or a styles attribute.
 
View user's profile Send private message
blith
PostPosted: Fri Sep 03, 2004 8:43 am Reply with quote

Thanks! Code away my brother, code away!
 
Raven
PostPosted: Mon Sep 20, 2004 5:52 am Reply with quote

blith wrote:
in Nuke Treasury? I really like the look of it. Will it change to black once it reaches $0.00?

To control the color of red and black, do the following. In block-Donat_o_Meter.php, change this code
Code:
   $DM_LEFT = sprintf('$%.02f', $row_Recordset2['value'] - $row_Recordset1['net']);
to this
Code:
   $DM_LEFT = $row_Recordset2['value'] - $row_Recordset1['net'];

   if ($DM_LEFT<=0) $DM_COLOR='black';
   else $DM_COLOR='red';
   $DM_LEFT = sprintf('$%.02f', $DM_LEFT);

Then in modules/Donations/Donatometer.html, change this code
Code:
      <td width="65%" align="left"><b>Left to go:</b></td>

      <td align="left"><b>$DM_LEFT</b></td>
to this
Code:
      <td width="105" align="right"><b>Left to go:</b></td>

      <td align="left" style="color:$DM_COLOR;"> <b>$DM_LEFT</b></td>
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©