PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sak
Client


Joined: Jul 06, 2005
Posts: 160

PostPosted: Mon Nov 09, 2009 3:13 pm Reply with quote Back to top

Is your donations block displaying too many donations and not reacting to the setting you specify in your treasury admin? Here is the fix for number of donations / number of donors to display.

Just noticed this little typo in the CA Treasury donations block:

/blocks/block-Donat_o_Meter.php

Find:
Code:
   // List all the donators
    $l = 0;
    while ( ($row_Recordset3 = mysql_fetch_assoc($Recordset3)) && ($i != $tr_config[dm_num_don]) )


Change to:
Code:
   // List all the donators
    $i = 0;
    while ( ($row_Recordset3 = mysql_fetch_assoc($Recordset3)) && ($i != $tr_config[dm_num_don]) )



Lower-case "L" is set to track # of donations to list in the block and compare to treasury config setting. However, lower case "i" is used on the next line to compare. Change lower case "L" to "i" on the first line fixes it.
View user's profile Send private message Visit poster's website
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 2878
Location: United Kingdom

PostPosted: Mon Nov 09, 2009 4:14 pm Reply with quote Back to top

Have you let the Author know?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2010 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum