foxinni
Forum Replies Created
-
Forum: Hacks
In reply to: Use checkboxes in wp_dropdown_categoriesUse
wp_category_checklist()
orwp_terms_checklist()
.https://codex.www.ads-software.com/Function_Reference/wp_terms_checklist
$args = array( 'descendants_and_self' => 0, 'selected_cats' => false, 'popular_cats' => false, 'walker' => null, 'taxonomy' => 'author', 'checked_ontop' => true ); <ul class="cat-checklist category-checklist"> <?php wp_terms_checklist( $post->ID, $args ); ?> </ul>
Forum: Fixing WordPress
In reply to: get_template_part in template not workingHaha. Amazing what you can do once you realize no-one else out there is going to help you with your problems.
Remember PHP error reporting and if(function_exist(‘..’)) when working with PHP.
Cheers,
MForum: Plugins
In reply to: [Facebook] [Plugin: Facebook] Publish to fan page setting DisabledCheck if you are properly ‘allowing’ the app. I had the setting on [Disabled] but then I just allowed Facebook to connect and was able to select from the drop down list the Facebook Page I wanted to post to.
Look for this at the top of the page. https://foxinni.com/screens/facebook_error-20120910-234439.jpg
Hope it helps.
Forum: Fixing WordPress
In reply to: Problem with WooThemes Original Premium News ImagesHi All (again)
@betzy: You’re doing it wrong. ?? You don’t need to add the custom field manually. It’s already been created at the as a Custom Setting, perhaps just lower down the page… https://foxinni.com/screens/cf-20100719-123944.png
Further more I think I’ve found a possible fix. One has to add a override into the framework admin-interface.php file. I’m not sure if it works.. but it should bypass the error message, causing the WP file upload function to return to soon because of the error check.
Here is the possible fix: https://foxinni.com/screens/upload_fix-20100719-123127.png
Good Luck.
FoxForum: Networking WordPress
In reply to: Comments on Inner Multisite not working, 404 error on Post URLAs I expected it was a .htaccess issue.
I added the following RewriteRule to the (inner) multisite .htaccess:
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-comments-post.*) $2 [L]
Entire file looks like this now:
RewriteEngine On RewriteBase /demo/ RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-comments-post.*) $2 [L] RewriteRule . index.php [L]
I hope this helps anyone and is a valid solution.
Cheers,
FoxForum: Fixing WordPress
In reply to: Problem with WooThemes Original Premium News ImagesHey all,
Our forums also seems to be buzzing with this issue.
The “Specified file failed upload test” comes directly from the
/wp-admin/includes/file.php
more specifically thewp_handle_upload
function. I know this because I wrote it all myself fro the WooFramework. ??Many times the users who have issues with the “Custom Field” uploader also have issues with their normal WP Uploader; sometimes not.
For more detail:
// A properly uploaded file will pass this test. There should be no reason to override this one. if (! @ is_uploaded_file( $file['tmp_name'] ) ) return $upload_error_handler( $file, __( 'Specified file failed upload test.' ));
As you can see, the explanation says that a properly uploaded file will pass the test. So the error must be due to the file being “Put” some where after the upload… only not to be put there at all. Hence a permissions error.
MANY people have no problem at all, where some claims it happened “all of a sudden/overnight”.
I’m personally stumped as I’ve not worked on the uploader to quite a while seeing that it’s working really well.
I’m still open to suggestions. As I’m trying to keep free and paying customers happy. ??
Cheers,
Fox
WooThemes DeveloperForum: Fixing WordPress
In reply to: Add new Plugins Subpanel LinkSo many errors, so little support… *sigh*
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined method MagpieRSS::get_item_quantity()The error exists because the feed it’s suppose to be feeding from is not valid, missing or other. But it has a epic response to failure.
Make sure the feed works when using the function.
Also make sure to have the upgraded fetch_feed function and not the fetch_rss function like the old Pre 2.8 WordPress releases.
M
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined method MagpieRSS::get_item_quantity()FFS wordpress… they’ve been downgrading their RSS feed functionality time after time.
I get the get_item_quantity failing on several other peoples wordpress machines but not mine or my fellow developers.
The get_items fails too.
I will post a fix today as it’s my job to get this working, seeing that the codex example boms out. *sigh* https://codex.www.ads-software.com/Function_Reference/fetch_feed
M
Forum: Plugins
In reply to: Using WordPress Upload System in a PluginYeah there is the wp_handle_upload situated in the /wp-admin/includes/file.php
I use that to to get the files into wordpress… but i’m looking for something that ads it to a post as an attachment.
-m
Forum: Plugins
In reply to: wp_handle_uploadBump..
Forum: Fixing WordPress
In reply to: index.php — How To Hide Posts based on Tags?Is there an easy way to get the Tag ID from just the tag name?
As far as i can see it’s really NOT that simple. ??
Forum: Plugins
In reply to: wp_handle_uploadIf I go to wp-admin/includes/file.php on line 297 and comments out
// Move the file to the uploads dir $new_file = $uploads['path'] . "/$filename"; if ( false === @ move_uploaded_file( $file['tmp_name'], $new_file ) ) { return $upload_error_handler( $file, sprintf( __('The uploaded file could not be moved to %s.' ), $uploads['path'] ) ); }
Then the correct return is produced, but obviously the file does not get uploaded. If gotten this to work perfectly on a custom admin page.
Forum: Plugins
In reply to: wp_handle_uploadI’ve been trying for hours now to get this fixed!
Exact same problem. Any help will be great.
Thanks.
Forum: Plugins
In reply to: [Plugin: Pop Menus] some advice :-)Hey,
The initial version was a bit bare, but I just beefed it up to V.1.1.
I’ve made the title more descriptive, ie. “Pop Menus for WP-Admin” along with a bunch of updates, browser compatibility and a few other addtions.And some screenshots. ??
Thanks.