Gossamer Forum
Quote Reply
upload mod and users
I installed PUGDOG's upload mod but my clients wants to have 2 options. They don't want all users to upload images, only Special users can have option to upload images, is it possible?

Quote Reply
Re: upload mod and users In reply to
I'm redoing these mods, and cleaning them up for 2.04.

Off hand, I think you can set the upload option by wrapping the template code in an <%if special_user_field%> ... <%endif%>

If the user is not a member of thta, then they won't see the upload codes. You could also put that check at the top of Uploadxxx.cgi so that they can't 'fake' it out and try to pass that code in.

This is on the list of thigns to be added, as the management and validate featuers are updated.
I've just been sick for a few weeks, and haven't had the energy to do long stretches of work. I'm starting to catch up though ... :)


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: upload mod and users In reply to
hello after uploading the script when I click on Help on admin for upload mod it says:
"Unable to load plugin: UploadLogo (Can't locate Image/Size.pm in @INC (@INC contains: /home/XXX/XXXnythingathome-www/cgi-bin/catalog/admin /usr/lib/perl5/5.6.0/i686-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/XXX/XXXXythingathome-www/cgi-bin/catalog/admin/Plugins/UploadLogo.pm line 17, line 412.
BEGIN failed--compilation aborted at /home/XXX/XXXnythingathome-www/cgi-bin/catalog/admin/Plugins/UploadLogo.pm line 17, line 412.
Compilation failed in require at admin.cgi line 103, line 412.
)
"
so I don't even know how to use the script, I can see it created some template files. Can you tell how can I get the help file or how to fix this problem. So if you re-write the Mod do I have to pay you again? or its free upgrade?

Quote Reply
Re: upload mod and users In reply to
You are missing the Image::Size module

Try this from telnet:

perl -MCPAN -e 'install Image::Size'

You will need to be root to do this. If you don't have root access ask you host to install Image::Size.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: upload mod and users In reply to
Image::Size is required to do the image processing. It's a simple, low over head module compared to Image::Magick. You can probably even install it in your own directory, as long as you point to it.

Upgrades are free in this series.

BTW.. if you are not uploading images, you can edit out the routines that
call Image::Size, or I can do it for you.

Eventually these routines, and others will be in an externally called module, so that the plug-in will run as a "file upload" module, to which you can add a very complete image processing/testing module. Of course, that also means you could add zip and other archive processing options, or pdf checkers, etc. I'm not getting into that, but the same "hooks" will work for any add-on module.

This will happen most likely after the release of the next Links version with the "Filetype" field.





PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum