Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7586543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:27:14+00:00 2026-05-30T19:27:14+00:00

During user Registration progress bar is set to 150% in step 3 and to

  • 0

During user Registration progress bar is set to 150% in step 3 and to 134% in step 4. Here is the code from progressbar.php:

<?php
class CProgressbarHelper{

    static public function getHTML( $max=100, $currval=0, $barclass='outerpgbar', $barfillclass='innerpgbar'){

        if(!is_numeric($max) || !is_numeric($currval) || $max < 0 || $currval < 0)
        return '<div>Progress bar cannot be generated properly</div>';

        $width = intval(($currval/$max) * 100) ;
        $barclass = (!empty($barclass))
                    ? 'class="'.$barclass.'"'
                    : 'style="background-color:white; height:.8em; border :1px solid #D0D0D0; margin-bottom:10px; padding:1px; "' ;

        $barfillclass = (!empty($barfillclass))
                    ? 'class="'.$barfillclass.'" style="width:'.$width.'%;"'
                    : 'style="width:'.$width.'%; height: 100%; background-color:blue; position:relative;"' ;

        //class progressbarfill : inside of the progress bar
        $html = '<div '.$barclass.' >'.
                    '<div '.$barfillclass.'></div>'.
                '</div>';

        return $html;
    }
}

I have also tried an answer to such an issue at another blog as to change the line 1055 of /administrator/components/com_community/installer.helper.php from

$html .='<div class="outerpg"><div class="innerpgbar" style="width:'.$percentage.'%;"> '. $percentage .'%</div></div>';

to

$html .='<div class="outerpg"><div class="innerpgbar" style="width:'.($percentage/2).'%;"> '. $(percentage/2) .'%</div></div>';

But it is still not working properly. In fact, it has cut the progress bar in half on the first user registration page.

I can’t show the image here clearly, but you can understand it by registering at Jomsocial>>Demo. In fact, you won’t see the error there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:27:16+00:00Added an answer on May 30, 2026 at 7:27 pm

    The code which called this function passed a value for $currval which is higher than $max. Something like getHTML(100, 154) (this will give you 154% as result).

    You may add the following line:

    if ($currval > $max) $currval = $max;
    

    (before the $width = intval(($currval/$max) * 100); line)

    This way, you avoid having percentage higher than 100%.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During registration, I'm debating how I should set user password: Let the user choose
During registration, I save things like username, password(secured), user data from the registration form.
I want to check the strength of the password entered by user during registration.
During user registration I'm calling some custom function : def user_created(sender, user, request, **kwargs):
I stored salt and hash values of password during user registration... But during their
I would like to submit some information collected from user during Inno setup installation
I have enabled Location User module and during user registration I am collecting 2
During the new user registration process, I'm trying to find whether a user name
All, I want to generate server side a user id during registration. This id
I am developing a course registration website. A user can enroll in a class,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.