Loading...

WebWoW

World of Warcraft Private Development Forums

You are not logged in.

stady234
Donator
<The Untouchables>

From: FL, USA
Registered: 2009-10-25
Posts: 250
Reputation:   16 
Website

#1     2010-01-27 20:53:02

Donation Progress Bar

Was wondering if i could get some help making a "progress bar" to track donations..

I would like it to augment the donation reports so that the "admin" can put a "Goal" and the system will count total $$ earned...

Bar would be nice to display on main site.. but anywhere else that seems logical would work too..

I have a basic bar... with tool tip.. but it will not link correctly.. so i put it on pause..

any help would be great....


V/R

Stady234

Offline

 
 
clarkeez
God of BlizzCraft
From: /htdocs
Registered: 2009-12-22
Posts: 137
Reputation:   
Website

#2     2010-01-28 15:13:09

Re: Donation Progress Bar

Hit me up with any progress on this, its an epic idea and would love it xD

Offline

 
maverfax
Rival
From: The PingueCMS
Registered: 2009-06-21
Posts: 106
Reputation:   
Website

#3     2010-01-28 20:49:46

Re: Donation Progress Bar

Here's a sample script:

<?php
$donation_goal = '100';
$current = '10';

#Default value:
$percent = '100';

if($current < $donation_goal)
  $percent = round($current / $donation_goal * 100);

echo '<img src="donationbar.jpg" width="'.$percent.'%">';
?>

The donationbar.jpg would just be a regular bar. The more donations, the more of the width is shown - which gives the appearance that the donation bar is getting bigger. Then all you need to do is link in your donation goal, and how much you have donated.

Hope this helped wink

Offline

 
 
stady234
Donator
<The Untouchables>

From: FL, USA
Registered: 2009-10-25
Posts: 250
Reputation:   16 
Website

#4     2010-01-28 21:00:25

Re: Donation Progress Bar

You post was basically what i already had... but i do thank you for your input.. it got me thinking...

---
SOLVED>>>

I will post tomorrow.... after i get back from my works mandatory"Fun" day -- although we are going to a Paint Ball field!!

Post edited by stady234 (2010-01-28 21:49:15)


V/R

Stady234

Offline

 
 
clarkeez
God of BlizzCraft
From: /htdocs
Registered: 2009-12-22
Posts: 137
Reputation:   
Website

#5     2010-01-29 08:41:50

Re: Donation Progress Bar

Nice, stady, i would like this so I hope you can post it up.

Offline

 
stady234
Donator
<The Untouchables>

From: FL, USA
Registered: 2009-10-25
Posts: 250
Reputation:   16 
Website

#6     2010-01-29 20:54:34

Re: Donation Progress Bar

http://img163.imageshack.us/img163/1016/newbitmapimagefv.png

I need permission from Axe and the team.. because it uses code from the "donate reports", which you have to "pay" to get...

so, IF/When they bless off on it.. i will post...

Post edited by stady234 (2010-01-29 20:58:14)


V/R

Stady234

Offline

 
 
jtoloski
Power User
From: connecticut
Registered: 2009-03-31
Posts: 166
Reputation:   18 
Website

#7     2010-01-29 21:20:35

Re: Donation Progress Bar

Keep trying Stady...we need more people who are inquisative and willing to contribute to the free community.

Offline

 
clarkeez
God of BlizzCraft
From: /htdocs
Registered: 2009-12-22
Posts: 137
Reputation:   
Website

#8     2010-01-30 11:48:20

Re: Donation Progress Bar

stady can you send me in through PM, I already have the donation module as you can see on my website.

Offline

 
stady234
Donator
<The Untouchables>

From: FL, USA
Registered: 2009-10-25
Posts: 250
Reputation:   16 
Website

#9     2010-02-03 21:22:16

Re: Donation Progress Bar

After discusing things with Axe... here is the only thing i added to a "template" page..

Code:

$a=mysql_query("SELECT sum(amount) as sumamount FROM paypal_data") or error(mysql_error()); 
$a2=mysql_fetch_assoc($a); 

$target = 100;
$percentage = round($a2['sumamount'] / $target * 100);
$whatsleft = 100-$percentage;
if($whatsleft < 0) $whatsleft=0;

$cont2= 
' 
<center>
<br />
<br />
<h1>Donation Goal is:'.$paypalcurrecy_symbol.' '.$target.'</h1>
<br />
<br />
<TABLE width="500" border=0 cellspacing=0 cellpadding=0>
 <TR>
  <TD><center><h2> <B>'.$paypalcurrecy_symbol.' 0  </B></h2></center></TD>
  <TD>
   <TABLE width="100%">
    <TR>
     <TD style="width:'.$percentage.'px;background-color:green;height:30px;" onmouseover="$WowheadPower.showTooltip(event,\''.$paypalcurrecy_symbol.' '.$a2['sumamount'].'\')" onmousemove="$WowheadPower.moveTooltip(event)" onmouseout="$WowheadPower.hideTooltip();"></TD>
     <TD style="width:'.$whatsleft.'px;background-color:red;height:50px;" ></TD>
    </TR>
   </table>
  </TD>
  <TD><center><h2><B>'.$paypalcurrecy_symbol.' '.$target.'</B></h2></center></TD>
 </TR>
</TABLE>
<br />
<br />
<h3>Current Donated amount is: <span class="colorgood"><big>'.$paypalcurrecy_symbol.' '.$a2['sumamount'].'</big></span></h3>
</center>

Post edited by stady234 (2010-02-03 21:28:53)


V/R

Stady234

Offline

 
 
beti
Obsessed
Registered: 2010-06-16
Posts: 41
Reputation:   

#10     2010-08-04 06:33:58

Re: Donation Progress Bar

Steady could you post a Full file or upload somewhere else please...

and keep rocking you got amasing things

Offline

 
 
brock106
Hooked on WebWoW
Registered: 2009-04-02
Posts: 32
Reputation:   
Website

#11     2010-08-12 16:47:50

Re: Donation Progress Bar

hmmmm how i use this, i copy to a module page and run as module but none of sql query works

Offline

 
stady234
Donator
<The Untouchables>

From: FL, USA
Registered: 2009-10-25
Posts: 250
Reputation:   16 
Website

#12     2010-08-13 16:41:47

Re: Donation Progress Bar

The sql query is pulling from the source donation module...

if you don't have the donation module, it wont work...


V/R

Stady234

Offline

 
 
beti
Obsessed
Registered: 2010-06-16
Posts: 41
Reputation:   

#13     2010-08-14 11:03:29

Re: Donation Progress Bar

can you make a guide how to set up please

Offline

 
 

Board footer

Modded by AXE
© 2002–2008 PunBB

Not registered yet?
Latest Posts  
Table 'characte... (Hellfires)
How to put vote... (Rusfighter)
Trinity_ra- Bla... (Auzziedude)
Erroe (Axe)
paypal (Phenom)
Random Fact  
Helping Axe to remove critical security issues with website can earn you MP.
Activity  
miki258 and bleachwow122 just completed all steps trough WebCreator and got new websites.
maryo1912 and LordRasz just completed all steps trough WebCreator and got new websites.
Hellfires and khazan just completed all steps trough WebCreator and got new websites.
khazan and Hellfires just completed all steps trough WebCreator and got new websites.
bleachwow122 added new person named "Ichigo_Kurosaki" to SpyMe.
TheCrogamer and reconsniper96 just completed all steps trough WebCreator and got new websites.
WebWoW Staff  
Axe - creator & administrator
Phenom - moderator & spokesman
 
 
Action logged.