The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
certain Threads readable only to registered users
hi all
im trying to find something that will make threads (contents) only visible to registered users, so you can tease them into registering by letting them view the odd thread. does this exist at all ? many thanks |
#2
|
|||
|
|||
vB ACP -> Usergroup Manager -> Edit Usergroup -> Forum Viewing Permissions
Code:
Can View Forum Yes Can View Thread Content No Can View Others' Threads Yes |
#3
|
|||
|
|||
Hi calorie
Thanks, but i know this i want to ba able to choose which thread in a forum to be accesible !! |
#4
|
|||
|
|||
Untested but maybe a start...
Code:
// hook: showthread_getinfo if ( $vbulletin->userinfo['usergroupid'] == 1 // unregistered AND in_array($threadid, array(1, 2, 3)) // blocked threadids ) { $vbulletin->bf_ugp_forumpermissions['canviewthreads'] = 0; } |
#5
|
|||
|
|||
hehe ermmm
Im an artist, and this stuff looks scary, could you explain a little ? thanks all tha same tho |
#6
|
|||
|
|||
See bolded comments within:
Code:
// hook: showthread_getinfo if ( $vbulletin->userinfo['usergroupid'] == 1 // if the user is unregistered or not logged in AND // and in_array($threadid, array(1, 2, 3)) // the user is trying to see threadids 1, 2, or 3 ) { $vbulletin->bf_ugp_forumpermissions['canviewthreads'] = 0; // then the user gets a no permission page } |
#7
|
|||
|
|||
Calorie !!!!!
Thnaks very much for taking the time I'll try it and lety you know.. Calorie may seem like a strange request but do you know if you can impose a restriction on thread ? like a guest can only view the 200 words in a thread ? sort of a tease to register ? many thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|