Start Thermometer from a specified amount

  • TrueVineMinistries
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 2 months ago #7894 by TrueVineMinistries
Start Thermometer from a specified amount was created by TrueVineMinistries
Hi All!

We are using Joomdonatoin to garner donations for our church building fund. Before we implemented Joomdonation, we had collected some funds for the fund. I would like the themometer to show that. How would I go about start the temometer at a different value, apart from zero?

Any help would be appreciated. Thank you!

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #7908 by zoomlanski
Replied by zoomlanski on topic Re: Start Thermometer from a specified amount
Subscribing to topic - interested in same.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #7909 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Start Thermometer from a specified amount
Hi all

I will consdering adding this as a parameter of the module. For now, if you want to have this feature, you can modify the code a litlte. Open the file modules/mod_jd_thermometer/tmpl/default.php, looks at the line 22 :
Code:
$donatedAmount = $row->donated_amount ;

Change it to
Code:
$donatedAmount = $row->donated_amount + STARTING_AMOUNT;

Please replae the STARTING_AMOUNT with the actual amount you want. For example :
Code:
$donatedAmount = $row->donated_amount + 120;

Hope this help !

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt