Hi,
Sorry you’re having problems with this.
I’m using the latest version and its showing progress bars for me.
Check the settings tab for the ‘Show Radial Progress’ / ‘Show bar’ options.
Alex
Thread Starter
PDidee
(@pdidee)
Hi I did that, I have it set to “Show as bar” but I still get the radial. Whether I select that “Show as radial progress” or “Do not show progress” I get the radial progress ONLY.
-
This reply was modified 8 years, 8 months ago by
PDidee.
Ok, where are you seeing the dial? On the topic menu page? I.e. The parent pages?
Or is this on the widget?
Alex
Thread Starter
PDidee
(@pdidee)
Yeah if I go to the parent page the progress bar is there but the widget shows as a dial. Also is it possible to change the toggle to look more like a button? I tried with css but the click event I think is linked the img file.
Ok so that’s expected behaviour I.e. The widget only ever showed a radial dial, mainly because we felt the bar would be too long to fit neatly into a sidebar.
We are looking at changing the image toggle button to a css version such as
https://www.w3schools.com/howto/howto_css_switch.asp
You should then be be able to customise the css if you wish.
Alex
Thread Starter
PDidee
(@pdidee)
Is there a way to have a bar in a widget? Set the size to a percentage?
There isn’t currently, but I can add it as a new feature, but it will be a few weeks away as I’m on holiday abroad at the moment.
I can see if there is a work around if you’re happy playing with the code?
Alex
Thread Starter
PDidee
(@pdidee)
Sure thing. Please let me know if there is a work around Thanks!
OK try opening widget.php
around line 65
$progressArgs = array(
"parent"=>$trackedID,
"type" => 'radial'
);
$progressDial = progressTracker::showUserProgress( $progressArgs );
Change type radial to type bar
Alex
Thread Starter
PDidee
(@pdidee)
Perfect! I also set a max-width of 100% which fixed the length issue here.
Thread Starter
PDidee
(@pdidee)
To implement the css toggle you can do this:
$pTrackerToggler.= '<span id="markAsReadButton"><label class="switch"><input type="checkbox"><span class="slider round"></span></label></span>';
on line 445 in class-draw.php
Great. Good Job! I’ll close the ticket…
Alex
After changing the type to bar, how did you change the width?