PDA

View Full Version : Forum Home Enhancements - Sub-Forum Dropdown Menu


JAuthement
08-11-2007, 10:00 PM
This is NOT my creation but it has yet to be posted in the vBulletin 3.6 Template Modifications Section. This mod was originally posted in the 3.5 Section by DanLai https://vborg.vbsupport.ru/showthread.php?t=99821

I have though tweaked it a bit for use with vB 3.6.x

Description. This is a Mod to make sub-forums appear in a drop-down menu fashion.

1. +/- sign for forums with/without unread posts

Step 1. Open:
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post

Find:
Code:
<strong>$vbphrase[subforums]</strong>: $forum[subforums]

Replace with:
Code:
<!-- Subforum pull-down menu --------------------------------------->
<form action="forumdisplay.php" method="get">
<input name="s" value="" type="hidden">
<input name="daysprune" value="-1" type="hidden">
<select name="f" onchange="this.form.submit();">
<option value="$forum[forumid]" selected><strong>Sub Forums</strong></option>
$forum[subforums]
</select>

</form>
<!-- Subforum pull-down menu --------------------------------------->

Step 2. Open:
forumhome_subforumbit_nopost
forumhome_subforumbit_post

Replace the templates with:
Code:
<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">

<if condition="$forum[statusicon] == 'new'">
+&nbsp;
<else />
-&nbsp;
</if>

$forum[title]

</option>
<!-- Subforum pull-down menu --------------------------------------->

Kaleem
08-12-2007, 09:35 PM
good one thanks :)

FReeSTER
08-14-2007, 04:15 AM
Thank you :up:

BigDog56
08-14-2007, 06:49 AM
Very nice! Thank you!

Tygerwoody
08-16-2007, 12:42 PM
mod isn't working for me for some reason. Is there something I have to do to "turn it on"? This is the first mod I have ever had problems with. I currently have about 12 mods now.

Tygerwoody
08-16-2007, 01:11 PM
nm works now :)

4x4 Mecca
08-17-2007, 03:56 AM
Installed and working fine. Is there a way to get this to display in forumdisplay also? So in my forum, I can have a drop down of it's sub forums.

rapidphim
08-17-2007, 04:54 AM
any screenshot/demo of this hack?

markdekwant
08-17-2007, 02:29 PM
screenshot please

dbirosel
08-17-2007, 04:01 PM
screenshot please!!

JAuthement
08-17-2007, 06:10 PM
Installed and working fine. Is there a way to get this to display in forumdisplay also? So in my forum, I can have a drop down of it's sub forums.
Yes you can
Repeat Step 1 for the following:

forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post

Step 2. Open:
forumhome_subforumbit_nopost
forumhome_subforumbit_post

and replace the code with the following:
<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">

<if condition="$forum[depth] == '2'">
&nbsp; &nbsp;
</if>
<if condition="$forum[depth] == '3'">
&nbsp; &nbsp; &nbsp; &nbsp;
</if>

<if condition="$forum[statusicon] == 'new'">
+&nbsp;
<else />
-&nbsp;
</if>

$forum[title]

</option>
<!-- Subforum pull-down menu --------------------------------------->

That should fix you up

4x4 Mecca
08-17-2007, 09:35 PM
Thanks! I'll go try that.

4x4 Mecca
08-17-2007, 10:01 PM
That didn't quite do what I was hoping. What I want is say I'm viewing my forum called "Hang Out" and there are sub forums below that such as introductions and the arcade. Well when you are viewing the actual forum the hang out, instead of seeing the usual big bulky display of subforums on top, I'd like a small drop down, where ever I decide to place it. This is a mock up that I did. I like the location. :)

Hollister
08-20-2007, 08:24 PM
how do i change this so instead of "sub forums" being the first word you see in the dropdown,instead its whatever the first sub forum is.

Also how would i edit the code so it only appears for certain forums.

momo2
08-28-2007, 06:00 PM
how can i have set for some area ? i got a hugeeeeeeeeeeeeee forum with min 20 to 30 subs
its will be crazy if i add this... but for some area with 1-5 subs will look ok

miner
10-14-2007, 02:29 AM
Nice hack installed

Evolution06
10-16-2007, 08:48 PM
Nice hack installed! Really helps if you plan to have alot of subforums, But how do you get the drop down in the same line as the forum name? Like you have in your screen shot. Right now mine is below forum description.

Roughnek29
10-28-2007, 03:41 AM
Not working for me? What am I doing wrong?

Losha
10-28-2007, 06:07 PM
Very nice! Thank you!
and
hack installed http://www.losha.net/vb/images/smilies/biggrin.gif

BioWaffen
11-05-2007, 11:37 AM
how do i change this so instead of "sub forums" being the first word you see in the dropdown,instead its whatever the first sub forum is.

