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)

Merc 05-01-2003 03:38 AM

Quote:

Today at 12:05 AM Austin Dea said this in Post #120
Merc! >:O

Make a phpinfo page and post it.

Code:

<?php
phpinfo();
?>

^ Put that into a file, name it blah.php, upload, post the link to it.

Hey Austin. ;)

You already saw, we're apparently running GD v. 1.6.2 or higher. We need 2.0. :angry:

Nickos 05-01-2003 04:07 AM

i got everything finally working, i ahd to manually do some stuff to the database but i still cant get the verify photo working, i edited the admin/index.php correctly, pverify.php is in the admin dir it just simple dosent work for me :(

dede1 05-04-2003 06:46 PM

Hi

my englisch ist bad!!!

I have chop built however a problem into the Gallerie see one the
picture not instead see one only a red cross.

If I darauf(rotes Kreuz)klicke then comes the picture into large goes
thus, what have I now still wrongly?

Here the left:

http://www.dede1.de/Board/memberlist...on=viewgallery

And with MemberAvatr get I only a white side also here the
left:

http://www.dede1.de/Board/memberlist...&action=avatar

I there which forgot or?

Cu

Dede1

Attrox 05-04-2003 09:31 PM

Very cool...I'll probably be installing this tonight. Nice idea, Velocd. :) *clicks install*

Velocd 05-06-2003 03:45 AM

Quote:

05-04-03 at 08:46 PM dede1 said this in Post #123
Hi

my englisch ist bad!!!

I have chop built however a problem into the Gallerie see one the
picture not instead see one only a red cross.

If I darauf(rotes Kreuz)klicke then comes the picture into large goes
thus, what have I now still wrongly?

Here the left:

http://www.dede1.de/Board/memberlist...on=viewgallery

And with MemberAvatr get I only a white side also here the
left:

http://www.dede1.de/Board/memberlist...&action=avatar

I there which forgot or?

Cu

Dede1

Sorry dede1, but I'm not sure where your problem exists still. :ermm:

Could you post some screenshots instead, you gave a link to your forum but it requires registration. That or provide a test member account.

dede1 05-06-2003 05:30 AM

Hi

hier test member account:

User :Tester25
Pass: Tester25

screenshots:

1.not Photo
http://www.dede1.de/bilder/Desktop.JPG

2.
http://www.dede1.de/bilder/Desktop1.JPG

Onjisan 05-06-2003 03:38 PM

Great Hack, installed and working perfectly. I have one question tho. Is there a way an admin can manually add someone's pic to the gallery?

Merc 05-08-2003 11:05 PM

Sorry for bothering you again, Velocd, but I was wondering what I have to do to eliminate the thumbnail from the Member List Gallery (I believe memberlist_photobit is used). I can't get a newer version of GD so the thumbnails simply aren't being generated; however, clicking on the broken image GIF leads me to a correctly displayed full-sized photo. Is there some way to substitute the thumbnail for a simple text link leading to the full-sized picture? It would make this hack viable for people like myself who don't have a newer version of GD installed already.

Sorry if this is a hassle, but please consider my proposal. If you or anyone else knows how to substitute the thumbnail in the Member List Gallery for an ordinary text link leading directly to the full-sized picture screen, would you please make the modifications available here?

engquist 05-11-2003 12:39 AM

thank you! I had a couple of bumps along the road, but all issues were well covered by this support thread! I'm very happy because I had no way to do this with the phpBB board I had!

subu1 05-20-2003 10:29 AM

hi,

verry nice hack, i will install and hope its work on my root server;)

Hiho Dede, ich werde mich jetzt mal dranbegeben, die roten Kreuzchen sind also Dein Problem, bin ja mal gespannt.

greetz subu1

subu1 05-20-2003 12:10 PM

ups edit no error more

subu1 05-20-2003 01:03 PM

sorry for my bad english but i have a new problem.

If i modify my picture in my profile i have a short error, looks in my attachment and in my member.php i dont have a picture but in my profile its work i see my picture

tinbin 05-21-2003 02:10 PM

Merc:
I had the same problem and i changed the memberlist_userphoto to this:
Code:

<a href="memberlist.php?s=$session[sessionhash]&action=viewphoto&userid=$getphoto[id]">
$getphoto[comments]</a>

This will make the comments a clickable link to the photo.
Then u would have to delete the $getphoto[comments] where it originally is to avoid it being displayed double

tinbin 05-21-2003 02:12 PM

BTW: i got a question:

How could i change it so that users can upload more then 1 photo of themselves?
Would that be doable?

Toogy 05-21-2003 03:01 PM

Anybody having any problems with members being logged out when they click the members link after installing this?
After I installed this, when members click on the members button they get logged out.?????
Any ideas?

subu1 05-21-2003 07:25 PM

