Posted by tobiberlin on August 27, 2010 at 9:31am
4 followers
Jump to:
| Project: | Multistep |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I installed Multistep to use for a content profile. Everything worked fine - the block showed the progress right. Then one day later I opened the content profile again and started with step one, clicking on "Next" and suddenly the progress bar did not show 100 % (what was right) but 0 % - and nothing changes anymore. I deleted the node and startet creating a new one but the problem remains: the scrollbar keeps 0 %. Any ideas about this????
Greez,
Tobias
Comments
#1
The progress bar actually renders through CSS, make sure that you have no conflicting CSS where your block is displayed.
It uses the following classes:
.multistep-progress-bar-wrapper.multistep-progress-bar.multistep-progress-bar-100Let me know if this shines some light into the problem.
#2
Hi,
I cleared this issue by using a content type which is not content profile. There are too many difficulties when using Multistep in content profiles. In this way this did not happen again.
Greez,
Tobias
#3
Yeah, Multistep for Content Profiles is still an iffy area... glad you fixed it, though!
#4
Automatically closed -- issue fixed for 2 weeks with no activity.
#5
May I suggest this little changes to the code so you can use both modules and avoid this annoying bug. Maybe there are better ways to do it at least but it works.
In multistep.module, line 201 change this :
$submitted = 0;for ($step = 1; $step <= $steps; $step++) {
$status = _multistep_get_status(arg(1), $step);
// Count how many steps have been submitted.
if ($status == 'submitted') {
$submitted++;
}
}
to this
$submitted = 0;if (module_exists('content_profile')) {
$node = content_profile_load($type, arg(1));
$nid = $node->nid;
}
else {
$nid = arg(1);
}
for ($step = 1; $step <= $steps; $step++) {
$status = _multistep_get_status($nid, $step);
// Count how many steps have been submitted.
if ($status == 'submitted') {
$submitted++;
}
}
Hope it helps.