Also how would i edit the code so it only appears for certain forums.

In step 1:

<strong>Sub Forums</strong>

Here just change it to anything you want =)

Best regards
BioWaffen

Fungsten
11-14-2007, 05:06 PM
Not working for me? What am I doing wrong?

Not for me either. The forums do not show up in the pull down list.

Triky
11-22-2007, 07:32 AM
Thank you, I think I will use this one on my web site! :)

Ksb2050
12-27-2007, 02:36 AM
This isnt working. All I get is a + sign with the parent forum name? What am I doing wrong??


Parent Forum: CLub House
what I see instead of the dropdown: - Club House

iogames
01-16-2008, 07:53 PM
Interesting! but no quite sure :(

Harley D
01-26-2008, 12:27 PM
Interesting, however too many folks having issues.
Will check this out later to see if things get resolved.

UpGrayeDD
02-01-2008, 01:31 AM
I had the same problem that everything shoed up but when u click the drop down no sub forums are in it. I even tried changing how many sub forums shows in vboptions, didn't work.

Pirat3
02-27-2008, 01:04 AM
Dosnt work for me at ALL. I can see the drop down when I click "preivew" but not on forums it self. I am guessing a mod is causing it, maybe VBa?

Pirat3
02-27-2008, 02:47 AM
Ah figured it out, if it does not work for you, enable forum depth::

Increase the subforum depth:

Admin CP -> vBulletin Options -> Forum Listings Display Options -> Depth of Sub-Forums

Leo Brazil
03-04-2008, 07:45 PM
I've just installed this mod and does work great.

But I was wondering how about about to add some color on it ? I mean, the background is white and looks flat. I wish I had this dropdown menu just looking like the dropdown menu on navibar, that would really great.

If someone can give any tips I'd be glad.

Tks.

The360Place
03-10-2008, 02:38 AM
How come I dont see no sub-forum drop down menu?

Weston
04-07-2008, 04:00 AM
i did it and its not working what do i have to do its not showing up at all

pooffck1
05-13-2008, 08:34 AM
hi, fantistic hack. I wanted to ask u something about re-aligning the subforum drop down menu! , how can i move to the left a bit?

Harley D
07-10-2008, 08:21 AM
At first I couldn't get this mod to work, but after playing with the Display Settings, I finally got it working!

In order to get this mod to work "For those having problems"... Try the settings below...

Admin CP -> vBulletin Options -> Forum Listings Display Options ->

Depth of Forums - Forum Home set to 1

Depth of Forums - Forum Display Set to 1

Depth of Sub-Forums Set to 2

Please post if this works for you.

Harley D
07-10-2008, 08:40 AM
hi, fantistic hack. I wanted to ask u something about re-aligning the subforum drop down menu! , how can i move to the left a bit?

I also would prefer the dropdown to the right of the Forum Title rather than below. If I manage to make the change, I'll post it.

anderow
07-10-2008, 09:48 PM
At first I couldn't get this mod to work, but after playing with the Display Settings, I finally got it working!

In order to get this mod to work "For those having problems"... Try the settings below...

Admin CP -> vBulletin Options -> Forum Listings Display Options ->

Depth of Forums - Forum Home set to 1

Depth of Forums - Forum Display Set to 1

Depth of Sub-Forums Set to 2

Please post if this works for you.


That made things look very weird for me!! but it didnt fix it :)

Does anyone have any ideas why it does not display on my forum?>

3.7.2 patch level 1 with some choice mods but nothing beta.
Also, Clean Blue forum skin

This is what it looked like with those settings in for forum display!!

https://vborg.vbsupport.ru/external/2008/07/67.jpg

Eq4bits
07-15-2008, 03:24 PM
anyone with any clue as to how to do this on FORUMDISPLAY?

anderow
07-15-2008, 06:34 PM
anyone with any clue as to how to do this on FORUMDISPLAY?

Its on page one of this thread :)

Heres the post (https://vborg.vbsupport.ru/showpost.php?p=1319780&postcount=12)

Eq4bits
07-16-2008, 08:44 PM
got it, thanks
still trying to get the dropdown to display to the right of the forum name instead of under it, but no luck so far.

anderow
07-22-2008, 07:40 PM
Has anyone got ANY ideas please?

I badly want to get this working but cant at the minute :(

ShadowOne
07-27-2008, 08:14 PM
i installed everything the way it says...works fine for me....

anderow
08-08-2008, 10:59 PM
i installed everything the way it says...works fine for me....

What style are you using though please Shadow one?

methos10
01-25-2010, 09:35 PM
Yes it was installed on 3.7 that I had b4 I upgraded and would like it for VB 3.84 I just paid for along with 4.0! Any help would be appreciated!