Log in

View Full Version : Some users profile pictures on custom page?


Wachtmeister
11-29-2005, 06:16 PM
Hello,

i've setup a custom page guided by the how-to (https://vborg.vbsupport.ru/showthread.php?t=98009&highlight=custom).

Now i want to print out some users actual profile picture. I had the idea to do this with

<img src="$profilepic_of_userid100">

I also would like to show userid100's reputation with something like

<img src="$reputation_of_userid100">

Is this possible somehow? Are there variables i can use in custom pages?

Many thanks, Wachtmeister

merk
11-29-2005, 09:09 PM
fetch_userinfo() will do what you want.

Check out the API documentation for that function, it allows you to "join" the customprofilepic table to get details of the profile picture.

As for reputation, im pretty sure its already available, but you might need to run it through a function to get the pips properly

Wachtmeister
12-08-2005, 09:02 AM
Thanks :) I'm sure it is a bit too difficuilt for me :(

merk
12-08-2005, 09:40 AM
If you post the code for your custom page ill take a look for you.

Wachtmeister
12-13-2005, 01:54 PM
Very friendly :)

This is my template:





$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</title>
</head>
<body>

$header
$navbar






[b]somewhere here should appear my content.

< img src ="image of user #100">
< img src ="image of user #100 reputation">
User #100 location
User #100 join date
User #100 other details (homepage, msn, icq, etc.)

i would like to know how i can show these details. maybe you can give me a hint...







<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"

align="center">
<tr>
<td class="tcat">Die fleissigen Helfer von Webgurus.de</td>
</tr>
<tr>
<td class="alt1">

<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />

</td>
</tr>
</table>

$footer
</body>
</html>