- Posts: 9
- Thank you received: 0
donation thermometer
- NorCal
- Topic Author
- Offline
- New Member
Less
More
11 years 1 month ago #28083
by NorCal
donation thermometer was created by NorCal
I noted that the donation thermometer is relying upon a third party site to function. This is bad form for a lot of reasons but in my case at least it is also not functioning properly. Specifically the amounts are not loading so the image appears cutoff on the right side.
The specific code that is problematic is /modules/mod_jd_thermometer/tmpl/default.php
On the version that I have for J!2.5 this code starts at line 39-41:
I would like for these functions and image to be hosted on my own site. Relying upon third party sites has all kinds of implications such as: if/when they change or eliminate their code; if/when they change or eliminate images; page load; page speed/SEO or even ethical use unless you have specific permission. Could you not create this same functionality without relying upon this external function?
The specific code that is problematic is /modules/mod_jd_thermometer/tmpl/default.php
On the version that I have for J!2.5 this code starts at line 39-41:
Code:
<td align="center" style="padding-left:5px;"><img alt='<?php echo $row->title; ?>' src='http://www.fundraiserinsight.org/libs/thermometer.php?current=<?php echo $donatedAmount; ?>&max=<?php echo $goal; ?>&curr=<?php echo $currency; ?>&t_id=0&skin=<?php echo $theme; ?>' border='0' /></td>
I would like for these functions and image to be hosted on my own site. Relying upon third party sites has all kinds of implications such as: if/when they change or eliminate their code; if/when they change or eliminate images; page load; page speed/SEO or even ethical use unless you have specific permission. Could you not create this same functionality without relying upon this external function?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
11 years 1 month ago #28175
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: donation thermometer
Hi Norcal
We will work on that module within this week. We decided to use the third party resource because they provide very nice thermometer. If we use an in-house thermometer module, it won't be nice as the one provided by third party server. I think I will use this one :
phpfundthermo.sourceforge.net/
Tuan
We will work on that module within this week. We decided to use the third party resource because they provide very nice thermometer. If we use an in-house thermometer module, it won't be nice as the one provided by third party server. I think I will use this one :
phpfundthermo.sourceforge.net/
Tuan
Please Log in or Create an account to join the conversation.
- NorCal
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
11 years 1 month ago #28219
by NorCal
Replied by NorCal on topic Re: donation thermometer
Tuan,
if you send me the image specs that you need, I may be able to come up with something for you.
Paul
if you send me the image specs that you need, I may be able to come up with something for you.
Paul
Please Log in or Create an account to join the conversation.
- MoonDragon
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
10 years 9 months ago - 10 years 9 months ago #33398
by MoonDragon
Replied by MoonDragon on topic Re: donation thermometer
Hello,
I would like to change the thermometer equally : how can I do this (I need to use one hosted on ?
Do I have just to change the path in /modules/mod_jd_thermometer/tmpl/default.php ?
Thanks in advance for your help,
MoonDragon
I would like to change the thermometer equally : how can I do this (I need to use one hosted on ?
Do I have just to change the path in /modules/mod_jd_thermometer/tmpl/default.php ?
Thanks in advance for your help,
MoonDragon
Last edit: 10 years 9 months ago by MoonDragon.
Please Log in or Create an account to join the conversation.
- Maggie
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
10 years 9 months ago #33453
by Maggie
basically, yes. I was able to take very similar code from this site and edit it to my needs (color-wise)
www.arkie.net/~scripts/thermometer/
I hosted the PHP file on my own server:
mysupermarketer.com/maggie/tsrc.php
I then went to /modules/mod_jd_thermometer/tmpl/default.php and modified the code to fit my locally hosted thermometer:
i had to change the string a little bit since i was unable to build skins with the code i found. i stripped it from searching for a skin as well as adding width/height parameters.
i don't know too much about PHP, there is still a lot about the code that can/should be modified, such as the percentages and themes. i approached this by figuring out how www.fundraiserinsight.org/ made their thermometer and went from there.
it might be a good idea to figure out what code(s) fundraiserinsight is using to create their skins and thermostats, host the files locally, and edit the template. i'm sure they don't feel like giving up that information, but i'm sure this isn't the only PHP thermometer on the web. simply search for a PHP thermometer that generates an image using the key amounts in a string.
in short, you're absolutely right, it works and that is where you should edit the file to locally host your thermometer.
Replied by Maggie on topic Re: donation thermometer
Do I have just to change the path in /modules/mod_jd_thermometer/tmpl/default.php ?
basically, yes. I was able to take very similar code from this site and edit it to my needs (color-wise)
www.arkie.net/~scripts/thermometer/
I hosted the PHP file on my own server:
mysupermarketer.com/maggie/tsrc.php
I then went to /modules/mod_jd_thermometer/tmpl/default.php and modified the code to fit my locally hosted thermometer:
Code:
<img alt='<?php echo $row->title; ?>' src='http://www.mysupermarketer.com/maggie/thermometer.php?current=<?php echo $donatedAmount; ?>&Width=60&Height=210&Font=1' border='0' />
i had to change the string a little bit since i was unable to build skins with the code i found. i stripped it from searching for a skin as well as adding width/height parameters.
i don't know too much about PHP, there is still a lot about the code that can/should be modified, such as the percentages and themes. i approached this by figuring out how www.fundraiserinsight.org/ made their thermometer and went from there.
it might be a good idea to figure out what code(s) fundraiserinsight is using to create their skins and thermostats, host the files locally, and edit the template. i'm sure they don't feel like giving up that information, but i'm sure this isn't the only PHP thermometer on the web. simply search for a PHP thermometer that generates an image using the key amounts in a string.
in short, you're absolutely right, it works and that is where you should edit the file to locally host your thermometer.
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Dũng Nguyễn Việt
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.