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
Comments
Comment #1
MichelleThanks for the tip. This is actually something I wanted to add.
Michelle
Comment #2
MichelleListed on master to do list.
Michelle
Comment #3
MichelleComment #4
MichelleWill revisit this in 2.x.
Michelle
Comment #5
MichelleComment #6
MichelleJust a note that this will be added as soon as the jump menu code is added to CTools.
Michelle
Comment #7
MichellePostponing until after 2.0.
Comment #8
MichelleSetting active. This isn't a difficult one and will likely get into 2.x.
Michelle
Comment #9
troky CreditAttribution: troky commentedThis one will create (ctools) drop down menu for D7... probably will work on D6, too with minor changes.
advanced_forum.module:
theme.inc:
advanced-forum.naked.topic-list-outer-view.tpl
Comment #10
MichelleI was going to make a view for this... Your way likely performs better but a view is more customizable by the end user. Dunno which is better for this... Just throwing that out there for now.
Michelle
Comment #11
MichelleThis one slipped through the cracks. Moving this to D7 and postponing until there is a 3.x branch open for new features.
Comment #12
Ingumsky CreditAttribution: Ingumsky commentedAny chance for this jump to forum menu to be added to 6.x-2.x Michelle?
I'm planning to review this code and create a patch for the latest dev.
Comment #13
MichelleThat's up to mcdruid. I help out in the queue but I haven't committed in a long time and am not likely to have any time to do so in the foreseeable future.
Comment #14
Ingumsky CreditAttribution: Ingumsky commentedOK. Thank you for the instant response.
Comment #15
Ingumsky CreditAttribution: Ingumsky commentedI've tested jump to forum code provided by @troky, changed it a bit and it works like a charm for 6.x-2.x now.
Here's the the code that works for me:
advanced_forum.module
theme.inc
advanced-forum.naked.topic-list-outer-view.tpl
I can make a patch for this but with one of my patches still pending I need to know should I make this one over a clean 6.x-2.x-dev install or not.
Comment #16
MichelleI hate to make you go thru all the work of setting up a separate install for this patch. Just hang on for a bit. If mcdruid doesn't get to it first, I will try and see if I can take care of these before Drupalcon. My trouble is I don't have anything set up for working on AF right now since all my coding time goes to Artesian. So it's not a 2 minute commit for me like it would be if I was actively working on AF.
Comment #17
Ingumsky CreditAttribution: Ingumsky commentedOK. I understand. Thank you Michelle.
Comment #18
MasterChief CreditAttribution: MasterChief commentedSubscribe :)
Comment #19
Michelle@MasterChief: There is a follow button at the top of the issue you can use for that.
Comment #20
MasterChief CreditAttribution: MasterChief commentedThanks Michelle, i didn't see it !
Comment #21
troky CreditAttribution: troky commented#9 committed to 7.x-2.x-dev
Comment #22
MasterChief CreditAttribution: MasterChief commented@Ingumsky i tried your patch in #15, it works very well, but just one thing to modify.
You need to replace this
$select[url("forum/" . $forum->tid)] = str_repeat("•", $forum->depth) ." ". $forum->name;
by :
$select[url("forum/" . $forum->tid)] = str_repeat("-", $forum->depth) ." ". $forum->name;
The special char make the forum name dissapear in my case :(