Add jump to forum dropdown

BradM - January 15, 2008 - 22:33
Project:Advanced Forum
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Michelle
Status:active
Description

I've implemented a 'jump to forum' drop down list, much like what is described here: http://drupal.org/node/91924

Just add the code to your forum-display.tpl.php file. It would be great if something like this is added to a future version. Currently this code doesn't filter the drop down list based on anon/user, or if any forums are private (can't remember if this is even an option).

Also, the code will add any containers as a selectable option, looking something like this:

Jump to:
--forum
--forum
--container
--forum

You have to hack the code to filter out building an entry for each container, like this:
if ($term->tid == 106) { continue; } // skip container
Just add the code right after the while ($term = db_fetch_object($vocabulary)) { statement.

Brad

#1

Michelle - January 16, 2008 - 04:04

Thanks for the tip. This is actually something I wanted to add.

Michelle

#2

Michelle - January 30, 2008 - 04:15

Listed on master to do list.

Michelle

#3

Michelle - September 3, 2008 - 15:35
Title:forum drop-down list» Add jump to forum dropdown
Version:5.x-1.x-dev» 6.x-1.x-dev
Category:feature request» task
Assigned to:Anonymous» Michelle
 
 

Drupal is a registered trademark of Dries Buytaert.