Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Image in profile Details »»
Image in profile
Version: 1.00, by Zzed Zzed is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-04-2002 Last Update: Never Installs: 52
 
No support by the author.

This hack was requested by NerdNations.

Here is what you need to do to add a image field to user profiles.

That's it.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 10-18-2002, 03:41 PM
Rand M Rand M is offline
 
Join Date: Oct 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on v2.2.8..... so far so good!
Many thanks for the hack.
Reply With Quote
  #53  
Old 10-29-2002, 12:51 PM
Jacko's Avatar
Jacko Jacko is offline
 
Join Date: Mar 2002
Location: UK
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #54  
Old 10-29-2002, 08:36 PM
Jacko's Avatar
Jacko Jacko is offline
 
Join Date: Mar 2002
Location: UK
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.!
Reply With Quote
  #55  
Old 10-29-2002, 08:38 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #56  
Old 10-29-2002, 08:40 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I might re-install this

I had problems with it the last time

Satan
Reply With Quote
  #57  
Old 10-29-2002, 08:42 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Good luck Satan
-Arunan
Reply With Quote
  #58  
Old 10-30-2002, 06:18 AM
Jacko's Avatar
Jacko Jacko is offline
 
Join Date: Mar 2002
Location: UK
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

cheers
Reply With Quote
  #59  
Old 10-30-2002, 06:25 AM
Jacko's Avatar
Jacko Jacko is offline
 
Join Date: Mar 2002
Location: UK
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #60  
Old 10-30-2002, 09:55 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #61  
Old 11-17-2002, 01:40 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")."\";");
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08618 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete