PDA

View Full Version : [HELP] Progress Bar in PHP?



Lee
18-10-2012, 05:16 PM
Hi, so I was wondering if I could make a progress bar that I can display on a website, but via the admin backend I can enter three numbers between 1-100 and these three numbers will be like one is percentage done on content one percentage done on gfx and the other percentage done on the forum. Then these are stored in a database to get an overall percentage for the main site?

Sorry if I'm not being clear :)

Lee.

hamheyelliot
18-10-2012, 09:42 PM
Made a super simple example for you to download and build upon.

http://nexusartcafe.com/lee
http://nexusartcafe.com/lee.zip

All it has are 3 values you can change in index.php for the content, gfx and forum progress bars. It then calculates the average progress and displays them all.

You could have a backend for something like this, but not only am I not a PHP experienced guy - it's a bit extravagant for something so simple unless it's part of a bigger package, or you have a main site behind the scenes with a control panel.

Just something super simple that does the job, to answer your main question of having an admin panel, it's certainly possible. Just a case of finding someone who can code more than basic PHP!

Lee
19-10-2012, 12:45 PM
Made a super simple example for you to download and build upon.

http://nexusartcafe.com/lee
http://nexusartcafe.com/lee.zip

All it has are 3 values you can change in index.php for the content, gfx and forum progress bars. It then calculates the average progress and displays them all.

You could have a backend for something like this, but not only am I not a PHP experienced guy - it's a bit extravagant for something so simple unless it's part of a bigger package, or you have a main site behind the scenes with a control panel.

Just something super simple that does the job, to answer your main question of having an admin panel, it's certainly possible. Just a case of finding someone who can code more than basic PHP!

That's brilliant! Thanks a lot :D

Chippiewill
19-10-2012, 07:49 PM
Made a super simple example for you to download and build upon.

http://nexusartcafe.com/lee
http://nexusartcafe.com/lee.zip

All it has are 3 values you can change in index.php for the content, gfx and forum progress bars. It then calculates the average progress and displays them all.

You could have a backend for something like this, but not only am I not a PHP experienced guy - it's a bit extravagant for something so simple unless it's part of a bigger package, or you have a main site behind the scenes with a control panel.

Just something super simple that does the job, to answer your main question of having an admin panel, it's certainly possible. Just a case of finding someone who can code more than basic PHP!
This is pretty good and would be awesome in tutorial form in the tutorials forum.

hamheyelliot
19-10-2012, 07:54 PM
This is pretty good and would be awesome in tutorial form in the tutorials forum.

Sure! I mean most of the end result was to get the appearance right but I'd be happy to make a tut if it's of a bit of use.

Plus I've only just noticed the tuts forum is going a bit unloved *sheds tear*

Chippiewill
19-10-2012, 08:07 PM
Yeah, quick suggestion though, instead of:

<?php echo $b; ?>
You can use:
<?= $b; ?>

I think it's a little tidier when you're echoing inline.

Lee
19-10-2012, 08:10 PM
guys if you work together to smash out some good tutorials I'd be grateful as not only can I have them moved to the forum but they'll probably benefit me in the long run :D

hamheyelliot
19-10-2012, 08:16 PM
Yeah, quick suggestion though, instead of:

<?php echo $b; ?>
You can use:
<?= $b; ?>

I think it's a little tidier when you're echoing inline.

Brill, thanks man. Will revise the tutorial version with any improvements you think can be made!


guys if you work together to smash out some good tutorials I'd be grateful as not only can I have them moved to the forum but they'll probably benefit me in the long run :D

Are you looking for CSS, Design, WordPress focused tutorials too? Because that's definitely where I could produce a couple each month.

Tomm
19-10-2012, 08:24 PM
To be honest I'd consider this more of a CSS tutorial since the amount of PHP involved in it is almost inconsequential :P


Brill, thanks man. Will revise the tutorial version with any improvements you think can be made!



Are you looking for CSS, Design, WordPress focused tutorials too? Because that's definitely where I could produce a couple each month.

hamheyelliot
19-10-2012, 08:36 PM
To be honest I'd consider this more of a CSS tutorial since the amount of PHP involved in it is almost inconsequential :P

True! Just wanted to double check though, as from what I can see the tutorial forum is almost completely development oriented.

Lee
19-10-2012, 08:51 PM
Anything relevant, they all come in handy to someone on here :)

GoldenMerc
20-10-2012, 01:19 PM
That's really good, could use that for a site that im making.
Id like WP & PHP tuts primarily :)

Want to hide these adverts? Register an account for free!