![]() |
Image/File Uploader
Coded by tnguy3n for http://www.all4actions.net
Live Demo: http://www.all4actions.net (create a thread or reply) Well, I wrote this lil script for my board so that my member can upload images/pics since my board host lots of images of movie stars and all such, and database grows really fast if using Attachment Manager. It's been released at my forum for a while now, and didn't have time to post it here... it's fully tested, but maybe there'r still few bugs may be found. What can you do with this script? - Allow certain membergroups to access the script - Upload img/banner in signature (sig hosting) - You can set the max width & height, in case ppl upload huge image & break table cell of your forum - You can set max filesize and allow certain extensions to be uploaded lots more features will be added to v.2 of the script, admin can add file extensions, filesize and keep track on upload dir via Admin CP. P.S. Due to mah busy schedule, support for this hack will be very limited ... You guys can find me on at my board sometimes, or post bugs in this thread: http://all4actions.net/forums/showthread.php?t=3389 ------ If you want certain membergroups to see this File/Image Uploader option, you can use conditional in your template, i.e: HTML Code:
<if condition="(is_member_of($bbuserinfo, 5)) OR (is_member_of($bbuserinfo, 6)) OR (is_member_of($bbuserinfo, 7)))"> |
here goo few screenshots
|
Can you make it so that the pictures can only be posted on your domain or other selected ones as well? DOn't need people eaqting up my bandwidth again with this :(
Looks awesome though |
Quote:
|
would be simply better if the attached files are included in the post, like when we add smilies in our posts... so users don't have to copy/paste the code...
|
Where can users see what images they have uploaded?
|
omg omg omg omg omg omg omg omg omg ty :)
|
Will this allow uploads more than say 3mb though or is it only for very small files.
|
@ Mindtrix : PHP upload is limited by your server, not by scripts...
|
can you limit the number of files uploaded in one post?
|
Thanks, I will try :D
While editing the showthread_quickreply template, I kinda lost it after this: Quote:
|
Quote:
in showthread_quickreply, find: HTML Code:
<tr> HTML Code:
<tr> |
what happens if a file already exists?
if its overwritten is there a way to make it generate an error instead? |
Quote:
|
What about security issues - will it test to see if the file is an image ?
Reason I ask, is that with a tool like this, someone could upload a FTP php script and then access your whole server with web-server privileges... |
Quote:
|
Just checking that it will reject evilscript.jpg.php ?
|
Quote:
|
I'll shaddup now then ;)
|
Thank, very nice addition :)
|
Great Hack, big ThX
but I have a question. I would like that the hack for each day creat a folder into it upload the files /04.10.2004/files /05.10.2004/files Greetz Snatch |
i would not use the OR conditionals in templates i would use ||
as i have many problems with that conditional if you have problems with the image upload option change Code:
OR Code:
|| |
Hello ? can“t no one help me ?
|
Quote:
Why would you want to do it? |
Quote:
|
Quote:
With regard to the template edits, for editor_smilebox this looks a little cleaner: insert at the bottom of the template: Code:
<!-- added uploader link here --> |
Hi. Is it possible to add a watermark feature over uploaded images ?
|
ok i done all the steps in ur instructions txt file , what comes after that ???
plz explain what else should be done to make it work..? we_scooter |
Thanks tnguy3n *installed* :ermm:
|
what happen the pic is not show on the post (just red X)
thanks |
right click on redX (broken image) to see where the image located on your server, then make proper adjustment.
|
hey thanks i solved them
it is my bad (typo url in the upload. file) again, thanks |
It gives problems with the chmod. I'm sure this is set correct and all the paths are ok. It is showing other errors when the image is to large etc. but no upload possible.
|
How can I change the FILENAME to the USERID so that each user can only upload 1 file?
|
Quote:
This is exactly what I want when the daily folder creator is added :cool: Great hack! |
This sounds like a great hack, we also have the webpage hack installed on our forum, and have been looking for way to give our users a way to upload images to use with it.
Is V2 close to being released? If it is, I'll wait til it's ready before installing. So everyone seems to be pretty happy with this one? Any major problems they've noticed? Chris. |
Anyword on the next version?
|
Is it me, or is www.all4actions.net down/dead?
|
heres some new installation instructions, that are much more clear i think.
wonderful hack all in all |
Quote:
|
All times are GMT. The time now is 05:24 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|