The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hi,
Can anyone please let me know how I will have it set in showthread.php that a particular template is displayed ONLY if the user viewing the thread has permission to post to it? Thanks. Mark Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Take a look at newreply.php:
Code:
$permissions=getpermissions($threadinfo[forumid]);
if (($bbuserinfo['userid']!=$threadinfo['postuserid']) and (!$permissions['canviewothers'] or !$permissions['canreplyothers'])) {
show_nopermission();
}
if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}
Need I say more?
|
|
#3
|
||||
|
||||
|
Ah! That's where I was going wrong. Thanks!
|
|
#4
|
||||
|
||||
|
Except it's not working :lol:
Not to matter, as long as I'm on the right track. |
![]() |
|
|