vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Some users profile pictures on custom page? (https://vborg.vbsupport.ru/showthread.php?t=101878)

Wachtmeister 11-29-2005 06:16 PM

Some users profile pictures on custom page?
 
Hello,

i've setup a custom page guided by the how-to.

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:




Code:

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

$header
$navbar






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>



All times are GMT. The time now is 11:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01077 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete