boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Category and Archives in a drop down menu

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
scd1



Joined: 11 Jul 2004
Posts: 8

PostPosted: Mon Aug 23, 2004 3:21 am    Post subject: Category and Archives in a drop down menu Reply with quote

Is it possible to have the categories and archives in their own drop down menus? If it is, how is it done?

I noticed in b2sidebar.php the code:
Code:
<?php dropdown_categories(); ?>

so I know there's a way to have a drop down menu for the categories, but unfortunately the categories don't link to anything (you can click on the menu, but it won't go anywhere).

Any suggestions would be appreciated.
_________________
-Scott
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 616
Location: Oslo, Norway

PostPosted: Mon Aug 23, 2004 10:10 am    Post subject: Reply with quote

Copied from the readme:

Quote:
<?php dropdown_cats() ?>
this is a special tag, meant to be used in the template, but outside of the b2 loop. it will display a list of <option name="x">category-name</option>, where x is the number of the category and category-name is the name of it.

Parameters:
0 or 1, depending if you want to have an option to display all categories (default is 1)
text to display for the option to show all categories (default is "All")

you can use it like this:

Code:
<form action="<?php echo $PHP_SELF ?>" method="get">
<?php dropdown_cats() ?>
<input type="submit" name="submit" value="view" />
</form>

_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
scd1



Joined: 11 Jul 2004
Posts: 8

PostPosted: Tue Aug 24, 2004 2:27 am    Post subject: Thanks... Reply with quote

Thanks for that...I looked through the readme too - I must have skipped over that part. Is there a way to do the same thing for the archive list? (If this is in the readme too, I'll be mad b/c I know I went through it all).
_________________
-Scott
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group