| Avatar System | |
|---|---|
| Tweet Topic Started: Aug 14 2008, 10:58 PM (1,635 Views) | |
| claudia | Dec 15 2008, 04:58 AM Post #61 |
|
Sorry, fixed it. lol, I will try and find the misspelled code! |
![]() |
|
| php-coder | Dec 15 2008, 05:00 AM Post #62 |
|
To be honest, the upload avatar system he implemented i assume is from the net and works, but as i said when he was altering the code to run with the login system i think he may have misspelles something im not to sure till i have a look, but Fear may beat me to it and re-post a fixed version as everyone wants this mod and its in high demand. We will see what happens but ill check over it tomorrow anyways. ~Pc |
![]() |
|
| claudia | Dec 15 2008, 05:02 AM Post #63 |
|
No worries! I'm just doing this for fun! |
![]() |
|
| claudia | Dec 15 2008, 11:43 PM Post #64 |
|
Hello, A quick suggestion and if one can give me any ideas on how to go about it or if this logic would work, what if instead of having to add the avatar during registration, one can add it during the user edit section? I tried playing around with the script and changed it , with no avail, owing to being a beginner here. Here is what I have attempted to do: 1) add a new table called avatar, this would have the username (primary key) and also the avatar witht the default noavatar.png 2) in session.php copy the registration section but keep only what is needed in this case the avatar section... 3) update in database.php with the same function as addNewUser but called addAvatar. 4) in process.php create a function procAvatar 5) create a avatar.php form for the user to upload, or add it in the useredit.php. 6) view it in the userinfo.php What do you guyz think? I have another go at it any ways, the issue I think is trying to link the avatar table to the users table, when wanting to update the information on both. Thanks Claudia
|
![]() |
|
| php-coder | Dec 16 2008, 03:36 AM Post #65 |
|
Claudia regarding the issue you can join tables together in a mysql query that may help you out with that part, and also, Fear is re-writing this code at the weekend so you may want to wait untill then to see what he comes up with ? Upto you just a thought as he originally wrote it so he is going to revise it, fix it and release it again. ~Pc Edited by php-coder, Dec 16 2008, 03:38 AM.
|
![]() |
|
| claudia | Dec 16 2008, 03:37 AM Post #66 |
|
Scratch that, it's not logical I think! |
![]() |
|
| bustya | Dec 16 2008, 07:05 PM Post #67 |
![]()
The Master Bitchslapper
|
I use to have my avatar upload in the edituser form, I've since changed it though. Now I have a separate form for upload handling... this is important because for a secure image upload you need to use getimagesize() function to be sure the user isn't uploading a script. I have an entire image handling package I'm going to be uploading here soon. I plan to get back to work on it today, (I've been sick the last few weeks). It includes: Image uploading (allows a limit per user), sorting images with drag&drop, captioning images, cropping pics (drag box over image and double click), and the part I haven't finished yet... select an uploaded pic to set as avatar, that's the easy part, really, I've just been busy with Xmas and sick as well. Oh yeah, I also altered my image serving script so that it's idiot proof... if the user breaks the url in anyway a default pic is shown instead of nothing or a PHP error. I'll be back soon to post all of this. |
![]() |
|
| bustya | Dec 16 2008, 07:12 PM Post #68 |
![]()
The Master Bitchslapper
|
Here's a sample of how the cropping script works, this url will only be good for a short time as I'm about to change it so it crops a selected user pic rather than this default (test) pic. Drag the box then double click inside the selected area. cropping script example |
![]() |
|
| Admin | Dec 16 2008, 07:27 PM Post #69 |
|
Administrator
|
looks very nice, hopefully you can post it soon
|
![]() |
|
| php-coder | Dec 17 2008, 07:29 PM Post #70 |
|
Hello, this -> Add below the email checking in editaccount function:
Is what i beleive to be the problem i have made the correct adjustments to the file if it doesnt work then ill have to re-check all the files again.. but try it and let me know. ~Pc |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Other · Next Topic » |






12:49 AM Jul 11