The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'd like to be able to restrict a Thread from being seen/posted in/etc based on how many posts I user has done. For example under my main forum thread I'll have a thread title '100K' -- I'd only like those users that have 100k posts or more to even see that. How can I do this? Thanks in advance.
|
#2
|
|||
|
|||
![]()
Hello. I was pretty bored tonight/this morning so I thought I'd play around with this idea. Here's what I did so far:
Step 1 - Made `req_posts` field (INT, default=0) in THREAD table. (database) ### FOLLOWING DONE IN FORUMDISPLAY.PHP ### Step 2 - Added req_posts into the thread query PHP Code:
Step 3 - Find: PHP Code:
PHP Code:
Step 4 - Find: PHP Code:
PHP Code:
------ That should prevent them from showing up in the forum display... which is a start, eh? If you're wondering about the +1 to the bbuserinfo[posts], it seems to error out my way for GUESTS and users not logged in, not that adding one to that is a HUGE deal; it's just one extra line of code and doesn't actually add to the post count. Maybe someone knows a better way? |
#3
|
|||
|
|||
![]()
So I'm guessing that somewhere in the AdminCP you'll set up the req_posts?
Will this still display the thread in the list though?? |
#4
|
|||
|
|||
![]()
Oooooh, you want users to SEE the thread but not be able to access it? Well, if that's the case, you can disregard anything after step 1. :P
It could be configurable in the admin panel if you added some code there to do it with. More code is needed for when they actually visit the thread, I just didn't do that part. (yet?) |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|