Log in

View Full Version : Pulling UserID on a Random Page


evenmonkeys
12-02-2005, 08:05 PM
I know that in a post you would use:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>

Thinks like that. Basically, I'm trying to add in a custom page on the usercp page that would pull the person's ID. In the example below, I want to be able to automatically pull the user's ID up when they view the page. Is it possible without php files?

<tr>
<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>

What can I do to that so when a user clicks on the link in their usercp to make it pull their userid and all that fun stuff?

Marco van Herwaarden
12-02-2005, 08:15 PM
$userinfo[userid]

evenmonkeys
12-02-2005, 08:21 PM
I didn't exaplain that right. >_<

When I use the following code, it's not pulling up the person's info.

<tr>
<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>

I'm trying to make a custom page in the userCP, but I don't know how to make it pull the userinfo. Does it involve the whole session stuff? Like: $session[sessionurl] or is there another way to do it? I'm trying to avoid using a php file or code changes.

I'm going to send you a PM of the example if you wouldn't mind taking a look.

Marco van Herwaarden
12-03-2005, 05:52 AM
Don't send me PM's about questions that can be asked in public. I won't even look at them.

evenmonkeys
12-03-2005, 09:44 PM
Don't have to be an ass about it. I'd just rather everyone not see what I'm doing. Thanks though, Mr Moderator sir.