The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
userid of profile
I need to determine if the user viewing the profile is the owner of the profile.
I can create a template conditional and know how to determine the user id of the person viewing the profile, but how can I determine the user id of the profile the person is viewing? |
#2
|
||||
|
||||
You just need to make sure it's enabled.
AdminCP>Usergroups Edit the Usergroup you are interested in and look for "Who's Online Permissions" make sure they all say YES. |
#3
|
|||
|
|||
Sorry, I wasn't very clear at all.
I should have stated that I am making edits in the profile templates and want to display specific info only if the person viewing that profile is the owner of that profile. |
#4
|
|||
|
|||
You could try using $user['userid'] to determine the current user viewing.. maybe.
|
#5
|
|||
|
|||
Thanks for the reply.
And yep, that part I have. But how do I know the userid of the profile being viewed? |
#6
|
||||
|
||||
$bbuserinfo[userinfo] is the userid of the person viewing the page. Which template are you trying to do the condition in? If it's the MEMBERINFO template, I think $prepared['userid'] is the userid of the person who's profile you are on.
|
#7
|
|||
|
|||
The userID of that is in the URL. Maybe you could manipulate that?
http://example.tld/forum/member.php?u=321 Bold = User ID EDIT: Lynne seems to have done it |
#8
|
|||
|
|||
Thanks Lynne!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|