pruma
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Minimatica] [Theme: Minimatica] Slider to Page instead of Post?Ok, quick update. It works fine with a few extra adaptions in the css.
For me it worked, when just adding the all the styles like #knicks .post, and #slider .post, a corresponding style like #knicks .page …
For the pics you also need to add
add_theme_support( 'page-formats', array( 'image', 'gallery', 'video', 'audio', 'aside', 'link' ) );to the functions.php.
I personally like this better then this solution.
Forum: Themes and Templates
In reply to: [Minimatica] [Theme: Minimatica] Slider to Page instead of Post?I know this is kind of an older thread but I have the same question.
1. @tsmith89 it is possible to have featured images for pages aswell. You just need to add page to the following call in the functions.php
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );Unfortunately if i try to edit e.g. the loop-slider.php to only display pages
$args = array( 'posts_per_page' => 4, 'ignore_sticky_posts' => 1, 'post_type' => 'page' );it doesn’t work the right way. I think one needs to modify the inital add_theme_support calls in the function.php to work the same way for pages as for posts.
Is still anybody watching this thread?
Forum: Plugins
In reply to: [User Access Manager] User Access Manager, Files not restrictedok, the uploads were readable by the authors, which had the id 0, since they weren’t logged in, so everybody not logged in could see those files. concerning the RewriteRule comenius of course comenius needs to be replaced by $1.
Forum: Plugins
In reply to: [User Access Manager] User Access Manager, Files not restrictedDoing the following seems to work. Unfortunately not for me, because I currently insert files in the frontend and simply add their id to a specific user group. Done this way the still show up, but at least the uploads from the media-library are hidden.
# uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) comenius/index.php?uamfiletype=attachment&uamgetfile=$2 [L] # RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]Forum: Plugins
In reply to: [User Access Manager] No restriction on file downloadsHello,
I’m not sure wether I’m having the same problem, because on a single install it works, but on a MU it does only partly work for subdirectory blogs.
If you try to access the file via domain/subdir/blogs.dir/#/files/…/filename it’s locked. If you call domain/subdir/files/…/filename it isn’t.
I try to add a rewrite rule to the .htaccess in the main directory, but sofar I only get 500s. Lots documentation ahead …
Forum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?Thx, I mark it as resolved.
Forum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?you’re right, tried it on a brand new install. So this is seems to be a UAM issue …
Forum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?that might be, but since e.g. the normal media library upload (via wp-admin) adds the /blog.dir/… url and it’s only working with that, how else could I get that guid into the db when uploading via home-made script.
Forum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?mmm, I didn’t read the all of the forum rules.
http://pastebin.com/PiudDZbLForum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?if you interested, here is the part of code, with the correction. But as I said I think the Return array of the wp_handle_upload should really give back a different url.
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?concerning Rule 1, i totally agree (though i believe as long as it isn’t in production you should mess with everything ;))
concerning Rule II: well i think the plugin is working fine (and is hiding those pictures completely, no thumbnails or anything visible). Only if given the wrong guid its not working (which seems perfectly fine for me). Btw if using the normal media library upload the guid in the db is fine too.
But it bothers me. When I find time, I’ll try to skim through the code and find why the wrong url is given.
Forum: Networking WordPress
In reply to: Multi-Site wp_handle_upload bug?Yes, I think there should be a better way, but it works for me. Of course I would like to set it to a generalised way.
The point is, I don’t want those pictures to be publicly viewable and I think UAM is configuring the .htaccess configuration.
When disabling this plugin, though having the wrong URL it is shown an viewable, that’s why I thought there must be a redirect in the standard .htaccess (I am not too familiar with those Rewrite Rules).Nevertheless I think the return url of:
$file_return = wp_handle_upload($_FILES[$key], array('test_form' => false));
is wrong since the it’s pointing to the /files/ directory, though the file is saved in the blog.dir (like the ‘file’ value shows and as it is on the computer).Forum: Hacks
In reply to: insert null values using $wpdb->insertI guess that’s a know issue.
http://core.trac.wordpress.org/ticket/15158
For me it works omitting all values with null (in data and format), setting it to the mysql default value.
Forum: Themes and Templates
In reply to: 404 instead of category.phpah, fixed it.
just didn’t know that you have to enter the category base /category/. Didn’t think of that, because the other categories worked.
btw I can’t tell you the adress because it’s not online yet, but thx anyway