![]() |
Create New Threads in Forum Home
1 Attachment(s)
A simple little edit which allows registered members to click an icon and be taken directly to a new thread page for that specific forum id. In other words, you can create a thread directly from the forum home for each forum.
Styles & Templates >> Forum Home Templates >> forumhome_forumbit_level2_post >> Find: Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> Code:
<if condition="$show['member']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$forum[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newth.png" alt="$vbphrase[post_new_thread]" border="0" /></a></if> Upload the icon to your themes /buttons folder. Alternatively, you can specify a new icon image by editing: Code:
<img src="$stylevar[imgdir_button]/newth.png" alt="$vbphrase[post_new_thread]" border="0" /> --------------------------------- If you use this for a plugin, please credit me. If you use this on your forum, click installed! Thank you for reading. |
What about if you have sub-forums on a forum in forumhome and if you only allow members to post on these sub-forums? Users get an error message saying the forum is closed for new messages since they must only post in the sub-forums listed there.
|
I don't quite understand, are you getting an error when you add this?
|
thankx alot
|
No problem, your very welcome.
|
Great mod! I've been looking for this for a year...only saw it for 4.0.
Note, to do this for sub-forums you can repeat the same process for forumhome_forumbit_level1_post I've also added the button to my top menu and hard-coded my open forum id into it, so now it's easier than ever to start a new thread even for the slowest of members. |
For VB 4.2+
Code:
<vb:if condition="$show['member']"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw forum.forumid}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/newth.png" alt="$vbphrase[post_new_thread]" border="0" /></a></vb:if> |
Quote:
Add a conditional if you have forums that are locked/closed to new posts. Code:
<vb:if condition="$forum['allowposting']"><vb:if condition="$show['member']"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw forum.forumid}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/newth.png" alt="Post New Thread" border="0" /></a></vb:if></vb:if> |
All times are GMT. The time now is 08:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|