The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Permissions: Can list posts, but not view.
What's up people!
I've been thinking of developing a hack, but my proficiency with vB is not all that great yet. So, I'll suggest this hack to you. Right now I have about 15 forums divided into 3 catagories on my page. Currently unregistered users cannot view anything, when they try to load a page, they are denied with a custom 'no permissions' message. When I allow them access to view some of the forums, the forums that they can't view dont even show up, and thus they are unaware of them, and have no compelling reason to register to be able to view them. So, I allow them access to view the forums, but not the posts. Then, it just looks to them as if all the posts have been removed - again, no motivation. The next step would be to allow them to view the posts, and thus negating the reason why I require registration. (It's mature content, you see.) So, if there were a happy medium in permissions, where users from a certain usergroup could LIST the thread topics, but not display the threads themselves, that would make things much more productive for the forum in question, while not completely denying access to all the other interesting, yet decidedly less private forums. Tell me what you think. |
#2
|
||||
|
||||
Sounds like a good idea...
Satan |
#3
|
|||
|
|||
Anyone willing to give it a shot?
|
#4
|
||||
|
||||
edit showthread.php, find:
PHP Code:
PHP Code:
Create a new template named "error_youdonthavepermission" and specify your custom message for no permission.. (Dont forget to enable their permissions in Admin CP) If you want to apply the hack to 2 usergroups, change: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Thank you very much
That gives me a little to work on.. perhaps add some DB integration and a front end. |
#6
|
|||
|
|||
Logician
Is there a way for this to work for a thread instead of the forum & group ? I want them to view everything except the thread(post) |
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
Don?t work by me
In the ACP i set the "View other Threads" for Unreg User on yes. Than i insert the code in showthread.php but the guest can see all :beard: any idea? PHP Code:
|
#9
|
||||
|
||||
try to add your code after this part:
PHP Code:
|
#10
|
|||
|
|||
Hmm nothing seems to work.
PHP Code:
A quick question If i want to restriuct access to 2 or 3 user groups would I jsut do this if ($forumid==X AND $bbuserinfo[usergroupid]==Y OR $bbuserinfo[usergroupid]==Z) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|