Josh Maxwell
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Adding mime types with pluginIpstenu, I thought the same thing at first, but when I added the extensions to that page, it still wouldn’t work.
However, I did end up figuring it out! ??
Here’s the new plugin code. If anyone decides to use it: be sure to save code as
extended-mime-types.php
inside a folder calledextended-mime-types/
. Also, create a text file calledmime-types.txt
inside ofextended-mime-types/
.mime-types.txt
must be formatted as follows:doc,doct application/msword pdf application/pdf
Forum: Fixing WordPress
In reply to: File Type not permitted – Word .doc fileFigured it out! ??
Here’s the new code. Be sure to save code as
extended-mime-types.php
inside a folder calledextended-mime-types
. And create a text file calledmime-types.txt
.mime-types.txt
must be formatted as follows:doc,doct application/msword pdf application/pdf
Good luck!
Forum: Fixing WordPress
In reply to: File Type not permitted – Word .doc fileI’ve been having the same issue with WPMS.
However, I’ve come up with a plugin to do the trick. You install it then activate it network wide. Then any mime type added to the associated txt file will be added as an allowed file type. The only problem is that I continue to receive errors.
See this forum post for more info on the errors and this is the code.
Any help would be appreciated!
Forum: Networking WordPress
In reply to: Adding mime types with pluginExcellent! I look forward to using this now!
Found the issue. Thanks for the reminder to check plugin conflicts first. ??
Forum: Plugins
In reply to: [Adminimize] [Plugin: Adminimize] Adminize with WordPress MU / NetworkThat’s what I’ve found to be true. No luck in making it MU friendly yet either on my end. ??
Forum: Themes and Templates
In reply to: Help with excerpt appreciatedThanks got it.
// Excerpt function for Featured Post function featured_post_excerpt($text) { global $post; if ( '' == $text ) { $text = get_the_content(''); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $text = strip_tags($text, ''); $excerpt_length = 100; $words = explode(' ', $text, $excerpt_length + 1); if (count($words)> $excerpt_length) { array_pop($words); array_push($words, ' [...]'); $text = implode(' ', $words); } } return $text; } // Excerpt function for Recent Posts function recent_post_excerpt($text) { global $post; if ( '' == $text ) { $text = get_the_content(''); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $text = strip_tags($text, ''); $excerpt_length = 30; $words = explode(' ', $text, $excerpt_length + 1); if (count($words)> $excerpt_length) { array_pop($words); array_push($words, ' [...]'); $text = implode(' ', $words); } } return $text; } /* ----- Two Loops ----- */ // Featured Post remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'featured_post_excerpt'); the_excerpt(); remove_filter('get_the_excerpt', 'featured_post_excerpt'); add_filter('get_the_excerpt', 'wp_trim_excerpt'); // Recent Posts remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'recent_post_excerpt'); the_excerpt(); remove_filter('get_the_excerpt', 'recent_post_excerpt'); add_filter('get_the_excerpt', 'wp_trim_excerpt');