PDA

View Full Version : A code in the memberinfo template


acast
01-17-2009, 12:42 AM
Hi i need one code about the members profiles.

I try to explain.

When you want to join a post with the user that posted yo put:

$post[userid]

So with that code i can put a link, for example in postbit for something about the user that posted. I want to put a code like that in member profiles, but there arent posts, of course so i want to know how can i join it the member profile with the user that have that member profile.

I proved something like that:

$profile[userid]

But it doesnt exist or it doesnt work. Anybody knows how can i do it?

Perhaps is anything like $userinfo[profileid] ?

Thanks

Spank
01-17-2009, 12:53 AM
try $bbuserinfo[userid]

acast
01-17-2009, 01:17 AM
try $bbuserinfo[userid]

It doesnt work, it doesnt connect the link.


I try to explain better.

http://img264.imageshack.us/img264/1016/22cp7.png

At you can look in the cap is empty (no user id in u=), i want to associate the link to the userid of the member of that member profile when you enter in.

If i put $userinfo[userid] it links to the user that enter in that profile.

The code that do that is:

<if condition="$userinfo['userid'] != $vbulletin->userinfo['userid'] AND $vbulletin->bf_ugp_forumpermissions['canpostnew']">
<tr>
<td class="alt2 smallfont" colspan="$vboptions[gifts_perrow]"> <a href="gifts.php?$userinfo[userid]do=give&amp;r=$userid" rel="nofollow">Give present to $username</a> | <a href="member.php?userinfo[userid]u=$userid">Back to profile of $username</a>

Spank
01-17-2009, 01:27 AM
bbuserinfo not userinfo

if that doesn't work try

$prepared[userid]

acast
01-17-2009, 01:41 AM
bbuserinfo not userinfo

if that doesn't work try

$prepared[userid]Yes, empty with both, doesnt associate with the userid of that member profile. :(

--------------- Added 1232164083 at 1232164083 ---------------

Thanks spank, the problem was here: r=$userid" I think now is solved. I will say in a while.

--------------- Added 1232165651 at 1232165651 ---------------

It works!! Thankss for your help!!