tugbucket
Forum Replies Created
-
Forum: Plugins
In reply to: [Multi-column Tag Map] known security vulnerabilityPlease update to 17.0.35 and let me know if it’s all fixed. If not, can you let me know what Jetpack says is the issue?
Forum: Plugins
In reply to: [Multi-column Tag Map] Problem with name_divider | after updating to 17.0.34Please update to 17.0.35 and let me know if it’s all fixed.
Forum: Plugins
In reply to: [Multi-column Tag Map] Warning and outdated codePlease update to 17.0.35 and let me know if it’s all fixed.
Forum: Everything else WordPress
In reply to: Automatic User Folder Creation On Upload$user_id = get_current_user_id();
$dir = '/path/to/folder/';
if (!file_exists($dir.$user_id)) {
mkdir($dir.$user_id)', 0777, true);
$contentOfFile = '';
if (!file_exists($dir .'index.php')) {
file_put_contents($dir .'index.php', $contentOfFile);
}
/* do the rest of the upload stuff here … */
}
Depending on what way you choose to build your form will determine how you use something this this. But, the idea is simple, when you attempt to upload, get the user id, check to see if the folder exists, if not, make it. Check to see if there’s a blank index file in there, if not, make it. Then continue with the usual upload process to that folder. That process will be determined by how ever you build your form so I can’t really say anything about that. The blank index file is just to prevent being able to get to the root of the folder. But if the user knows the name of the file and the URL schema, they could still get to it so you should probably use htaccess or another way to prevent accessing the folder unless it’s not really a big deal. you could always generate a random string to the folder name as well. Your call.
ex:$user_id = get_current_user_id();
$rnd = substr(str_shuffle('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'),1,5);
mkdir($dir.$user_id.'_'.$rnd)', 0777, true);
that would make a folder like 182_A8WX9 just to make really hard to guess your folder structure.@samofnine I have a fix for the title_divider but before I push an update, can you explain more about:
Also I cannot merge the special characters ( ? ? é ? ? “ into the related or next letters…
I’m not 100% sure what you mean by “related or next letters”
Forum: Plugins
In reply to: [Multi-column Tag Map] Undefined property@justgert Can you update to the latest (17.0.33) and let me know if that fixed it? Locally, it does for me.
Please update to version 17.0.33
How should A Toy Story – Alles h?rt auf kein Kommando be displayed?
notice though:
A Toy Story – Alles h?rt auf kein Kommando
is not the same as
A Toy Story – Alles h?rt auf kein Kommando
the first is an en dash or em dash and the second is a hyphen. So if your shortcode is using a hyphen and your title is using a en or em dash, then those are not the same characters and it will not sort properly.
Using: A Toy Story – Alles h?rt auf kein Kommando (note a hyphen) and using the shortcode of:[mctagmap show_posts="yes" show_navigation="yes" name_divider="|,-,+" title_divider="A" sort_alpha="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z" sort_alpha_extras="last"]
displays: Alles h?rt auf kein Kommando, A Toy Story and sorted under “A”‘
As for sorting the special characters after number, see the new value “last” https://mctagmap.tugbucket.net/options/sort_alpha_extras/
so add to your shortcode :sort_alpha="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z" sort_alpha_extras="last"
that should produce:
letters
numbers
others- This reply was modified 10 months, 2 weeks ago by tugbucket.
Forum: Plugins
In reply to: [Multi-column Tag Map] Undefined propertyCould you provide the shortcode you are using and/or the page in question?
Forum: Plugins
In reply to: [Multi-column Tag Map] Are child_of and show_empty incompatible?Sorry for the delay, hectic month. Please upgrade to 17.0.32 and see if that fixes things.
So you are asking to have multiple values for name_divider. Please update to 17.0.32 and see if that works. https://mctagmap.tugbucket.net/options/name_divider/
as for:It also doesn’t show the title Granizo
It should be under ‘#’where does it show? If I test locally with #posttitle it does sort that under #
- This reply was modified 10 months, 3 weeks ago by tugbucket.
Forum: Plugins
In reply to: [Multi-column Tag Map] Post Excerpt[mctagmap show_posts="yes" page_excerpt="yes" ]
https://mctagmap.tugbucket.net/options/page_excerpt/
note that this will display the manually created excerpt not the default WP excerpt.
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTSomething is weird. I’m testing version 17.0.31 with 400+ posts over 3 post types using
[mctagmap show_posts="yes" post_type="post,post-type-1,post-type-2" from_category="sample-category"]
and it’s returning all that would be expected.
Looking at your page, it looks like the shortcode is firing multiple times. You shouldn’t be seeing “Sorry, but no tags were found” if anything is returned.Could you email me alan[at]tugbucket.net ?
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTOkay, try 17.0.31 and let me know.
Thanks
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTPlease update to 17.0.30 and let me know if that fixes it.
Forum: Plugins
In reply to: [Multi-column Tag Map] Multisite wish…can you send me an email, alan [at] tugbucket.net? I’ve been thinking about how to do this but I have questions about what it would entail.
- This reply was modified 1 year ago by tugbucket.