The Arcive of vBulletin Modifications Site. |
|
Create New Threads in Forum Home Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
I don't quite understand, are you getting an error when you add this?
|
|
#4
|
||||
|
||||
|
thankx alot
|
|
#5
|
||||
|
||||
|
No problem, your very welcome.
|
|
#6
|
|||
|
|||
|
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. |
| Благодарность от: | ||
| hurricane_sh | ||
|
#7
|
|||
|
|||
|
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>
|
|
#8
|
||||
|
||||
|
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>
|
![]() |
|
|