evoteam team mailing list archive
-
evoteam team
-
Mailing list archive
-
Message #00031
[Bug 194849] Re: [2.4 RC1] Category selector presented without submit button
Closing as Fix Released, assuming that it has been released since then..
Thanks.
** Changed in: b2evolution
Status: Fix Committed => Fix Released
--
[2.4 RC1] Category selector presented without submit button
https://bugs.launchpad.net/bugs/194849
You received this bug notification because you are a member of Evoteam,
which is subscribed to b2evolution.
Status in b2evolution: Fix Released
Bug description:
This bug lived all the way from 1.6 through 2.4.
First appearance: http://forums.b2evolution.net/viewtopic.php?t=9750
Second appearance: http://forums.b2evolution.net/...hp?t=14539
Description:
It is possible to select multiple categories for view. In the 1.x.x system it needed an extra line in the skin, in 2.4 it is a setting in the Categories widget. It generates selection boxes before the categories and radiobuttons for ANY ANY BUT and ALL selection. What is omittesd is the start of the <form> tag and the submit button plus the closing </form> tag.
Solution :
For both the 1.10 series as the 2.4 series I made a hack which consists of this code before the category list:
/blog/inc/widgets/widgets/_coll_category_list.widget.php
PHP:
// start First part of Add Missing SubmitButton hack by Afwas
if( $this->disp_params['use_form'] )
{ // We want to add form fields:
$bblogUrl = $Blog->dget( 'blogurl', 'raw' );
echo'<form action="'.$bblogUrl.'" method="get">';
}
// end first part of hack
and this codepiece after the category list:
PHP:
<!-- Second part of Add Missing SubmitButton hack by Afwas -->
<br /><br />
<input name="submit" class="submit" value="Get selection" type="submit">
</form>
<!-- End hack by Afwas -->
(This is taken from the 2.4 version, In 1.10 the $param is called 'list' and the global $Blog variable must be included.)
Also reported at http://forums.b2evolution.net/viewtopic.php?t=14544