![]() |
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 |
1 Attachment(s)
enjoy..
|
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:
|
are u sure your registered users is 4? 4 is suppose to be COPPA while registered users are 2.. check it out
|
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 |
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 |
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. |
Quote:
find PHP Code:
PHP Code:
|
nm, I found your problem: please try adding the code in showthread.php right BEFORE here TOO:
PHP Code:
|
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. |
Logician, is alot more extensive then this... with your code, I can see the posts, while I search...
I wrote one for my board so i know the little bells... |
Quote:
Anyway this not a full release hack, it's one of my 2 minute hacks which I give away to help requesters. So if you patched the searching gap in your hack, please feel welcomed to share yours in Full Releases or here.. |
All times are GMT. The time now is 02:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|