vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Image in profile (https://vborg.vbsupport.ru/showthread.php?t=38258)

Rand M 10-18-2002 03:41 PM

Installed on v2.2.8..... so far so good!
Many thanks for the hack.

Jacko 10-29-2002 12:51 PM

i dont get anything...

when i enter the URL to the image in the "customfield" i get nothing on my getinfo template when i view a users profile..

any help at all??

Jacko 10-29-2002 08:36 PM

i un-installed this hack as it didnt work with my board.

i am using 2.2.8

anyone help me at all.. i added the info the install file told me to in member.php and added the profile field but it didnt work..

the problem was that i didnt get any images at all showing in my users profiles. but there was no errors either..!

stuck.!

DrkFusion 10-29-2002 08:38 PM

Lol, I install thi, but never actually used it, this works great on my friends board, modified it a bit, but users really like it.

-Arunan

Chris M 10-29-2002 08:40 PM

I might re-install this;)

I had problems with it the last time:(

Satan

DrkFusion 10-29-2002 08:42 PM

It would be great on your forum HellSatan, put some restrictions on it though ;) I know the members you have.

Good luck Satan ;)
-Arunan

Jacko 10-30-2002 06:18 AM

got it working on my board now.. so i installed it again.. works a treat..

cheers

Jacko 10-30-2002 06:25 AM

i have the same problem with Xelation can anyone help me please???

i followed the original install and the addon where i can add $profilepic. but now i get the custom field at the bottom and i dont want to show that field..

if i hide it i lose the picture and if i delete it i allso hide the picture...

any way round this?

Zzed 10-30-2002 09:55 AM

Quote:

Originally posted by Jacko
i have the same problem with Xelation can anyone help me please???

i followed the original install and the addon where i can add $profilepic. but now i get the custom field at the bottom and i dont want to show that field..

if i hide it i lose the picture and if i delete it i allso hide the picture...

any way round this?

In your admin CP where you create and modify the user profile fields, set the display order for the picture field to a large number like 100. This will guarantee that the picture field will always be the last one to show. ;)

alkatraz 11-17-2002 01:40 AM

Quote:

Originally posted by Xelation
ok, it works... but I cant get rid of them if I make it hidden it doesnt show up for me... if I make it viewable there are 2

I was looking for a solution for this too so I just decided to give it a shot myself and came out lucky! Here is my code below. If anyone sees anything wrong with this let me know, I'm NOT much of a programmer. =)

Code:

$profilefieldname="field$profilefield[profilefieldid]";
    if(strstr($profilefield[title], "Picture") and $userinfo[$profilefieldname]) {
      error_reporting(0);
      $img_info = getimagesize($userinfo[$profilefieldname]);
      if($img_info[0]) {
        if(($img_info[0] <= 640) and ($img_info[1] <= 480)) {
          $profilefield[value]="<img src=\"$userinfo[$profilefieldname]\">";
        }
        else {
          $xratio = $img_info[0] / 640;
          $yratio = $img_info[1] / 480;
          $factor = $xratio;
          if($yratio > $xratio) {
            $factor = $yratio;
          }
          $xsize = intval($img_info[0] / $factor);
          $ysize = intval($img_info[1] / $factor);
          $profilefield[value]="<img src=\"$userinfo[$profilefieldname]\" width=\"$xsize\" height=\"$ysize\">";
        }
      }
      else {
        $profilefield[value]="Invalid image link: <a href=\"$userinfo[$profilefieldname]\">$userinfo[$profilefieldname]</a>";
      }

    $profilepic = $profilefield[value];
        $profilefield[value] = "See below";          // or above


    }
    else {
      $profilefield[value]=$userinfo[$profilefieldname];
    }

    eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";");



All times are GMT. The time now is 09:41 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.02602 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete