Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default [HELP] Progress Bar in PHP?

    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.

  2. #2
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    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!

  3. #3
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default

    Quote Originally Posted by hamheyelliot View Post
    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

  4. #4
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by hamheyelliot View Post
    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.
    Chippiewill.


  5. #5
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    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*

  6. #6
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    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.
    Chippiewill.


  7. #7
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default

    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

  8. #8
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    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!

    Quote Originally Posted by Lee View Post
    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
    Are you looking for CSS, Design, WordPress focused tutorials too? Because that's definitely where I could produce a couple each month.

  9. #9
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    To be honest I'd consider this more of a CSS tutorial since the amount of PHP involved in it is almost inconsequential

    Quote Originally Posted by hamheyelliot View Post
    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.

  10. #10
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    Quote Originally Posted by Tomm View Post
    To be honest I'd consider this more of a CSS tutorial since the amount of PHP involved in it is almost inconsequential
    True! Just wanted to double check though, as from what I can see the tutorial forum is almost completely development oriented.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •