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)

mackers8923 07-04-2003 10:52 PM

Wey Hey,

Tenpit you are a "Star" this hack is now working 100% for me and my members. If there is anything you need a hand with code or installing wise let me know. I owe you big style....

Thanks again

Velocd 07-06-2003 01:20 AM

If your host is too lazy to upgrade to GD2, I really suggest getting a new host. If you have GD installed, it also means you have an old PHP, for GD2 is shipped with PHP4.3 and above. Though, as I've found out, you must configure php.ini and uncomment the GD line in order to actually enable GD2 for PHP4.3 and greater.

For an inexpensive and incredibly reliable host, I recommend www.vervehosting.com, which offers latest GD, and always updates to the newest version of software.

Tenpit 07-06-2003 08:56 AM

Quote:

Today at 03:20 AM Velocd said this in Post #162
If your host is too lazy to upgrade to GD2, I really suggest getting a new host. If you have GD installed, it also means you have an old PHP, for GD2 is shipped with PHP4.3 and above. Though, as I've found out, you must configure php.ini and uncomment the GD line in order to actually enable GD2 for PHP4.3 and greater.

For an inexpensive and incredibly reliable host, I recommend www.vervehosting.com, which offers latest GD, and always updates to the newest version of software.

Problem is the hosts that use Ensim for their control panels. To retain full support from Ensim they cannot install php except in the form of Ensim patches and upgrades.

As of today, Ensim have still not released a patch to upgrade php with GD2 support.

joeboo 07-13-2003 08:31 PM

I keep getting this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/blackmag/public_html/forums/gdresize.php on line 5

And yes, i do have the latest GD Library.

BuffyWorld 07-14-2003 06:54 AM

I'm having alot of problems with people posting OTHER things in the Member Gallery. In the next release, if there is going to be one. Can you make it so a moderator/admin can remove a user's photo from the database.

And of course mod/admin to be able to add pictures for other users would be cool also.

Thank you.

Rebel38 07-19-2003 01:43 AM

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..

Hi, does anyone know how to make this piece of script pull the thumbnail pic instead of the full size pic in the user profile?
thanks guys
Rebel38

Cal Poly Forum 07-19-2003 06:21 PM

edit: I don't know why my forum categories have been duplicated (from two to FOUR) after this hack. :ermm:

Rebel38 07-23-2003 10:35 PM

bump....

pjgoncalves 07-24-2003 01:11 PM

Great hack! tks :)

I have a prob, when in usercp i click on 'Edit Photo' i get the page saying:

Approval Status:
When your photo becomes verified by an administrator, its status will be shown here. If your photo is disapproved, please check it for content to ensure it is appropriate.

In AdminCP i have 'Use Approval System' off.. what am i missing? :|

/edit

the last prob is solved, it was missing a template :D

Now i have another..

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home-hosting/ultimate-accounts/sh.ultimate.pt/pg/public_html/vbb/gdresize.php on line 5


Any tip?

tks!

/edit

i hadnt support for jpeg, compiled with jpeg ad works now :banana:

Areku 07-24-2003 09:36 PM

COngrats Velocd, this hack rocks!

However it conflicts with the TODAY/YESTERDAY timestamp.

https://vborg.vbsupport.ru/showthrea...oday+yesterday



Can any1 help me sorting this out?


When any1 ups a pic, it displays: "added: today at,"

and it's pretty ugly.

Since I use this timestamp everywhere else, I can't remove the "at"....

Ideas?

Thanks!

Areku 07-25-2003 06:03 PM

Also,

I get an error whenever I try to SAVE without checking the boxes of the pics I want to disapprove....

Ideas?

Vb2.3.0

Warning: Variable passed to each() is not an array or object in /home/virtual/site1/fst/var/www/html/forums/admin/pverify.php on line 92

Rebel38 07-27-2003 12:41 AM

Quote:

04-14-03 at 10:23 PM iwearnosox said this in Post #99
I wish there was a way to hack this more into a picture engine for user profiles..
Quote:

[i]04-17-03 at 08:16 AM Velocd

I'm currently developing such a system for my site, but more than likely I'll be releasing it on vB.org. ;)
Velocd great hack mate, did you get any further with coding this hack to show the pic in the users profile?
thanks
Rebel38

Noel 4 DMB 07-27-2003 02:01 PM

VelocD:

This hack seems to be great, but im having a small problem here that I cant seem to fix:

Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /home/virtual/site1/fst/var/www/html/dreamers/gdresize.php on line 22

I just downloaded the latest GD, and uploaded the files to the /etc/gd directory. I ran the commands in the install file and everything seemed to work fine. There weren't any errors and each command line (configure, make, make install) each apparently did what they were supposed to. But when i went back to try out the hack, the uploading didn't work.

Right now, everything but the uploading of the photo works. Do you have any idea what ive done wrong? Should I install GD into another directory? Thanks for all your help, this hack will be great if I can get it working!

Velocd 07-28-2003 12:27 AM

Quote:

