Recent Topics

1 Nov 04, 2006 19:55    

I need to insert a submit button (like "Get selection" in the categories sector of this blog http://htlab.theblog.net/blog.php ) to show the posts in according to the selected categories.
Thanks folks

3 Nov 04, 2006 20:59

do what was said here;
http://forums.b2evolution.net//viewtopic.php?t=9750

then add the following before;

<form action="get" action="<?php echo regenerate_url(); ?>">


and after;

</form>

should work... i'm suprised that the categories plugin does not add the form tag automaticly when the param form is true....

4 Nov 04, 2006 21:56

I can't make it works...

Is this the result?

<form action="get" action="<?php echo regenerate_url(); ?>"><?php
		// -------------------------- CATEGORIES INCLUDED HERE -------------------------

----
		// Call the Categories plugin:
		$Plugins->call_by_code( 'evo_Cats', array(	// Add parameters below:
'option_all' => 'ALL (Newest->Oldest)', 
                'form' => true, 

			) );

		// -------------------------------- END OF CATEGORIES --------------------------

--------
	?></form>

5 Nov 04, 2006 22:08

Oops forgot to stick the submit button in there, heres what you want


<form action="get" action="<?php echo regenerate_url(); ?>">
<?php 
        // -------------------------- CATEGORIES INCLUDED HERE ------------------------- 

        // Call the Categories plugin: 
        $Plugins->call_by_code( 'evo_Cats', array(    // Add parameters below: 
'option_all' => 'ALL (Newest->Oldest)',  
                'form' => true,  

            ) ); 

        // -------------------------------- END OF CATEGORIES -------------------------- 

    ?>
<input type="submit" value="Submit" title="Submit" />
</form>

7 Nov 04, 2006 22:45

Sorry really tired, the first action in the form tag is meant to be method, like so

<form method="get" action="<?php echo regenerate_url(); ?>">

if it still doesn't work, try changing the "get" to "post'

8 Nov 04, 2006 22:51

Thank you very much! :D

I need to study web-programming so much... 8|


Form is loading...