vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   extern userpics (https://vborg.vbsupport.ru/showthread.php?t=21704)

Spocky 07-01-2001 02:40 PM

Step 1:
-------
create a transparent image 1x1 pixel and save it as pic.gif
upload it in the root-dir of your forum (where index.php is)

Step 2:
-------
In Admin-CP
->User profile fields
-->Add
--->Title "userpic - 60x60 gif"
--->Description:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx
Your imagename has to end with pic.gif !
Your imagesize has to be 60 x 60 px !
Example:
Image url: http://myserver/mypic.gif
Use: http://myserver/my (url without pic.gif )
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx

Step 3:
-------
Find in postbit and announcebit template:

Code:

<smallfont>$post[usertitle]</smallfont><br>
 $post[avatar]<p>

insert between the lines:

Code:

<smallfont>$post[usertitle]</smallfont><br>

<!-- extern userpic -->
<img border="0" src="$post[field5]pic.gif" width="60" height="60" alt="$post[username]"><br>
<!-- /extern userpic -->

$post[avatar]<p>

--------------------------------------------------------
in "[field5]" the "5" depends on your other "User profile fields"
they are counted from 1 to x ..
--------------------------------------------------------

what happens:
if there is no link in the User profile field "userpic":

=> a transparent image with 60x60 is "displayed"

if images are not 60x60 sized:
they are diplayed with 60x60 in any case and the tables don't get out of order

that's all folks

spocky


All times are GMT. The time now is 11:41 AM.

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.01219 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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