juhu i have a new version of gd2.0 and its work, but another quetions. Who can i delete the photo's of my user?

MBV 05-21-2003 10:00 PM

help :/

in member.php i get this (when trying to login and such)

Parse error: parse error, unexpected T_VARIABLE in /home/kyugokuc/public_html/vb/member.php on line 1252

and for admin/index.php i get this when i try and access it

Parse error: parse error, unexpected '{' in /home/kyugokuc/public_html/vb/admin/index.php on line 111

plz help, im pretty sure i did it right

Velocd 05-22-2003 04:39 AM

You probably have forgotten a semicolon ";" somewhere after the ending of one of the code lines, or some other simple syntax error.

Post the code that exists around line 1252 and 111.

@subu1: There is no admin-cp built in function for deleting member photos, you will simply have to either ask the person to delete it (the easiest way, since it is then also ridden from the directory), or do it yourself (going into PHPmyadmin and deleting the user-photo data, which honestly isn't that hard either).

subu1 05-22-2003 06:07 AM

ok thxx, i delete on phpmyadmin, no Problem, but i thing ti is better when the Admin can this doing in Acp.

thxx for your Hack *click install"* yeahhhhhhh;)

Onjisan 05-22-2003 06:32 PM

*bump*

Great Hack, installed and working perfectly. I have one question tho. Is there a way an admin can manually add someone's pic to the gallery?

I know that you have to manually upload the thumbnail and the full sized image and name it corresponding to their member number.
But that is all i know to do, maybe there is a sql script that needs to be run for it to be inserted into the photo gallery. I looked through the code, but it got confusing.
Any help would be greatly appreciated thanks.

Logik 05-23-2003 05:56 PM

lord help me.. It says i need GD 2.0, or course, how would i go about installin this.. dont laugh too hard :)

LangTuDaTinh 05-23-2003 11:28 PM

>>>>> IF U HAVE IMAGEMAGICK <<<<<<

u can resize the orignal image if it's file size is bigger than the max size

in member.php looks for

