The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
which template determines guest for showthread?
can someone help me find where the code decides if a member is a guest or not when it shows the thread?
for some reason i can't find where it decides to show the "you do not have permission to view this" or the actual thread content. i'm sure i've just been staring at it for too long and it's prolly right in front of me somewhere really simple. thanks! |
#2
|
||||
|
||||
Thats a usergroup permission.
Can view thread content |
#3
|
|||
|
|||
thanks for your reply.
i'm aware that's a user group permission. i'm just trying to find that line in the template for something we're developing. |
#4
|
||||
|
||||
There is no line in any template. If the permission triggers, the generic_error message template is shownn with phrases on it.
|
#5
|
|||
|
|||
well it's gotta trigger somewhere, right? there's code somewhere that determines if someone has permissions or not. if it's not in the styles> templates where would it be? is it hard coded in showthread.php?
thanks again. |
#6
|
||||
|
||||
Its a permission check in either showthread.php or one if its included files. What exactly are you trying to do?
|
#7
|
|||
|
|||
weaken security :lol:
as odd as that sounds esp from me.. you don't know me but i worked in network security for over 10 years so it just sounds odd saying that. so yea, i'm trying to create a simple backdoor to a specific forums content. the general discussion is set for guests to view threads but not the content. you know, tease them but make them join or login to view the actual content. pretty standard action. the problem is that i also want to be able to submit content to bookmarks, rss feeders and other stuff w/o having to make it viewable by public. we thought that we can make that forum specific by passing something like && forum==5 && bd=98. now we don't really care if a guest figures out that they can simply adds ?forum=5&bd=98 to the url or something like that to view the content of general discussion without logging in. more power to um if they figure that out but it'll still have the desired affect of enticing the average user to join or login while still being able to use rss feeders by adding that to the url. does that make sense? |
#8
|
|||
|
|||
so there's no way to do this w/o changing the source code?
|
#9
|
|||
|
|||
sorry to bump
|
#10
|
||||
|
||||
If you look at the code for the showthread.php page, you'll see that forum permissions are checked around line 444. So, use one of the hooks prior to that to change the permissions if bd=98 (or whatever).
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|