Michael Fields
Forum Replies Created
-
Forum: Plugins
In reply to: Artist in search of image plug-inI am an artist, and I am searching for a plug-in that would allow me to not only upload multiple images as the same time
WordPress already supports this via the Flash Uploader. Just put all the images that you want to upload in the same folder on your computer then when you use the media uploader, you can select as many images as you like.
but also one that might let me crop the images the way I want..
Although WordPress doesn’t currently support image editing, this feature will be added in 2.9 which should be out soon but if you can’t wait, I’ve heard good things about this plugin:
http://ww.wp.xz.cn/extend/plugins/scissors/
Which should tide you over until 2.9 is released.
No problem, glad it worked out for you!
Oh, I see you have to add the registers to functions.php to get this working.
Can these be removed from t-homepage.php?
Yep. If you add them to functions.php you should be able to add widgets in you admin. Sorry for the oversight on my part.
Forum: Fixing WordPress
In reply to: Issues with image size using the gallery shortcodeCan’t help unless I know what is engaging the lightbox. Is it a plugin? Has it been hard-coded into your theme?
Forum: Plugins
In reply to: instatiate functions.php classConverting your functions to methods of an object is a great idea! I do all of my WordPress coding this way now-a-days. Here’s what I have found to work:
functions.php: instantiate here.
$my_class = new $my_class(); class my_class{ // class stuff }The object
$my_classis now available to be used in most template files save header.php, sidebar.php and footer.php due to the fact that your theme is (most likely) using the following template tags to include these files:get_header(),get_sidebar()andget_footer().When a function includes a file, that file inherits the scope of the function, therefore
$my_classis not defined in header.php, sidebar.php and footer.php.The easiest way around this is to declare
$my_classas global at the start of each included template file that is accessed via a function.This drove me CRAZY until I read the php documentation regarding variable scope.
Best wishes,
-MikeForum: Plugins
In reply to: [Plugin: Events Calendar] JS and CSS loaded in every pageOn (or around) line 200 of events-calendar.php you will find a line of code that looks like this:
if(isset($_GET['page']) && strstr($_GET['page'], 'events-calendar')) {Please try the following code instead – you will need to replace 999 with your events page’s ID:
if( is_page( 999 ) ) {Please note that this is considered “hacking” the plugin and you will need to repeat this if you ever decide to upgrade the plugin.
Hope this helps,
-MikeForum: Plugins
In reply to: Editing the NAME of a plugin fileOPTION 1: You can log in to your site via FTP and change the file name on your server just as you would on your own computer. If you have never done this, please see this video about installing WordPress via FTP. Note: The FTP part starts at 4:11.
OPTION 2: Many hosting providers enable you to edit your files via a web-based interface. I would recommend calling support and asked them if they provided such an interface.
Best of luck,
-MikeMike, are you saying that I would need to register the widgets separately because the sidebar is already registered?
Opps, I wrote this out incorrectly, you will need to register the lists as “Sidebars” – not “Widgets”… sometimes all this WordPress jargon can get confusing 🙂
Here’s a working Page Template that should allow you to create dynamically editable areas on your home page. You will need to copy this code, paste it into a new file and save as t-homepage.php. Upload this file to your site’s current theme directory.
You can then create a new page in the WordPress Administration Panels and set it’s Page Template to “Frontpage”.
The template below will generate a WordPress loop width 2 widgetized regions below it.
Hope this Helps,
Mike<?php /* Template Name: Frontpage Author: Michael Fields License: GPL 2 */ /* Register widgetized area with WordPress */ register_sidebar( array( 'name' => __( 'Homepage 1', $platypus->locale ), 'id' => __( 'homepage_1' ) ) ); register_sidebar( array( 'name' => __( 'Homepage 2', $platypus->locale ), 'id' => __( 'homepage_2' ) ) ); /* Helper function which prints a single widgetized area. */ function mf_custom_sidebar( $id ) { print "\n\n" . '<div id="' . $id . '">'; print "\n\t" . '<ul>'; dynamic_sidebar( $id ); print "\n\t" . '</ul>'; print "\n\t" . '</div>'; } get_header(); print '<div id="content">'; /* WordPress Loop Condensed. */ if ( have_posts() ) { while ( have_posts() ) { the_post(); the_title( '<h1>', '</h1>' ); the_content(); comments_template(); } print '<div class="clear"></div>'; } /* Create as many Widgetized Areas Here. */ mf_custom_sidebar( 'homepage_1' ); mf_custom_sidebar( 'homepage_2' ); print '</div>'; get_sidebar(); get_footer(); ?>Forum: Themes and Templates
In reply to: How do I remove “Pages” above the page links?<?php wp_list_pages('title_li='); ?>Forum: Plugins
In reply to: Built in plugin management and removing idle scripts@delayedinsanity – Thanks for the link to Ozh’s script. That looks really helpful, and sorry for the slow response, it’s rare that I look at old posts past the first page.
@jeffr0 – I agree that a validation team or a gated directory are not really good solutions to poorly written/outdated plugins. One thing that the WordPress team has implemented that I am really excited about is the new “Compatibility” feature for each plugin’s page. Hopefully this feature will become a trusted resource that users will check before installation.
Another interesting idea might be a General Housekeeping Contest which could serve to get many developers digging through the plugins directory, locating non-standard code and bringing it up to par. I’d be down to participate in this. I recently suggested a similar idea that revolves around themes here:
http://www.wptavern.com/forum/general-wordpress/1069-you-joining-premium-mod-competition.html#post9282Forum: Plugins
In reply to: Custom Write PanelsHey Devin, Have you tried the following for your textarea element:
echo'<textarea name="'.$meta_box['name'].'_value" rows="1" cols="40" style="margin:0;height:4em;width:98%;">' . $meta_box_value . '</textarea><br />';I don’t think they work with value attributes 🙂
Forum: Fixing WordPress
In reply to: Why does it search for “ie_hacks.css” in the post subdirectories?No problem, ellohn. Glad to hear that you got it to work!
Forum: Fixing WordPress
In reply to: Why does it search for “ie_hacks.css” in the post subdirectories?John, I answered a question similar to this a while back, please read this thread and see if it makes sense to you, I think that it is the same kind of problem. Let me know how it works for you.
Forum: Themes and Templates
In reply to: Looking for a themeThis is the only one that I have seen that provides the functionality that you are looking for: P2. There might be more though and I would be interested in finding out if anyone else knows.
I think that widgets might be your best bet. There is a great tutorial here. on creating them.
In your scenario, I would create multiple html lists in Page Template. You would then need to register these lists as widgets in your functions.php file. FYI – Widgets do not have to be limited to a “sidebar” as a sidebar is basically an unordered list as far as WordPress Core sees understands it.
Hopefully this will lead you in the right direction!
-Mike