MyBB Community Forums

Full Version: Post Topic dropdown box on index
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There are a lot of forums now that have a New Topic button on the forum index that has a dropdown list of the forums you have permission to post to select from. Clicking the forum takes you to the new topic form in that specific forum you selected. Anyone willing to whip up something like this?
There are two ways to do this :-
1. Manually - Use a dropdown tutorial and manually add all your create thread in each list item.
For example, below is a quick pseudo code
<nav>
<label for="drop" class="toggle">New Thread</label>
<input type="checkbox" id="drop" />
<ul class="threaddropdown">
<li><a href="/newthread.php?fid=1">Forum1</li>
<li><a href="/newthread.php?fid=2">Forum2</li>
<li><a href="/newthread.php?fid=3">Forum3</li>
<li><a href="/newthread.php?fid=4">Forum4</li>
...
</ul>
</nav>
And write the css for this

[b]OR[/br]
2. You can use a plugin to do the above in an automated way.

Regards
WallBB
Thanks! I don’t mind doing it manually via code. The UL Class is what I’d use in the CSS to style it, correct?

(2018-08-30, 05:33 AM)WallBB Wrote: [ -> ]There are two ways to do this :-
1. Manually - Use a dropdown tutorial and manually add all your create thread in each list item.
For example, below is a quick pseudo code
<nav>
<label for="drop" class="toggle">New Thread</label>
<input type="checkbox" id="drop" />
<ul class="threaddropdown">
<li><a href="/newthread.php?fid=1">Forum1</li>
<li><a href="/newthread.php?fid=2">Forum2</li>
<li><a href="/newthread.php?fid=3">Forum3</li>
<li><a href="/newthread.php?fid=4">Forum4</li>
...
</ul>
</nav>
And write the css for this

[b]OR[/br]
2. You can use a plugin to do the above in an automated way.

Regards
WallBB

Well I made it via code and it looks good but just found out it shows to all including guests. So I'd rather have someone make a plugin for this if anyone is up to the task.
(2018-08-30, 07:06 PM)Metallix Wrote: [ -> ]Thanks! I don’t mind doing it manually via code. The UL Class is what I’d use in the CSS to style it, correct?

(2018-08-30, 05:33 AM)WallBB Wrote: [ -> ]There are two ways to do this :-
1. Manually - Use a dropdown tutorial and manually add all your create thread in each list item.
For example, below is a quick pseudo code
<nav>
<label for="drop" class="toggle">New Thread</label>
<input type="checkbox" id="drop" />
<ul class="threaddropdown">
<li><a href="/newthread.php?fid=1">Forum1</li>
<li><a href="/newthread.php?fid=2">Forum2</li>
<li><a href="/newthread.php?fid=3">Forum3</li>
<li><a href="/newthread.php?fid=4">Forum4</li>
...
</ul>
</nav>
And write the css for this

[b]OR[/br]
2. You can use a plugin to do the above in an automated way.

Regards
WallBB

Well I made it via code and it looks good but just found out it shows to all including guests. So I'd rather have someone make a plugin for this if anyone is up to the task.

You can actually put the above code in header_member_welcomeblock template and it will not be shown to guests. You will need to do some small modifications in header template but with this hard work no extra query will be used Smile
Still need to take into account permissions as well - besides guests and members. Which groups are allowed to post in which forums etc...