The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Anyone can post, but restrict thread view to usergroup
I've looked for this hack but I can't find how to do it.
I need to have a forum where ANYONE can post a message, ANYONE can view the subject line, but only members of USERGROUP can read the detail of the thread. i can't seem to do it via the usual forum permissions changes. Anyone know how to do this? I need it because I want to be able to have a "jobs available" section that anyone can post a legit job to, ordinary users can see the list of jobs available, but only financial members can read and get the job detail. thanks Matthew |
#2
|
||||
|
||||
enjoy..
|
#3
|
||||
|
||||
No luck yet. edited showthread.php with following code, enabled default permissions for usergroupid==4 (registered members) and made up template. Logged in as a registered member, but can still see all threads in forum id==5.
Quote:
|
#4
|
||||
|
||||
are u sure your registered users is 4? 4 is suppose to be COPPA while registered users are 2.. check it out
|
#5
|
||||
|
||||
Yes, I did check that and you were right, I had confusled these (it takes real guts to be stupid ;-) BUT unfortunately after updating the two files to reflect the correct usergroupid, it still doesn't appear to work.
Now, in order for the hack to work, I understand the user permissions must be set so that that usergroup Can see own threads, Can see others threads, Can etc etc, .... and then the hack code short-circuits this and says if you're a member of Y group, you ain't getting any further in this X forum despite what the permissions say. That right? Seems like it should work but still no joy. Thanks for your help so far. Matthew |
#6
|
||||
|
||||
matthew your logic is correct. That's how the hack works..
I believe your problem is related to your somehow. It was a tested hack and after your message I replied it to a test board and it worked: This is what this the hack does: It allows the usergroup X to browse inside forum Y and list thread titles but if they click on a thread, they receive your custom error message and cant read it. You might be missing something while installing.. Please double check: 1- you installed correctly 2- you try the hack with a usergroup account you restricted. 3- You enter your forumid correctly and you test the hack in that forum |
#7
|
||||
|
||||
Logician, I checked all above several times, and still no joy.
Can I somehow echo $forum['forumid'] and $bbuserinfo['usergroupid'] to the screen at the point of loading the page so I can check that the values I am trying to restrict are correct? How do I add this sort of debug info to my page? Thanks for all your help. |
#8
|
||||
|
||||
Quote:
find PHP Code:
PHP Code:
|
#9
|
||||
|
||||
nm, I found your problem: please try adding the code in showthread.php right BEFORE here TOO:
PHP Code:
|
#10
|
||||
|
||||
THANKS that worked, its great, does exactly what I want.
Now I have to read showthread.php and try to understand it! Again, thanks for your efforts. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|