PHP Code:

  if ($filename!="") {
      
// check valid image
      
if ($imginfo=@getimagesize($filename)) {
        if (
$imginfo[0]>$photomaxdimension or $imginfo[1]>$photomaxdimension) {

.
.
.
.
..
        }
        if (
$imginfo[2] != and $imginfo[2] != 3) {
            @
unlink($filename);
            eval(
"standarderror(\"".gettemplate("error_photonotimage")."\");");
        } 


replace /w this
PHP Code:

   if ($filename!="") {
      
// check valid image
      
if ($imginfo=@getimagesize($filename)) {
        if (
$imginfo[0]>$photomaxdimension or $imginfo[1]>$photomaxdimension) {
                
$image_width $imginfo[0];
                
$image_height$imginfo[1]; 
                        if (
$image_height $image_width
                            { 
                                
$sizefactor = (double) ($photomaxdimension $image_height);
                            } 
                        else 
                            {
                                
$sizefactor = (double) ($photomaxdimension $image_width) ;
                            }
                                
$newwidth = (int) ($image_width $sizefactor);
                                
$newheight = (int) ($image_height $sizefactor); 
                                
$newsize $newwidth "x" $newheight;
                                
$cmd "mogrify  -quality 80 -resize $newsize "."$filename 2>&1"
                                
exec($cmd$exec_output$exec_retval);

        }
        if (
$imginfo[2] != and $imginfo[2] != 3) {
            @
unlink($filename);
            eval(
"standarderror(\"".gettemplate("error_photonotimage")."\");");
        } 


after that go to admin option then change max file size to 500kb or more....

Velocd 05-25-2003 04:44 AM

Quote:

lord help me.. It says I need GD 2.0, or course, how would I go about installin this.. don?t laugh too hard
Heh, you'll have to go to the GD-website for help on that, for I have a hosted server and little experience on how to install PHP libraries. Maybe Zend.com, PHPBuilder.com, or Evolt.org will have some easy-to-follow tutorials.

Quote:

Is there a way an admin can manually add someone's pic to the gallery?
Manually? Yes. Here are the steps:
  1. You will have to temporarily have your photo erased, or you can create a test account, for this is the quickest way to do this. Go to your usercp -> modify photo, and upload the photo you wanted to do manually for someone else.
  2. Go into PhpMyAdmin, and run this query:
    Code:

    SELECT * FROM `memberphoto` WHERE userid='your_userid'
    Ensuring to replace 'your_userid' with your userid.
  3. Once you find the entry, edit the userid and/or comments field to that other members preference, making sure to replace the userid with their userid, not yours. Submit the changes.
  4. Run the following query:
    Code:

    SELECT photonum,phototype FROM `user` WHERE userid='members_userid'
    This time round, make sure 'members_userid' is their userid.
  5. Edit the entry, and change photonum to 1, and phototype to "jpg" if the uploaded image was a JPG, or "png" if it was a PNG.
  6. Via FTP, browse to your memberpics dirctory, and find the thumbnail for the image, which should be in the format:
    Code:

    thumb$YourUSERID_$PhotoNUM.PhotoTYPE
    Replace those variables with the members userid, photonum, and phototype.

    You now need to find the actual full-size image, located in the same directory prefixed with "photo", and make the same similar changes to it.
  7. All should be good to go. If you were doing this under your account, you may want to re-upload your image if you had overwritten it.

subu1 05-25-2003 06:29 AM

hi,

can everybody tell me why my signature Hack, work now with 256 color, after ich install GD2.0 (have install a new bundel PHP 4.3.1 with new Apache and mysql)

before install this bundel my signature Hack works with more Color's.

Look in my signature *cry*

Velocd 05-26-2003 04:39 AM

You need to replace whenever you see ImageCreate function, with the ImageCreateTrueColor function.

subu1 05-26-2003 05:18 AM

thxxx Velocd, it works great :-)

Nickos 05-27-2003 03:30 PM

ok i just had a stupid idea... maybe my admin control over the pics is not there because im running 2.2.9? if i turn verify photos, everything works fine, people can upload their photos and what not and everything is displayed ok

mbaskett 05-29-2003 07:08 PM

I love this hack.. have it up and running on our dev site.. wish I could show you all, as I've tweaked it (like we do with all things on our site) and am currently incorperating it into our member of the week section... (auto rotation)

Merc 05-31-2003 12:12 AM

Quote:

05-21-03 at 11:10 AM tinbin said this in Post #133
Merc:
I had the same problem and i changed the memberlist_userphoto to this:
Code:

<a href="memberlist.php?s=$session[sessionhash]&action=viewphoto&userid=$getphoto[id]">
$getphoto[comments]</a>

This will make the comments a clickable link to the photo.
Then u would have to delete the $getphoto[comments] where it originally is to avoid it being displayed double

Thank you SO much. I really appreciate it.

Sulaiti 05-31-2003 12:13 AM

Great I install it and make it an Arabic version

Thanks

insanctus 06-09-2003 05:18 AM

I moved my page recently now I get this when try to upload a picture.

Any Ideas?

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/*****/public_html/forums/gdresize.php on line 9

Vivi Ornitier 06-12-2003 01:16 AM

I keep gettin a error.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/squareul/public_html/forums/gdresize.php on line 5

when people are tryin to upload their pics. It gets into the photo album but with just a big X.

I'm using 1.3 and line 5 in that file would be

if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);}

I have gdresize and everytghing. This hack worked perfectly on my old server but i recently moved to a newer one but with the same php 4.3.1 and i just get that error. Can someone help me out herrE?

JamieK18T 06-12-2003 05:28 PM

does someone want to post the code needed to allow users to add multiple pictures? :)

bandersen 06-18-2003 09:28 AM

Thank you for a nice hack. I have installed with no problems.

Looking forward to the multiple uploads! Let me know if you need a tester...

irn-bru 06-26-2003 09:37 PM

I installed this on a other server no problem.

I am trying to install on another server that dont support jpg it works ok with png buth I would rather jpg cause the file size is small and its a more common format.

Any Help Please..on changeing some files to make it work?

GD Support enabled
GD Version bundled (2.0 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled

DR?@M W?@V?R 06-27-2003 01:43 PM

*bumporoonie*

Rebel38 07-02-2003 12:28 PM

Quote:

03-23-03 at 11: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..


Thanks Steve123, I have been waiting for a long time for someone to come up with some code to do that,.
Is there a way of only having the thumbnail pic in the profile instead of the full pic?

Thanks again
Rebel38

mackers8923 07-02-2003 02:16 PM

I have just checked with my host and they have said that GD is installed on my server but that it is an earlier version.

They also said that I can't have it upgraded because the earlier version allowed for more file types.

Looks like I'll have to wait around until they decide to upgrade the system.

Tenpit 07-04-2003 12:57 PM

Quote:

07-02-03 at 04:16 PM mackers8923 said this in Post #158
I have just checked with my host and they have said that GD is installed on my server but that it is an earlier version.

They also said that I can't have it upgraded because the earlier version allowed for more file types.

Looks like I'll have to wait around until they decide to upgrade the system.

I have an earlier version of GD also. I changed a couple of bits in gdresize.php and fingers crossed, so far it seems to work.

I offer no guarantee's, but if it helps someone my gdresize.php is attached.

mackers8923 07-04-2003 10:41 PM

Thank's a lot. I'm just going to upload it now and give it a go!!!!

Fingers crossed<><><><><><>


All times are GMT. The time now is 11:40 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.01714 seconds
  • Memory Usage 1,867KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_php_printable
  • (7)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
  • (40)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