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)
-   -   vB Member Photo (https://vborg.vbsupport.ru/showthread.php?t=49565)

Steve123 03-23-2003 08:06 PM

^

Thanks :)

GoTTi 03-26-2003 07:02 AM

my host removed GD or something, I need them to put it back!!!!!

sabret00the 03-26-2003 11:56 AM

is there any way to get this to display on the profile?

Velocd 03-27-2003 03:38 AM

Uh.. yeah sabret.. refer about 3 posts up to find your answer. ;)

L-Mane 03-30-2003 08:53 PM

We have the latest version of php installed and GD is in it and now I get this error

Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\WebPublic\allhiphop\community\gdresize.php on line 5

aquariumpros 03-31-2003 08:00 PM

Never mind...

Helps if I have the permissions set correctly on the "memberpics" folder!

:o

Great Hack!!!

Thanks,

sabret00the 04-01-2003 03:17 PM

Quote:

03-23-03 at 12:35 PM Steve123 said this in Post #79
Add Photo To Profile..

I dident add the approval system because i know i will never use it, but its easy to encode if someone needs it..

This is the first time ive modded a hack before, so dont scream at me if im doin it wrong :)

member.php

Just Before
PHP Code:

  
  
eval("dooutput(\"".gettemplate("getinfo")."\");");
  
}
    
// ############################### start aim message ############################### 

Add
PHP Code:

$checkphoto $DB_site->query_first("SELECT comments,visible FROM memberphoto WHERE userid='$userinfo[userid]'");
 
 if(
$checkphoto){
            
$profilephoto "<img src=\"memberpics/photo$userinfo[userid]_$userinfo[photonum].$userinfo[phototype]\">";
  
        } else {
            
$profilephoto "$userinfo[username] hasen't uploaded a photo yet.";
    }

    if(
$checkphoto['comments'] != ""){
        
$photomessage $checkphoto['comments'];     
    } 

Then in your getinfo Template put
Code:

$profilephoto<br> $photomessage
Where you want the photo to appear..

very awesome just what i needed, ok one more question, not sure if you've seen the viportfolio hack, it's wedged in beta hacks, anyway there you get the ability for every use to have their own mini gallery available from their profile, if there anyway to adapt this to enable it to let you do that?

Alex Goodspeed 04-01-2003 05:03 PM

Hi!
Thank you for this great hack! Everything works fine for me. But... Just one little mistake: after adding new photo page doesnt redirect into member profile. I allways get blank screen.
How can I solve it?

sabret00the 04-02-2003 09:20 AM

not like i've installed yet but i suggest checking your templates

Entourage 04-10-2003 07:58 AM

Well, first I wanne thank you for this great hack, the demo looks very very nice!

I only got 1 error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/sites/site1/web/forum/gdresize.php on line 5

I have vb 2.3.0, php 4.3.1 and gd 2.0 installed (check attach image)

Can someone help me out?

Greets,
Jasper


All times are GMT. The time now is 02:26 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.01150 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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