troppodel
01-24-2009, 10:47 PM
Hi there
I'm not a coder
i know i can disable the new thread button with the usergroup permission.
But if i wanna disable the new thread button in a forum for all users but don't wanna change the permission because this group need to create new thread in other forums?
example i have create a forumid 126 and i wanna change the link for the new thread button of this forum, i changed my forumdisplay template (add blue text):
<if condition="$forumid <> 126">
<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
<else />
<if condition="$show['newthreadlink']"><a href="http://www.bobmarleymagazine.com/forum_bmwm/misc.php?do=form&fid=1" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</if>
the question is:
if i wanna create a simple mod where i go in the vbulletin option and select my mod (example "disable new thread button") and there i have a one simple line text field where i put the exclusion forumid and so change the variable in my condition above (note: without the change link button only for disable it) how can i do?
<if condition="$forumid <> variable of my mod">
<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</if>
somebody can help me to create this little mod?
I'm not a coder
i know i can disable the new thread button with the usergroup permission.
But if i wanna disable the new thread button in a forum for all users but don't wanna change the permission because this group need to create new thread in other forums?
example i have create a forumid 126 and i wanna change the link for the new thread button of this forum, i changed my forumdisplay template (add blue text):
<if condition="$forumid <> 126">
<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
<else />
<if condition="$show['newthreadlink']"><a href="http://www.bobmarleymagazine.com/forum_bmwm/misc.php?do=form&fid=1" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</if>
the question is:
if i wanna create a simple mod where i go in the vbulletin option and select my mod (example "disable new thread button") and there i have a one simple line text field where i put the exclusion forumid and so change the variable in my condition above (note: without the change link button only for disable it) how can i do?
<if condition="$forumid <> variable of my mod">
<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</if>
somebody can help me to create this little mod?