Tagged: Progress Bar
-
AuthorPosts
-
May 23, 2017 at 6:08 am #798065
Hello,
I have the myCred plugin installed which gives users points that can be shown with the [mycred_my_balance] short code. I need to edit the progress bar so that the input field of the progress i.e. the percentage value, is the same as the the result from the above shortcode.I have found the progressbar.php file and this is the part i need to change:
array(
“name” => __(“Progress in %”, ‘avia_framework’ ),
“desc” => __(“Select a number between 0 and 100”, ‘avia_framework’ ),
“id” => “progress”,
“type” => “select”,
“std” => “100”,
“subtype” => AviaHtmlHelper::number_array(0,100,1, array(), ‘%’)
),I know i can add shortcodes into php files using: do_shortcode(‘[mycred_my_balance]’) But how do i add it into an array?
i have tried changing “type” to “input” and putting the shortcode into the avia layout builder editor but with no luck.
Any help you can give me would be appreciated.
Thanks!May 23, 2017 at 4:16 pm #798358Hey S-edwards,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.
Best regards,
VictoriaMay 24, 2017 at 12:49 am #798640Hello,
Thanks for the quick reply. Details are below.
I also added an example page with a progress bar using the shortcode to get the percentage. However its not working and the progress bar is defaulting to 100%. I added the same shortcode just underneath it to show what the number should be.
May 25, 2017 at 4:24 pm #799634Hi w_archer,
You could copy this file to your child theme and make changes there. You need to preserve the folder structure to make this work (https://kriesi.at/support/topic/modify-table-php-on-a-child-theme/) and then call your plugin in shortcode_handler function.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
