
05-25-2003, 04:44 AM
|
 |
|
|
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
lord help me.. It says I need GD 2.0, or course, how would I go about installin this.. don?t laugh too hard
|
Heh, you'll have to go to the GD-website for help on that, for I have a hosted server and little experience on how to install PHP libraries. Maybe Zend.com, PHPBuilder.com, or Evolt.org will have some easy-to-follow tutorials.
Quote:
Is there a way an admin can manually add someone's pic to the gallery?
|
Manually? Yes. Here are the steps:
- 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:
Code:
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:
Code:
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:
Code:
thumb$YourUSERID_$PhotoNUM.PhotoTYPE
Replace those variables with the members userid, photonum, and phototype.
You now need to find the actual full-size image, located in the same directory prefixed with "photo", and make the same similar changes to it.
- 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.
|