Any suggestions? I feel like ive quadrouple checked the templates and coding. You can view it here

The photo gallery works great, the avatar list is just blank white.
lol...

I'm not sure how that link for the avatar list got there, but that is not part of my hack, but instead another hack. I must have accidentally slipped it in there.. or something. Though, its been ages since I released this hack.. I wonder how I just noticed this now.

Quote:

Velocd great hack mate, did you get any further with coding this hack to show the pic in the users profile?
thanks
Rebel38
I'm almost at near completion of that script, but my plans for whether I am going to release the hack on vB.org are still vague.

Noel 4 DMB 07-28-2003 01:09 AM

Quote:

Today at 02:27 AM Velocd said this in Post #174
lol...

I'm not sure how that link for the avatar list got there, but that is not part of my hack, but instead another hack. I must have accidentally slipped it in there.. or something. Though, its been ages since I released this hack.. I wonder how I just noticed this now.



I'm almost at near completion of that script, but my plans for whether I am going to release the hack on vB.org are still vague.

I hope you do, that sounds like an awesome hack.

Would it be worth while for me to look at your old avatar listing hack and try to merge, or would it be too hard for someone with very little coding experience?

ryans 07-28-2003 05:48 AM

Quote:

07-25-03 at 12:03 PM Areku said this in Post #171
Also,

I get an error whenever I try to SAVE without checking the boxes of the pics I want to disapprove....

Ideas?

Vb2.3.0

Warning: Variable passed to each() is not an array or object in /home/virtual/site1/fst/var/www/html/forums/admin/pverify.php on line 92


I get the same error message. Also my avatar list is blank white. running 2.3.0.

otherwise works great!

Areku 07-28-2003 08:27 AM

Yes, in addition, for those of us who don't have the avatar hack you mention in the credits... we get the option but the page is blank, indeed.

However I'd like to know how to dissaprove photos that don't deserve to be approved while the error is fixed(?)


velocd.... plllllllllllllzzzzzz! :)

Rebel38 07-28-2003 11:22 AM

Quote:

Today at 12:27 PM Velocd said this in Post #174
I'm almost at near completion of that script, but my plans for whether I am going to release the hack on vB.org are still vague.
Velocd, if you dont release it on vb.org, is there any chance of buying from you? I really really need this hack badly.
thanks mate
cheers
Rebel

Velocd 07-28-2003 04:22 PM

Quote:

Velocd, if you dont release it on vb.org, is there any chance of buying from you? I really really need this hack badly.
That is how I plan to release it. ;)
I'll take note of your name, and PM you later down the road when I get near finishing.

Quote:

However I'd like to know how to dissaprove photos that don't deserve to be approved while the error is fixed(?)
I'm not sure what's up with that each() error. It doesn't seem to render the script useless, as stuff still processes.

I'll take a look at it right now, and when fixed I'll post an update. (as well I'll fix that broken link to the avatar-hack).

Areku 07-28-2003 04:32 PM

Thanks velocd, we'll wait for the fix and I'm also interested in the payed add-on.

Velocd 07-28-2003 04:52 PM

Ok, I've uploaded version 1.4a, with the two minor fixes.

But, I'm not sure if I've fixed the error in pverify.php. I run vBulletin 3 Beta 4, and don't have my hack installed anymore, so I couldn't test to make sure I coded it correctly.

So Areku, or anyone else, if you could please test if out for me a.s.a.p, to make sure that everything works fine with the verification. ;)

I'm sorta in a bit of a hurry, because I have to leave soon, and wont be back until later tonight.

Areku 07-28-2003 06:28 PM

I still keep getting it, on the same line.

Any workaround meanwhile?

TonTon 07-28-2003 07:08 PM

Is it possible to make this picture go into the Get info bit.

Velocd 07-28-2003 08:44 PM

Quote:

I still keep getting it, on the same line.

Any workaround meanwhile?
Whoa.. are you sure you uploaded the new pverify.php file? Clear your cache and download the zip as well, since there is always this cache-glitch up with attachments on this forum.

I used a different method, so you shouldn't be getting a "each()" error. If you are getting a different error, please post it.

Quote:

Is it possible to make this picture go into the Get info bit.
Look through this thread, somebody posted an add-on for making it show up in the get-info page.

Areku 07-28-2003 10:17 PM

U were rite! Damn cache! I even compared dates before uploading cached 1.4 and they were still different...

Anyway, now 1.4 is on place and I get a different error:

Code:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL:
                                            SELECT id
                                            FROM memberphoto
                                            WHERE visible!=1
                           
mysql error: Unknown column 'id' in 'field list'

mysql error number: 1054

Date: Tuesday 29th of July 2003 01:18:03 AM
Script: http://www.domain.com/forums/forums/admin/pverify.php
Referer: http://www.domain.com/forums/admin/p...?action=verify

I'm not sure why is there a second "FORUMS" on the first (script) URL...

Rebel38 07-29-2003 01:09 AM

Quote:

Today at 04:22 AM Velocd said this in Post #179
That is how I plan to release it. ;)
I'll take note of your name, and PM you later down the road when I get near finishing.


Thanks Velocd , much appreciated mate :)

Cheers
Rebel

Velocd 07-29-2003 02:02 AM

Um, Areku, change this:
PHP Code:

                        SELECT id
                        FROM memberphoto
                        WHERE visible
!=

To:
PHP Code:

                        SELECT userid
                        FROM memberphoto
                        WHERE visible
!=

And tell me if it works ;)

ryans 07-29-2003 04:49 AM

is there any way to have it resize images to a certain width? I saw a hack on here that said it would decrease the size but I was not sure if that was the size in file size or the actual image size?

thanks

Areku 07-29-2003 08:34 AM

Quote:

Today at 04:02 AM Velocd said this in Post #187
Um, Areku, change this:
PHP Code:

                        SELECT id
                        FROM memberphoto
                        WHERE visible
!=

To:
PHP Code:

                        SELECT userid
                        FROM memberphoto
                        WHERE visible
!=

And tell me if it works ;)


Velocd,

Now SQL error disappeared, but photos are NOT neither approved nor disapproved...

They remain there... in the admin environment.

Velocd 07-29-2003 04:40 PM

Alright Areku, hopefully this change will fix it.

Replace all of this in pverify.php:

PHP Code:

    $uv_photos $DB_site->query("
                        SELECT userid
                        FROM memberphoto
                        WHERE visible!=1
                 "
);

    while(
$uv_photo $DB_site->fetch_array($uv_photos)) {

        
$id $_POST['photouse']["$photo[id]"];

        
$DB_site->query("
                    UPDATE memberphoto
                    SET visible='1'
                    WHERE userid='
$id'");

    } 

With:
PHP Code:

    $uv_photos $DB_site->query("
                        SELECT userid AS id
                        FROM memberphoto
                        WHERE visible!=1
                 "
);

    while(
$uv_photo $DB_site->fetch_array($uv_photos)) {

        
$id $_POST['photouse']["$uv_photo[id]"];

        
$DB_site->query("
                    UPDATE memberphoto
                    SET visible='1'
                    WHERE userid='
$id'");

    } 

Sorry for the trouble, if I could debug the code myself I would.. but as said I don't have this hack installed, being I am running vB3. ;)

Velocd 07-29-2003 04:43 PM

Quote:

is there any way to have it resize images to a certain width? I saw a hack on here that said it would decrease the size but I was not sure if that was the size in file size or the actual image size?

thanks
There should be an option in the admincp to set the dimensions for resize. That option will resize both width & height though. Meaning, if you enter the value "115", it will resize the image down to 115x115.

Areku 07-29-2003 06:39 PM

Velocd,

Sorry m8, i get exactly the same results: no error messages, both the unchecked and the checked pics remain on the VERIFY screen.

Areku 07-31-2003 08:50 AM

Btw, isn't anyone with vb 2.3.0 running this hack?

Can any1 send me his/her pverify.php PRIOR to v1.4a?

Thanks!

Velocd 08-01-2003 02:44 PM

I have changed the version to vB Member Photo 1.3b, since the problem with pverify.php is just a hassel since I can't really debug it if I don't have vB2 installed.

So the original pverify.php is in 1.3b. ;)

Silentscorn 08-09-2003 01:01 AM

What tables does your hack edit in the database? I installed it and all of a sudden my pop up pm notification thing doesnt work, I uninstalled the hack and used your page there to supposedly reverse the changes in the database, but Im still having the pm notification prob.....

engquist 08-23-2003 07:35 PM

I installed this hack about 3 months ago, so I'm running the version from then.

It is truely wonderful and I thank you Velocd!

I have one thing I'd like to change on it if anyone knows how to code it.

I use the verify pictures system. when I want to disapprove a photo I have to go into phpMyadmin and delete it from the database and then go into the server, look at each member photo (I have like 100 +) and then delete the unapproved ones.

if an option to delete and disapprove a photo can be added via the admin CP, I would be eternally grateful.

all I need is just the lines of code to add/overwrite and the files to do it to.

Thank you all for your hard work on this hack! Even if this change is never made, it's still an awesome hack that the members of my forums really enjoy!

Neptun 08-28-2003 05:19 PM

I have this problem with your hack when i klick in the userlist on Photo Galery:


Warning: Division by zero in /kunden/cool-world.at/board/admin/functions.php on line 121


please help me ;)

GamerzWorld 09-01-2003 01:47 PM

http://forum.gamerzworld.net/memberl...on=viewgallery . The page does not appear here or it does not appear in admin cp :(

GamerzWorld 09-02-2003 08:30 PM

Please help

Nebby 09-08-2003 01:01 PM

i get this;

Code:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/nebby/htdocs/vb/gdresize.php on line 9
EDIT: i've checked the folder, and the pics are uploading fine, it's just i get that error, and it's not showing in the gallery.


All times are GMT. The time now is 09:56 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.04316 seconds
  • Memory Usage 1,876KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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