PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  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
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

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: 3038
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
spiritwulf
New Member
New Member


Joined: Feb 10, 2006
Posts: 18

PostPosted: Sat Sep 10, 2011 7:29 pm Reply with quote Back to top

Close catch sak. The lower case 'L' is actualy correct and the lower case 'I' is the incorrect value. You can see evidence of this farther down in the file blocks/block-Donat_o_Meter.php as there is another call for a value increase to value 'L'.




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


replace with:
Code:
// List all the donators
    $l = 0;
    while ( ($row_Recordset3 = mysql_fetch_assoc($Recordset3)) && ($l != $tr_config[dm_num_don]) )
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Sun Sep 11, 2011 1:58 am Reply with quote Back to top

@ spiritwulf this bug was fixed back in November 2009 according to my records. If you recently purchased this script from my website, please confirm the currency version you have so I can check that specific version again please.
View user's profile Send private message Send e-mail Visit poster's website
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-2011 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