Recent Changes - Search:

PmWiki

pmwiki.org

Uploads-Talk

Solution: Used Uploadify. Working on making a button for PmWiki now. -Jagtig

I'd like to include some pages that contain some attachments. But I don't want to have to add {$Group}./ or {$FullName}./ to all Attach links: I'll forget most of them! Any workaround? Tia.

How do I prevent files being uploaded with no extension?

See the Uploads Admin page

How can I set a password required when using the custom upload button?

Please give a reference to "custom upload button" and a working example. The general answer is that you password protect the related action.

Subdirectories?

Is it possible to create subdirectories for organizing attachments (within the same group)? Specifically, I'm thinking of images... would be very handy....

thanks, Mike

Yes, see the variable $UploadPrefixFmt in UploadsAdmin. --Petko December 28, 2009, at 03:48 AM


Is there a way to hide the "triangle" behind attachment links? Perhaps make it visible to logged in users only? Thanks.

Add to your config.php :

To hide the "triangle"
$LinkUploadCreateFmt = "<a rel='nofollow' class='createlinktext' href='\$LinkUpload'>\$LinkText</a>";

To restore the default behavior to only logged in users (assuming using AuthUser)
if (@$_SESSION['authid']) { $LinkUploadCreateFmt = "<a rel='nofollow' class='createlinktext' href='\$LinkUpload'>\$LinkText</a><a rel='nofollow' class='createlink' href='\$LinkUpload'>&nbsp;&Delta;</a>"; }

Antony Templier October 12, 2011, at 08:19 AM

Thanks, that worked great for hiding the delta! But it is not showing up for logged in users. Could the problem be that I'm using Cookbook.UserAuth2?

John October 12, 2011, at 9:51 AM (EST)

Yes, this tip is for the default authorization system : AuthUser. For UserAuth2, maybe you can try this (but i don't use it, you 'll have to validate yourself) :

To restore the default behavior to only logged in users (assuming using UserAuth2)
if (@$GLOBALS['IsUserLoggedIn']) { $LinkUploadCreateFmt = "<a rel='nofollow' class='createlinktext' href='\$LinkUpload'>\$LinkText</a><a rel='nofollow' class='createlink' href='\$LinkUpload'>&nbsp;&Delta;</a>"; }

Antony Templier October 12, 2011, at 11:36 AM


This is a talk page for improving PmWiki.Uploads.

Edit - History - Print - Recent Changes - Search
Page last modified on March 11, 2014, at 07:39 PM