View Full Version : vB Member Photo
Velocd
03-02-2003, 10:00 PM
vB Member Photo
by Velocd
This hack, as well all my other vB2 hacks, I no longer provide support for (being I run vB3 and it's too much hassel to debug vB2). When vB3 Release Candidate comes out, by request I might convert some of my hacks.
Updates:
Latest update was version 1.3b on 08.01.03.
Description:
It's been ages since my last hack, due to my lack of time for coding lately. This feature here though is one I developed for my forum about a week ago, and just recently completed making the instructions for it so I could release it on vBulletin.org.
Just as the name implies, this hack will allow your members to upload a photo of themselves (or whatever you allow), then that photo will be stored in a directory of your website. In addition to just the photo, using the GD2.0 Library, thumbnails are generated corresponding to each members photo and placed inside the directory. A new link via the memberlist nav page will then be able for access to view these images all organized neatly in a photo gallery.
In addition to just this, there is a verification system integrated with the ACP for easy checking of images the members upload, before they are placed in the photo gallery.
The main reason I developed this hack is because all the other photo gallery hacks are pretty.. well, ineffective.
Features:
Utilizes GD2.0 to automatically generate thumbnails for your uploaded images
Organized photo gallery with a very easy-to-browse interface
Verification system allows efficient methods of regulating what is shown in the photo gallery
A wide variety of customizable options via the Admin CP
Requirements/Restrictions:
GD2.0 Library is absolutely needed, which comes pre-installed with the latest PHP version, 4.3.0.
This script does not support multiple-image uploads, and I will not be releasing a version of this hack does!
Because the GD library does not support the GIF image format, the photo gallery does not either. The only images that can be uploaded are PNG and JPG. (I hardly think this will be an issue for the most of us) ;)
Installation:
Upload install_photo.php to your admin directory, and run it through your browser. All instructions for this hack are listed in there.
After the hack is installed, go to your "admin cp -> options" page and set the member photo gallery options to your own preference.
Screenshots:
Refer to the next several posts.
---------------
If you use this hack, please remember to click install! :p
Velocd
03-02-2003, 10:29 PM
AdminCP Options:
Velocd
03-02-2003, 10:30 PM
Admin CP Verify Page:
Velocd
03-02-2003, 10:31 PM
Usercp Edit Photo [part 1]:
Velocd
03-02-2003, 10:32 PM
Usercp Edit Photo [part 2]:
Velocd
03-02-2003, 10:32 PM
Usercp Edit Photo [part 3]:
Velocd
03-02-2003, 10:33 PM
Memberlist Gallery:
Velocd
03-02-2003, 10:34 PM
Viewing of the image through the gallery:
Velocd
03-02-2003, 10:39 PM
Ack, I can't forget credits! =falls over=
Credits for this hack go to Kier, since I used some of the code structure of his "Save avatars as files" hack in mine, as well to Hwulex and his "Avatar Gallery Hack" for the same reason of using some of the code structure, and the asthetics of the photo gallery. ;)
NuclioN
03-02-2003, 11:17 PM
This looks very good Velocd and i'll give it a try but i saw:
$cpnav[8]="#1C5780";
and this is a riddle. I've installed two other hacks that add this and by the second one i ignored it and left this part because there was a line like that already. So my question is if this is there, can i ignore that part of the installation or do i have to change numbers etc?
Velocd
03-02-2003, 11:29 PM
Since it is just an array, if that already exists all you have to do is go up the numbers until you reach one that does not exist in the array, and place below it:
$cpnav[x]="{_secondaltcolor}";
Where 'x' signify's the number that is next in line. Then in the usercpnav-template, make sure you change the value said in the instructions to this value.
You don't want to avoid this step unless you don't care about cosmetics.
NuclioN
03-02-2003, 11:39 PM
Ok thx. :) I know there are others with this problem so it's good to catch this right away. I'll test it later this day.
insanctus
03-03-2003, 12:03 AM
Very nice hack ... I added it in about 10 minutes start to finish.
~ clicks install.
insanctus
03-03-2003, 12:07 AM
If you want to see a live demo.
http://sanguinox.com/forums/memberlist.php?s=1&action=viewgallery
Please remember mine is a vampire site.... But thought maybe a demo be helpfull.
Xyphen
03-03-2003, 12:18 AM
very very nice, i'll install it later on...
Vivi Ornitier
03-03-2003, 12:25 AM
very very very nice!!!! i was waitin on somehin like this FOREVER!!! Is there an option to make it so u don't have to verify the picture?
Razor
03-03-2003, 12:47 AM
Yeah. You can turn the option on and off in the admin cp.
afterlab
03-03-2003, 01:26 AM
Good job. I will be looking into customizing it towards my forums. Thanks for the release, Velocd.
GoTTi
03-03-2003, 01:55 AM
installed and got error:
i am aslo not fully understanding this instruction:
Make sure those $cpnav[] elements correspond with how your cpnav is configured, like what you did in the previous steps.
;/ 1 more problem i noticed, it is not creating a thumbnail in the folder...it does do the images though...so when lookin @ the memberlist.php page, there is just a X image in the list...clicking the image goes to the uploaded image.
Why isnt it making thumbnails for me?
Boofo
03-03-2003, 02:11 AM
The error is because either your host doesn't have GD installed on the server or the version they do have installed (if they do) is earlier than GD2.0.
Velocd
03-03-2003, 02:29 AM
Yup, please read the instructions first Gotti, which explain that GD Library 2.0 is required in order for the thumbnails to work.
Tell your host to install it, from here:
http://www.boutell.com/gd/
Vivi Ornitier
03-03-2003, 02:31 AM
this installation instrcution for GD is probably the most convuluded and most confusin thing i have ever read. How am i suppose to install this? Does my server admin have to install this ++++? Cause i definitely don't have a clue wat it's talkin about
Velocd
03-03-2003, 03:02 AM
If you have paid hosting, then contact them and ask them politely to install it. If the server is yours, then.. well, I would either find an easier documention somewhere on the net to work by, or ask a friend or someone to install it for you.
It might even be easier to just simply upgrade to the latest version of PHP, which comes preinstalled with it.
joeboo
03-03-2003, 03:54 AM
Very nice, i might implement this in the store hack :) Cheers Velocd
Can there be multiple uploads ?
Meaning to say a member can have several images to his/her name ?
Also would it be possible to add on something to the postbit under the avatar and name of a member ( perhaps a drop down list ) to show his/her pictures ?
:)
Velocd
03-03-2003, 12:35 PM
Sure, those features are possible, but that is beyond what I needed therefore I did not considering implementing them. This is a simple but efficient photo-gallery hack, not a personal Deviant Art. If you want to hack it yourself to implement such features, feel free to. ;)
Oh , tot i'd just ask , cos those would be the features i really need :(
I would love to hack it further but sad to say , i have no knowledge when it comes to coding such things at all , was hoping you could implement these features :(
But its a great hack anyways as it is....i'm sure many would find it handy in their forums too :)
VampireMan
03-03-2003, 01:40 PM
If this doesnt get the HOTM award i will very very suprised, i installed this in less than 10 minutes with no problems at all, my memers absolutly love it ( 5 mins ago they were going on about how great it is).
Well Done , Brilliant Hack...
Clicked install
ULTIMATESSJ
03-03-2003, 02:26 PM
heh nice hack, similar to a image gallery i was working on, a good addition would be to switch off the GD mode on the hack, and for people to be able to add thumbnails this way.
Dean C
03-03-2003, 03:57 PM
Finally a well-thought through and finished gallery hack. Shame we had to wait til the start of the vb3 era for it hehe. Excellent hack Velocd i must say. Must have taken some time to work on this but it is coded extrememly well. Only downfall for me is the fact it needs GD. Could you set the dimensions of the image in the ACP options and then just use these dimensions as width and height values in the img tag used to show the image. So it selects the image and then ouputs it and you stick a height and image tag in there and then BANG.. No need for GD? :D
Only other thing that would be nice is to search for a photo by criteria. Have a limit per page on photos. And have an A-Z link list at the top...
Other than that it's absolutely fantastic Velocd and i look forward to seeing any modifications you may choose to make based on my ideas hehe
Regards
- miSt
Velocd
03-03-2003, 04:10 PM
I'll take into consideration a non-GD version, though it will be less convienant in operation than the current version. I recommend just trying to get GD installed, by asking your host, since it is very useful.
Have a limit per page on photos
This is available via the Admin Cp Options on the Gallery hack. :p
As for those other suggestions you had Mist, I'll also consider them in the next version.
Thanks for all the comments everyone ;)
Dean C
03-03-2003, 06:00 PM
GD is good but it's always hard to persuade your host to install it (in my experience)
I look forward to the future release :p
- miSt
Great hack, I'll be installing this.
Thanks for sharing :)
VampireMan
03-03-2003, 09:06 PM
easy way to get them to install GD , tell them your concerned about the buffer overflow exploit .. that made me upgrader straight away ;)
Velocd
03-04-2003, 12:24 AM
Either that or say you'll plot a massive boycott against them if they don't install GD. That should spark their interest. ;)
Just kidding of course. My host, Vervehosting.com, has always been very gracious to my requests when I ask them to install some kind of PHP Library.. so I would try just asking first. I suppose it could depend how much money you are paying per month for your host, but I would suspect if it is $15 or greater they should comply with your request, if they want to get good feedback from their clients.
BTW: If any members have this installed and wouldn't mind if I add it to the first post under a section for demo's, please post your link in this thread, or PM me, so I can do so.
GoTTi
03-04-2003, 02:51 AM
Originally posted by Velocd
Yup, please read the instructions first Gotti, which explain that GD Library 2.0 is required in order for the thumbnails to work.
Tell your host to install it, from here:
http://www.boutell.com/gd/
I read the instructions, and I have recent version of PHP...
How do i check if this is installed on my server has this installed?
I use Cpanel on my admin host. Would I look in my PERL Scripts Installed, which I think tells me all options and extras installed on the server.
Velocd
03-04-2003, 05:17 AM
Create a PHP file that contains only the following:
<?php
phpinfo();
?>
Upload it to your server, than run it through the browser. There should be a section for the GD Library where you can check on the stuff. Make sure things like JPG and PNG are enabled.
KJ_innit
03-04-2003, 02:11 PM
sorry if i sound like a dumbass, but will this work with 2.2.9?
Razor
03-04-2003, 02:27 PM
Velocd asked me to install it and test it out on my test forum, which runs 2.2.9, and it ran perfectly fine.
Velocd
03-04-2003, 02:34 PM
This hack should work from any 2.2.x and greater versions.
Just remember for this version you must have the GD Library 2.0 installed, I'm only repeating this again since I've recieved some PM's from some people still stating they recieve those GD errors.
KJ_innit
03-04-2003, 03:09 PM
excellent, thanks very much. i've sent a mail to my server people, just waiting to see if they've installed it yet :)
thanks again.
gopherhockey
03-04-2003, 03:26 PM
I have GD installed on my server - however, phpinfo is stating this as the configure command:
'./configure' '--with-apxs=/usr/local/www/bin/apxs' '--with-config-file-path=/usr/local/www/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--prefix=/usr/local/www' 'i386--freebsd4.4'
I assume the '--without-gd' part means I'm SOL, unless I find a way to re-install PHP.
I have root access - it is an Interland virtual server.
Dean C
03-04-2003, 05:11 PM
There's further information about gd further down the page ^
gopherhockey
03-04-2003, 05:15 PM
I still don't see anything that specifically answers my question though. I know I can request it to be installed, but I need to be sure what I'm asking.
WHen I go into (what is called vinstall on my server) - i can see that GD is installed - the library and the app.
PHP isn't using the "option" though. Do I simply ask them to re-install PHP with that option turned on?
With my host, if I am not as specific as posisble with them they won't help me - they will look and see that the library is installed and tell me I'm on crack :ermm:
Velocd
03-04-2003, 07:14 PM
Tell them that GD Library according to PHP Info page is installed but it not enabled according to that command line:
'./configure' '--with-apxs=/usr/local/www/bin/apxs' '--with-config-file-path=/usr/local/www/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--prefix=/usr/local/www' 'i386--freebsd4.4'
This should be specific enough to have them look into it and fix the problem.
gopherhockey
03-04-2003, 07:24 PM
Perfect - that worked. Hope that helps anyone else that might have the same issue as well...
gopherhockey
03-04-2003, 11:34 PM
I may be missing something, but is the system supposed to send an email when the verficiation option is turned on?
I see them in the Verify section in the admin cp, but never received an email. All other emails from the system are working just fine.
Then again, I don't know if emailing the admin was a built-in option?
I'd hate to have photos waiting for verification for too long..
--
Also, when editing a photo it gives me the "your photo will not appear... " message again, even though it isn't really re-sent to the admin for re-verification.
Perhaps the edit should just say "your photo has been edited"
gopherhockey
03-04-2003, 11:40 PM
Would it be possible to have a link to the members photo show under the author area when viewing posts? Perhaps just above or below where the avatar is displayed...
Lots of neat options with this. Nice!
GoTTi
03-05-2003, 12:38 AM
ight, here is ss of the GD section in my PHP info.
It is in there...any ideas?
It says 1.6.2 or higher on version...should it say something else?
gopherhockey
03-05-2003, 12:52 AM
I tried this on 2 of my systems - one was just like yours, which is not version 2.0 or better, so it didn't work. The other says this in the gd info:
bundled (2.0 compatible)
- that one worked just fine.
I have since asked my first system to help upgrade their version.. but I seriously doubt the will. :lick:
Velocd
03-05-2003, 01:22 AM
Da GoTTi, you must either have a version that states 2.0 or higher, or as gopher just said "bundled (2.0 compatible)", which just means he's running the latest version of PHP which comes pre-installed with it.
Any version of GD below 2.0 will not work.
Gopher, I noticed a few bugs you mentioned in your post #47, and will be updating the hack shortly.
Velocd
03-05-2003, 03:11 AM
The zip has been updated with version 1.2, with the added file of update1.2.txt. This small update basically fixes an issue with submitting only your comments field, but leaving your photo field blank, and it giving you a verification notice.
Basically the comments field is not verified, only the photo is, since I think having to verify the comments field is going alittle out of bound.
I may be missing something, but is the system supposed to send an email when the verification option is turned on?
I see them in the Verify section in the admin cp, but never received an email. All other emails from the system are working just fine.
Then again, I don't know if emailing the admin was a built-in option?
I'd hate to have photos waiting for verification for too long..
You seemed to be quite confused on how this works. First of all, there is no email sent to you. Via your index page of admin cp, when first entering, if you have received new unverified photos to your gallery there is a small notice in the upper left corner of the page notifying you how many unverified photos there are (hence the file edits to admin/index.php). If a member submits a photo, you will get no email, you simply have to be sure to check the admin cp regularly and then go to the pverify.php page to approve them.
ricoche
03-05-2003, 08:51 AM
Very nice hack! Works well.
Thanks very much,
Ricoche
Cheffe
03-05-2003, 12:51 PM
I got the following warning
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1020
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1024
:confused: :confused: :confused:
gopherhockey
03-05-2003, 01:16 PM
Originally posted by Velocd
You seemed to be quite confused on how this works. First of all, there is no email sent to you. Via your index page of admin cp, when first entering, if you have received new unverified photos to your gallery there is a small notice in the upper left corner of the page notifying you how many unverified photos there are (hence the file edits to admin/index.php). If a member submits a photo, you will get no email, you simply have to be sure to check the admin cp regularly and then go to the pverify.php page to approve them.
Yea, I had a feeling there wasn't an email sent but wasn't sure - I didn't see the notice in admin cp, but I'll look closer next time.
Anyone want to take a stab at adding email to this? I like how photopost works, it sends an email that a new photo needs verification and includes the link to the verify page.
I am in admin quite a bit, but not enough to be able to properly watch the system for new pics. I guess I could turn verify off as well and rely on users to let me know if someone uploads porn or something like that :squareeyed:
Regardless, still cool.
Moyses
03-05-2003, 01:41 PM
Very nice Hack!!! http://foros.angzone.com/images/smilies/amor.gif
*Install* http://foros.angzone.com/images/smilies/gringift.gif
Velocd
03-05-2003, 03:38 PM
Originally posted by Cheffe
I got the following warning
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1020
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/vbaee4c33b7) is not within the allowed path(s): (/home/www/netsh2/) in /home/www/netsh2/html/vbtest/member.php on line 1024
:confused: :confused: :confused:
Make sure the directory "memberpics" is CHMOD 777 ;)
Cheffe
03-05-2003, 04:34 PM
checked but still the same problem :(
klunderj
03-06-2003, 02:38 AM
Just installed this hack.. took a while. Then I realized my system is hosted on a windows box and is not capable of running GD. Well, I modified some of the scripts and got the members photo album to work, just couldnt use the thumbnails. Modified gdresize and member.php
Gonna go click on install now
Cheffe
03-06-2003, 06:10 AM
Problem fixed! Just no tmp directory :D
mbaskett
03-06-2003, 06:22 PM
Originally posted by klunderj
Just installed this hack.. took a while. Then I realized my system is hosted on a windows box and is not capable of running GD. Well, I modified some of the scripts and got the members photo album to work, just couldnt use the thumbnails. Modified gdresize and member.php
Gonna go click on install now
Windows can run GD... just install the distributable version of PHP 4.3.1 is avaiable now, edit the php.ini to remove the comment line from
extension=php_gd2.dll
Download the PHP zip for windows (not the installer package), and extract php_gd2.dll into your PHP directory... It'll work like a charm.
Mike11212
03-08-2003, 02:00 AM
be cool if u could add a bio with this
dv6cougar
03-08-2003, 01:52 PM
awesome job!
i like it so far, having a few problems biggest one woudl be
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9
but I asked my host to install the GD 2.0 now, to make sure we have it, so i bet that's it
very nicely done
installs.... :)
i'm gonna see if i can rendar this one to use a full gallery
dv6cougar
03-08-2003, 09:04 PM
ok still no luck!
some body help me out please :(
thanks alot! the program is installed and i did the mod 3 times making sure i had done teh steps and all was done :(
here's the script for thsoe whoe have not seen it...
<?php
function createthumb($name,$filename,$new_w,$new_h,$quality ){
$system=explode(".",$name);
if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);}// LINE 9
if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);}
$old_x=imageSX($src_img);
$old_y=imageSY($src_img);
if ($old_x > $old_y) {
$thumb_w=$new_w;
$thumb_h=$old_y*($new_h/$old_x);
}
if ($old_x < $old_y) {
$thumb_w=$old_x*($new_w/$old_y);
$thumb_h=$new_h;
}
if ($old_x == $old_y) {
$thumb_w=$new_w;
$thumb_h=$new_h;
}
$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thum b_w,$thumb_h,$old_x,$old_y);
if (preg_match("/png/",$system[1])){
@header ("Content-type: image/png");
@imagepng($dst_img,$filename);
} else {
@header ("Content-type: image/jpeg");
@imagejpeg($dst_img,$filename,$quality);
}
imagedestroy($dst_img);
imagedestroy($src_img);
}
?>
line 9 is throwing this error
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9
Velocd
03-09-2003, 03:08 PM
imagecreatefromjpeg() is a GD2.0 predefined function, and if this is coming up as undefined, then you have an error in your GD installation, or maybe JPG support is not enabled for GD.
Do as I have instructed to a user in this previous post:
https://vborg.vbsupport.ru/showthread.php?postid=360911#post360911
Then make sure JPG/PNG is enabled, and that PHP on the server is being started with GD support.
colby
03-10-2003, 03:49 AM
:cry: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/**/public_html/forum/gdresize.php on line 5
Velocd
03-10-2003, 04:19 AM
Colby, according to the link you sent to me of your Phpinfo info page, there is no reference whatsoever of GD installed. I would inform your host about this to insure that they have absolutely installed it. you are running PHP 4.2.3, also, so it does not come pre-installed with it.
colby
03-10-2003, 04:25 AM
I am good friends with my host, and I was wondering if you could tell me where i could tell him to get this GD thing for his servers, please?
Velocd
03-11-2003, 01:29 AM
You can download GD from http://www.boutell.com/gd/
(just search "GD library" in google)
Xyphen
03-11-2003, 11:23 PM
Possible to display the member photo in their profile?
This only allows one photo upload per member although I have this set to allow 100 per user in the admin cp....any ideas on what is wrong?
Nitesh
03-19-2003, 11:09 AM
Hi, this looks like an excellent hack but could someone tell me if this hack could be restricted so only certain usergroups could use it? Thank you
L-Mane
03-21-2003, 11:03 PM
I got this error when uploading a pic
Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\WebPublic\allhiphop\community\gdresize.php on line 5
Velocd
03-22-2003, 03:13 AM
This only allows one photo upload per member although I have this set to allow 100 per user in the admin cp....any ideas on what is wrong?
You must have mistaken the option in the Admin Control Panel, as there is nothing that allows members to upload more photos in this hack. The only options available via Admin CP are those shown in the following screenshot:
https://vborg.vbsupport.ru/attachment.php?s=&postid=360348
Hi, this looks like an excellent hack but could someone tell me if this hack could be restricted so only certain usergroups could use it? Thank you
I don't have time to do really any more coding on this hack, but achieving this is very easy. Just use:
if($bbuserinfo[usergroup] == X){
show_nopermission();
}
Or something similar and place this in the code chunk area in member.php where the main code goes. Just change the X variable to whatever usergroup value you want to restrict.
I got this error when uploading a pic
Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\WebPublic\allhiphop\community\gdresize.php on line 5
Once again, GD2.0 is required for this hack to work, and must be enabled with JPG and PNG support.
Steve123
03-22-2003, 04:41 AM
Ive installed this hack and gone over it..
When i try access
member.php?s=&action=editphoto
I get no output.. only <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
sabret00the
03-22-2003, 08:49 AM
very nice
Steve123
03-22-2003, 10:31 AM
^^ oops
fixed it... i misread an instruction :)
Thanks Very Nice :)
Steve123
03-22-2003, 11:17 AM
Ok
Question..
How do u make it so when a user deletes the picture outa the database.. it will delete his/her picture from your harddrive..
Because right now it wont delete the pics on the hdd when a user changes pic... :S
Steve123
03-23-2003, 10:35 AM
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
eval("dooutput(\"".gettemplate("getinfo")."\");");
}
// ############################### start aim message ###############################
Add
$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
$profilephoto<br> $photomessage
Where you want the photo to appear..
Velocd
03-23-2003, 07:55 PM
How do u make it so when a user deletes the picture outa the database.. it will delete his/her picture from your harddrive..
Because right now it wont delete the pics on the hdd when a user changes pic... :S
I just noticed this bug in the code, so if a user manually deletes their photo via the link that says "[Remove this photo from the database]," it will remove the data from the database but not remove it from the server. This has been fixed, and the zip has been updated with update1.3.txt file.
I recommend browsing through your memberpics directory and deleting those old files not being used by members presently in the photo gallery.
;)
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
03-23-03 at 12:35 PM Steve123 said this in Post #79 (https://vborg.vbsupport.ru/showthread.php?postid=371833#post371833)
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
eval("dooutput(\"".gettemplate("getinfo")."\");");
}
// ############################### start aim message ###############################
Add
$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
$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
JustCurious
04-12-2003, 07:07 AM
I'm getting this error any ideas?
************************************************** *
Warning: copy(memberpics/photo1_7.jpg) [function.copy]: failed to create stream: Permission denied in /home2/www/xxx/forum/member.php on line 1066
Warning: imagecreatefromjpeg(memberpics/photo1_7.jpg) [function.imagecreatefromjpeg]: failed to create stream: Permission denied in /home2/www/xxx/forum/gdresize.php on line 9
Warning: imagesx(): supplied argument is not a valid Image resource in /home2/www/xxx/forum/gdresize.php on line 13
Warning: imagesy(): supplied argument is not a valid Image resource in /home2/www/xxx/forum/gdresize.php on line 15
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home2/www/xxx/forum/gdresize.php on line 45
Warning: imagedestroy(): supplied argument is not a valid Image resource in /home2/www/xxx/forum/gdresize.php on line 65
*************************************************
I'm also assuming the image name "photo1_7.jpg" is a generated name for the thumbnail that is created? I haven't uploaded a file with that name?
Thanks in advance.
cirisme
04-12-2003, 03:10 PM
Check your permissions.
JustCurious
04-12-2003, 06:09 PM
That was it, my permissions weren't correct.
Now I have a new problem. It will only let me add one image total. If I add another it replaces the one that is already there. My Admin allows for up to 20 images, but I obviously can't get that far.
Any ideas?
cirisme
04-12-2003, 07:50 PM
I think that's by design.
I've been hacking it myself to overcome this.
Velocd
04-13-2003, 02:34 PM
That is indeed by design, this only allows members to upload one image of themselves. Think of it as an avatar, you can only upload one to use. ;)
Entourage
04-13-2003, 03:05 PM
Velocd, pls check my reply on this hack: https://vborg.vbsupport.ru/showthread.php?postid=380053#post380053
because Its still not working here :)
JustCurious
04-14-2003, 03:12 AM
I don't see the "approval" section in the Admin section. What did I do wrong?
girlzclan
04-14-2003, 08:43 AM
I'm also getting the error ..
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/XXXXXXXX/public_html/forum/gdresize.php on line 5
I am running PHP 4.3.1 .. but im assuming that GD isn't installed *shakes fist at host* good luck getting them to install it since they allready host my site for free *sigh*
iwearnosox
04-14-2003, 10:23 AM
I wish there was a way to hack this more into a picture engine for user profiles..
NyCwill
04-14-2003, 02:59 PM
is it possible to have a link of the picture instead of uploading it?
JustCurious
04-15-2003, 02:45 AM
GRRR!!!!!! Everything works as far as I can tell except for the fact that my Admin section hasn't changed to allow me to approve the photos. I have the options listed to turn it off or on, but no where is there an approval section. I've gone through the Admin index.php hack several times. When I upload photos it says awaiting approval but I have no where to approve them from.
HELP!! I'm about to give up.
solent
04-16-2003, 02:53 PM
very good hack
had some problems with gd but i have managed to enable it.
i will be more than glad to help anyone that has the same problems
good job dude
Velocd
04-16-2003, 08:16 PM
GRRR!!!!!! Everything works as far as I can tell except for the fact that my Admin section hasn't changed to allow me to approve the photos. I have the options listed to turn it off or on, but no where is there an approval section. I've gone through the Admin index.php hack several times. When I upload photos it says awaiting approval but I have no where to approve them from.
HELP!! I'm about to give up.
The option should be in the left frame of your Admin CP, toward the lower portion of options. Make sure you have uploaded the verify PHP file to your admin directory, and made the file changes to admin/index.php, and that you have the approval system on. Even if the link isn't displayed (which means you didn't edit the index.php), that doesn't mean you can't simply run the location of the file in your browser address bar and it should execute.
I wish there was a way to hack this more into a picture engine for user profiles..
I'm currently developing such a system for my site, but more than likely I'll be releasing it on vB.org. ;)
irn-bru
04-16-2003, 09:01 PM
super stuff :)
lo is the members avatar optional mine no working ?
do I need another hack cause I have no avatar templates....
But the rest is kewl :D
Nickos
04-18-2003, 08:25 AM
great hack but i cant use it :(
i had my host install gd 2.0 and everything works but when i go to the admin cp.. there is NO menu section for member photo, it used to be there but disapperaed, i cant figure it out.. check out the attached admin/index.php.. everything seems to be right but the member photo part is completely not there
irn-bru
04-19-2003, 11:45 AM
*bump*
Velocd
04-19-2003, 10:27 PM
lo is the members avatar optional mine no working ?
do I need another hack cause I have no avatar templates....
You are thinking of another hack.
i had my host install gd 2.0 and everything works but when I go to the admin cp.. there is NO menu section for member photo, it used to be there but disapperaed, I cant figure it out.. check out the attached admin/index.php.. everything seems to be right but the member photo part is completely not there
You're not permitted to attach full vBulletin files, so please remove the admin/index.php you have uploaded.
Make sure the file changes needed to be done in admin/index.php are being done correctly. If so, then make sure you have done all the database changes accessible through the instruction HTML file.
irn-bru
04-20-2003, 09:51 AM
Yesterday at 11:27 PM Velocd said this in Post #107 (https://vborg.vbsupport.ru/showthread.php?postid=384371#post384371)
[B]You are thinking of another hack.
thanks for the info Velocd i'll look it up.
Nickos
04-22-2003, 07:17 PM
You're not permitted to attach full vBulletin files, so please remove the admin/index.php you have uploaded.
Make sure the file changes needed to be done in admin/index.php are being done correctly. If so, then make sure you have done all the database changes accessible through the instruction HTML file. [/B]
ok i checked, rechecked and checked again, it was there before, then just disaperaed when GD was installed.. i removed all the databases and all editings to the files and will try again, and hopefully it works
sbryan
04-23-2003, 07:57 AM
can anyone help, why this comes up empty?
http://www.xboxworld.com.au/forum/memberlist.php?s=&action=avatar
ive uploaded the new memberlist.php file with the edits in it.
irn-bru
04-23-2003, 08:29 AM
Today at 08:57 AM sbryan said this in Post #110 (https://vborg.vbsupport.ru/showthread.php?postid=385846#post385846)
can anyone help, why this comes up empty?
http://www.xboxworld.com.au/forum/memberlist.php?s=&action=avatar
ive uploaded the new memberlist.php file with the edits in it.
Yes if you look above in my post Velocd replyed its another
hack, which it is once installed it works well.
Here Ya Go (https://vborg.vbsupport.ru/showthread.php?s=&threadid=48704&highlight=avatar+gallery)
phill2003
04-28-2003, 09:16 AM
any chance this could be modifyed to allow multiple uploads please. i would like to use it to show the photographs i got of my friends and i doing a sponsored white water rafting :)
p.s i have couple of photo's up if you would like to see them they are here..
http://www.xtremepsx.com/board/memberlist.php?action=viewgallery
i'm the one front left in the red helmet :)
we did it for cystic fibrosis and raised 620 quid :)
oh and thank you for the great hack its very good :)
Today at 07:16 PM phill2003 said this in Post #112 (https://vborg.vbsupport.ru/showthread.php?postid=388338#post388338)
any chance this could be modifyed to allow multiple uploads please.
I too requested for multiple uploads but i dun think Velocd has any plans to have that added functionality in this hack.
This is a really great hack , just that the added functionality of multiple uploads by a user could make it the best integrated user gallery system vB has yet. ( tightly integrated with vb and the admin end ). Just my 2 cents at least ...
Perhaps someone else could undertake it ?
irn-bru
04-28-2003, 04:37 PM
p.s i have couple of photo's up if you would like to see them they are here..
http://www.xtremepsx.com/board/memberlist.php?action=viewgallery
i'm the one front left in the red helmet :)
we did it for cystic fibrosis and raised 620 quid :)
kewl nice pics, looks fun and wet..lol
Did I mention this hack is kewl..well I did now :)
It just beats JJR512's Members Photo Gallery
as you have to go in to phpMyadmin to enter
pics and its admin only. But thats a kewl gallery as well.
Velocd
04-28-2003, 06:47 PM
This gallery does indeed beat JJR512's version, for the reason you gave and that the design is better. I was using that version previously.
I'm around 20% complete with a new gallery vBulletin integration script that allows multiple image uploads, image upload quotas based per usergroup, category & sub category creation, verification system (much like this has), comment system, criteria rating system, and some other stuff I might throw in as well. The main objective is to create an incredibly easy to use and automated gallery script, without the need for editing PHP files and being able to do all modifications via the ACP.
Thanks to all those of have installed this hack. ;)
phill2003
04-28-2003, 06:58 PM
thank you for the update on your new version its much apreciated..
i understand the hard work you are puting in and look forword to its release..
@irn-bru
yep it was a great day we all got wet and thought we were going to die at some point on the journey :D thanks for the comments :)
gerlando
04-28-2003, 07:37 PM
The upcoming version sounds awesome.
Yep indeed , cant wait for the release !
Great stuff Velo :D
Okay, I've read through this thread and have found several things that could be the source of my problem, but I'd like to ask anyway just in case I've missed something.
The hack has been completely installed, the directory is CHMOD 777, and I believe a fellow admin has already installed the newest version of GD downloadable on the site provided. The images are accessible, but the thumbnails appear as broken images.
Any ideas on how to make the thumbnails show up?
Austin Dea
05-01-2003, 03:05 AM
Merc! >:O
Make a phpinfo page and post it.
<?php
phpinfo();
?>
^ Put that into a file, name it blah.php, upload, post the link to it.
Today at 12:05 AM Austin Dea said this in Post #120 (https://vborg.vbsupport.ru/showthread.php?postid=389802#post389802)
Merc! >:O
Make a phpinfo page and post it.
<?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.php?s=&action=viewgallery
And with MemberAvatr get I only a white side also here the
left:
http://www.dede1.de/Board/memberlist.php?s=&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
05-04-03 at 08:46 PM dede1 said this in Post #123 (https://vborg.vbsupport.ru/showthread.php?postid=391348#post391348)
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.php?s=&action=viewgallery
And with MemberAvatr get I only a white side also here the
left:
http://www.dede1.de/Board/memberlist.php?s=&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?
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:
<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?
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
if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$photomaxdimension or $imginfo[1]>$photomaxdimension) {
.
.
.
.
..
}
if ($imginfo[2] != 2 and $imginfo[2] != 3) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_photonotimage")."\");");
}
replace /w this
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] != 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
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.
Is there a way an admin can manually add someone's pic to the gallery?
Manually? Yes. Here are the steps:
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.
Go into PhpMyAdmin, and run this query:
SELECT * FROM `memberphoto` WHERE userid='your_userid'
Ensuring to replace 'your_userid' with your userid.
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.
Run the following query:
SELECT photonum,phototype FROM `user` WHERE userid='members_userid'
This time round, make sure 'members_userid' is their userid.
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.
Via FTP, browse to your memberpics dirctory, and find the thumbnail for the image, which should be in the format:
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.
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)
05-21-03 at 11:10 AM tinbin said this in Post #133 (https://vborg.vbsupport.ru/showthread.php?postid=398093#post398093)
Merc:
I had the same problem and i changed the memberlist_userphoto to this:
<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
03-23-03 at 11:35 PM Steve123 said this in Post #79 (https://vborg.vbsupport.ru/showthread.php?postid=371833#post371833)
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
eval("dooutput(\"".gettemplate("getinfo")."\");");
}
// ############################### start aim message ###############################
Add
$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
$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
07-02-03 at 04:16 PM mackers8923 said this in Post #158 (https://vborg.vbsupport.ru/showthread.php?postid=414716#post414716)
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<><><><><><>
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 (http://www.epinions.com/inet-Web_Hosting-All-Verve_Hosting/display_~reviews), which offers latest GD, and always updates to the newest version of software.
Tenpit
07-06-2003, 08:56 AM
Today at 03:20 AM Velocd said this in Post #162 (https://vborg.vbsupport.ru/showthread.php?postid=415592#post415592)
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 (http://www.epinions.com/inet-Web_Hosting-All-Verve_Hosting/display_~reviews), 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
03-23-03 at 11:35 PM Steve123 said this in Post #79 (https://vborg.vbsupport.ru/showthread.php?postid=371833#post371833)
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
eval("dooutput(\"".gettemplate("getinfo")."\");");
}
// ############################### start aim message ###############################
Add
$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
$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/showthread.php?s=&threadid=34527&highlight=Today+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
04-14-03 at 10:23 PM iwearnosox said this in Post #99 (https://vborg.vbsupport.ru/showthread.php?postid=381939#post381939)
I wish there was a way to hack this more into a picture engine for user profiles..
[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
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.
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
Today at 02:27 AM Velocd said this in Post #174 (https://vborg.vbsupport.ru/showthread.php?postid=421110#post421110)
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
07-25-03 at 12:03 PM Areku said this in Post #171 (https://vborg.vbsupport.ru/showthread.php?postid=420580#post420580)
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
Today at 12:27 PM Velocd said this in Post #174 (https://vborg.vbsupport.ru/showthread.php?postid=421110#post421110)
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
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.
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
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.
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:
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/pverify.php?action=verify
I'm not sure why is there a second "FORUMS" on the first (script) URL...
Rebel38
07-29-2003, 01:09 AM
Today at 04:22 AM Velocd said this in Post #179 (https://vborg.vbsupport.ru/showthread.php?postid=421329#post421329)
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:
SELECT id
FROM memberphoto
WHERE visible!=1
To:
SELECT userid
FROM memberphoto
WHERE visible!=1
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
Today at 04:02 AM Velocd said this in Post #187 (https://vborg.vbsupport.ru/showthread.php?postid=421445#post421445)
Um, Areku, change this:
SELECT id
FROM memberphoto
WHERE visible!=1
To:
SELECT userid
FROM memberphoto
WHERE visible!=1
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:
$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:
$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
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/memberlist.php?s=&action=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;
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.
irn-bru
09-08-2003, 07:11 PM
Today at 03:01 PM Nebby said this in Post #200 (https://vborg.vbsupport.ru/showthread.php?postid=432260#post432260)
i get this;
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.
I reckon you need chmod 777 on that gallery folder m8.
Dont really know I am just your average vb muppet :classic:
Nebby
09-13-2003, 10:45 PM
Nope, it's all CHMOD'd, the images are getting uploaded, just giving me that error and not showing in the gallery.
Velocd
09-23-2003, 02:35 AM
Fatal error: Call to undefined function: imagecreatefromjpeg()
I'm mentioned this many times already, you must have GD2 library installed for this hack to work. GD2 is an external library, which ships with newer versions of PHP (4.3.0+), that helps PHP do advance imaging process.
Athmo
10-03-2003, 10:35 AM
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!
Right!
Is there a addon to delete some pictures?
Now it is a pain in the *ss to delete a photo
Old, but good question. Is there a possibillity to delete a photo??
Floh
DaveRobbo
10-14-2003, 09:44 AM
OK - I'm having some trouble with this hack now - but it's rather hard to describe so bear with me....
My host provider didn't have the latest GD library installed, so the hack wouldn't work as originally released and I had to defer installing it for many months.
Then someone on this thread came up with an alternative version of one of the files (I think it was gdresize.php) which though was unsupported, was supposed to get around the GD2 library problem. I installed the hack with this modification and it all worked great! (many thanks to both VeloCD and the guy who came up with the mod to make it work on "pre-GD2" - sorry can't remember who you were but it worked fine)
Now, many months later, my host has finally upgraded their PHP and GD libraries - and the "mod'd" version now doesn't seem to work too good - the generated thumbnails seem to get their colourmap all confoozed. I'm assuming this is the upgraded GD libraries that are responsible for this.
However - my problem; I can no longer find what the "mod" was! I've tried downloading the original hack again - but can't see any difference between that and the version of gdresize.php I am using.
Can anyone think what it is I may have done? I've got around the problem temporarily my altering the templates so that the thumbnail page uses the fullsize picture - but scaled down to thumbnail size by the browser. This works fine although it means that the thumbnail page is actually downloading all the fullsize photos while only displaying them at thumbnail resolution.
I'm sure I'm just missing something obvious here - both the original hack and the mod seem great and all kudos to both authors.
Areku
10-15-2003, 09:28 PM
From time to time, the UNAPPROVED section of the Admin panel gets full coz users won't upload any new photos...
Since this hack didnt provide any delete photos, I decided to:
1) approve all conforming photos
2) run this php file every once in a while, when unapproved photos list is too long
Hope this helps any1 like me....
Set up instructions:
**THIS HACK WILL DELETE ALL UNAPPROVED PHOTOS FROM MEMBERPHOTO TABLE**
1) download attachment
2) put deletephotos.php on forums/admin folder
3) edit admin/index.php
Find
makenavoption("Verify","pverify.php?action=verify");
Replace with
makenavoption("Verify","pverify.php?action=verify","|");
makenavoption("Delete Unapproved","deletephotos.php?action=");
Save, upload.
4) Enter admin panel.
5) approve all photos complying with your rules...
6) click on Delete Unapproved and follow instructions.
aquariumpros
10-15-2003, 09:59 PM
Great add-on...
One problem - I am getting the following error when I run the delete command:
Database error in vBulletin Control Panel 2.2.9:
Invalid SQL: delete FROM 'memberphoto' WHERE visible='-1'
mysql error: You have an error in your SQL syntax near ''memberphoto' WHERE visible='-1'' at line 1
mysql error number: 1064
Date: Wednesday 15th of October 2003 06:57:36 PM
Script: http://www.aquariumpros.ca/forums/forums/admin/deletephotos.php?paco=1
Referer: http://208.56.122.88/forums/admin/deletephotos.php?action=&s=
Repair Report: This type of error cannot be automatically repaired.
Any help would be appreciated!
TIA,
Areku
10-15-2003, 10:03 PM
I'm afraid I uploaded a wrong version of the php... I've reuploaded the correct one. Just remove the quotes from the SQL query in the php file, ie.:
where it reads
delete FROM 'memberphoto' WHERE visible='-1'
put
delete FROM memberphoto WHERE visible=-1
aquariumpros
10-15-2003, 10:11 PM
I'm afraid I uploaded a wrong version of the php... I've reuploaded the correct one. Just remove the quotes from the SQL query in the php file, ie.:
where it reads
delete FROM 'memberphoto' WHERE visible='-1'
put
delete FROM memberphoto WHERE visible=-1
Sweet!
That fixed it 100%.
It's soo nice not to see that long list of memberphotos anymore!
Thank you greatly for this add-on Areku
Cheers,
Areku
10-15-2003, 11:16 PM
U're welc. Glad u liked it! ;)
pdatoon
10-18-2003, 04:22 PM
Admin CP Verify Page:
Hi guys,
I dont have that link into my admin CP Panel?!
I dont understand. I changed admin/index.html
I uploaded pverify in the admin folder.
Everything else should be working.
Help please!
pdatoon
10-18-2003, 04:52 PM
Hi guys,
I dont have that link into my admin CP Panel?!
I dont understand. I changed admin/index.html
I uploaded pverify in the admin folder.
Everything else should be working.
Help please!
Which file or what templates is involved in the admin CP link? Please let me know
pdatoon
10-18-2003, 05:02 PM
Does it has anything to do with the :
// draw cp nav bar
$cpnav = array();
$cpmenu = array();
$cpnav[1]="{firstaltcolor}";
$cpmenu[1]="class=\"fjsel\" selected";
$cpnav[2]="{secondaltcolor}";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
$cpnav[8]="{secondaltcolor}";
?
pdatoon
10-19-2003, 09:23 PM
Anyone please?
Does someone know what part of the modification is involved with the cpanel left menu link? please :rolleyes:
zsmom
10-26-2003, 12:40 AM
Nevermind, thanks!
SEShady
10-31-2003, 01:15 PM
Wowzer.
GreaT Hack, and I'm a NoOb at this, and it only took me like 30 minutes!
Great Job!
pz out,
Shady
parajsa
11-04-2003, 07:25 PM
Greetings,
Firstly wanna congratulate for this good and usefull hack.
Secondly, i got a quest. Is there a way to use this hack with the GD 1.6.x/1.8.x version? Coz i been running this version right now, and can't update to the new version coz of some reason.
Thanks in advanced,
Peace on ya!
magnus
11-06-2003, 01:52 PM
Velocd, *love* the hack, great work!
I'm trying to modify it slightly, however, to display on the main home page instead. I've tried to take the code inserted in memberlist.php and apply it to index.php (minus the (if $action) portions) in hopes if displaying a row of pictures at the top of the forum.
Obviously, this didn't work. I was wondering if someone could help point me in the right direction as to how to accomplish this.
Thanks!
parajsa
11-24-2003, 10:31 AM
Is there a way to use this hack with the GD 1.6.x/1.8.x version? Coz i been running this version right now, and can't update to the new version coz of some reason.
No response yet on this quest, any help?
Oblivion Knight
12-21-2003, 04:29 PM
Apologies if I'm wrong, but shouldn't there be something in the admin cp around this area IF you have the approval system enabled.?
From here, you can control all aspects of your vBulletin forums. Please select what you need from the links down the left hand side of this page.
There are currently 0 user(s) awaiting moderation.I've looked at the code in index.php and found that it does absolutely nothing, so I changed it to this:
if($approvalsystem==1){
$checkphoto=$DB_site->query_first("SELECT COUNT(*) AS visible FROM memberphoto WHERE visible=0");
if($checkphoto[count] > 1){
echo "<font size=\"1\">There are currently <b>$checkphoto[count]</b>
photos unverified, which can be checked <a href=\"pverify.php?s=$session[sessionhash]&action=verify\">here</a>.";
} else if($checkphoto[count] == 1){
echo "<font size=\"1\">There is currently <b>$checkphoto[count]</b>
photo unverified, which can be checked <a href=\"pverify.php?s=$session[sessionhash]&action=verify\">here</a>.";
}
}but it still doesn't work.. Anyone have any ideas.?
bgray
01-01-2004, 11:03 PM
I just moved to a new server. I check my permissions and have GD 2.0.15 installed but when I try to upload a pic this screen shows up for a second and the pic doesn''t load in the Member Photos section.
I've attached a screenshot. Does anyone know what is wrong?
Thanks,
BGray
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.