upload and renaming pics - نوشته شده در (2793 Views)
Senior Member
tribaliztic
مطلب: 1532
1532
This is what I want:

- user click a link in the user profile
- user can upload 5 pics (via pop-up-window?)
- thumbs are created
- the pics are displayed automatically in profile

I can probably solve the display by renaming the pics to 1.jpg, 2.jpg and so on and have static links in the profile. But how do I upload the pics and rename them? I was thinking that maybe I could use the code for the file sharing mod, but how do I make it rename the pics? And the thumbnailing won't be done without any components I suppose? This is the code for uploading to the file sharing mod:
http://www.gotlandrace.se/tabort/pop_upload_new.txt<
/Tribaliztic
- www.gotlandrace.se -
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
Noone? Zuel I KNOW that you're itching to solve this.. ;)
<
/Tribaliztic
- www.gotlandrace.se -
نوشته شده در
Junior Member
ILLHILL
مطلب: 341
341
This would be hot. It's definitely out of my league though, but I'm helping you up this in hopes
somebody comes along.
If I may suggest a size limit might come in handy especially with cameras nowadays going
way over 6 megapixels and with that images that go way over 2 mb per piece...not cool if
you have a couple hundred members all uploading their pics.
Greets, D<
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
Well, then a auto resize would have to be used when before creating the thumbs or something. Also out of my league so I'll keep my fingers crossed that someone will have mercy =)
<
/Tribaliztic
- www.gotlandrace.se -
نوشته شده در
Dev. Team Member & Support Moderator
OneWayMule
مطلب: 4969
4969
I'd recommend using a component, which you'll need for resizing anyway. What components do you have available on your server?<
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
well... Don't know really, I'll have a look if I can find out how to list all components... <
/Tribaliztic
- www.gotlandrace.se -
نوشته شده در
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
This could be done in php also if anyone would like to =) Since it's in a pop-up that should be no problem afaik... <
/Tribaliztic
- www.gotlandrace.se -
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
Originally posted by OneWayMule
This script might help. wink

Thanks! =)

Is it supposed to take really long time to run the script? It's been running since my last post and still nothing.. <
/Tribaliztic
- www.gotlandrace.se -
نوشته شده در
Dev. Team Member & Support Moderator
OneWayMule
مطلب: 4969
4969
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
win2k
seems like all asp-pages stopped working (I had to abort the script). txt-files show allright though. I'm just about to reboot the server and try again. <
/Tribaliztic
- www.gotlandrace.se -
شما باید یک متن وارد کنید