View Full Version : Remove access to New Threads
eNforce
11-23-2005, 12:02 AM
I'm looking for a Mod to remove access to New Threads in a specific forum for a single specific member.
does one exist?
tnguy3n
11-23-2005, 12:12 AM
well, you can use conditional in templates to do the trick.
eNforce
11-23-2005, 12:21 AM
I don't know how to do this :surprised:
peterska2
11-23-2005, 01:31 AM
In your forumdisplay template find the bit that says about newthread.gif and around that code add something like:
<if condition="$bbuserinfo[userid]!=x">
all the stuff about newthread.gif
</if>
Change the x to the userid number of the user that you dont want to display the button to.
There are two instances of this in the template so make sure that you do both of them.
BTW, I've not checked the code, just done it from memory so if theres a bug give me a poke and I'll fix it.
eNforce
11-23-2005, 01:35 AM
Does that remove the users new thread privileges to all forums? I want to only remove it for a specific forum :squareeyed:
peterska2
11-23-2005, 01:40 AM
ooops yeah it would.
<if condition="$forum[forumid]=x">
<if condition="$bbuserinfo[userid]!=y">
stuff for button
</if>
<else />
stuff for button
</if> should do it. of course this is even more untested coz of the nested if's.
x = forum id number
y = user id number
tnguy3n
11-23-2005, 02:19 AM
ooops yeah it would.
<if condition="$forum[forumid]=x">
<if condition="$bbuserinfo[userid]!=y">
stuff for button
</if>
<else />
stuff for button
</if> should do it. of course this is even more untested coz of the nested if's.
x = forum id number
y = user id number
you can also write:
<if condition="($forum[forumid]=x) AND ($bbuserinfo[userid]!=y")>msg</if>
;)
eNforce
11-23-2005, 04:25 AM
you can also write:
<if condition="($forum[forumid]=x) AND ($bbuserinfo[userid]!=y")>msg</if>
;)
I like this method, however I fiddled around with it for at least an hour and can't figure out where to paste it :disappointed:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.