[Desperately Seeking WordPress]Important Message regarding W3 Total Cache

Update from the kind folks at Synthesis (aff link):

Huge credit goes to Frederick Townes and the W3 Edge team for being proactive and diligent in correcting the issues that several hosts encountered. W3 Total Cache is a great plugin, which is why we recommend it to every site we host as well as providing Synthesis-specific settings in your welcome email.

Update and deploy with confidence!

whatto-knowFirst – let me say we love W3 Total Cache and will continue to recommend it as the most robust and flexible caching plugin out there. And secure. Did we say secure?

But for now – leave your W3 Total Cache UN-upgraded.  There have been some issues with upgrades that are wide spread enough to warrant a bit of caution. Check back to this post for updates and when we think its safe to upgrade, we will let you know. This information comes from the smart people at Synthesis, who I trust with my hosting needs, and recommend exclusively for anyone who gets more than 1,200 unique visitors a day to their WordPress site.

[Desperately Seeking WordPress]Important Message regarding W3 Total Cache

Update from the kind folks at Synthesis (aff link):

Huge credit goes to Frederick Townes and the W3 Edge team for being proactive and diligent in correcting the issues that several hosts encountered. W3 Total Cache is a great plugin, which is why we recommend it to every site we host as well as providing Synthesis-specific settings in your welcome email.

Update and deploy with confidence!

whatto-knowFirst – let me say we love W3 Total Cache and will continue to recommend it as the most robust and flexible caching plugin out there. And secure. Did we say secure?

But for now – leave your W3 Total Cache UN-upgraded.  There have been some issues with upgrades that are wide spread enough to warrant a bit of caution. Check back to this post for updates and when we think its safe to upgrade, we will let you know. This information comes from the smart people at Synthesis, who I trust with my hosting needs, and recommend exclusively for anyone who gets more than 1,200 unique visitors a day to their WordPress site.

The post Important Message regarding W3 Total Cache appeared first on Website Services for Small Businesses.

[WPMU Tutorials]Delete spam from all blogs

Boone has a nice snippet to toss in mu-plugins to safely delete spam across all network blogs.

Please note this is more for intermediate site admins.


© andrea for WordPress "Must-Use" Tutorials, 2013. | Permalink | No comment | Add to del.icio.us
Post tags: comments, spam

Check out WPeBooks.com for multisite plugins & ebooks.

Feed enhanced by Better Feed from Ozh

[BuyNowShop]BNS Login Updated to Version 2.0.1

= Version 2.0.1 =
* Released February 2013
* Documentation updates (copyright year, compatibility version)
* Added code block termination comments
* Changed MultiSite conditional to use `is_multisite`
BNS Login changelog

© 2013, Edward Caissie. All rights reserved.

[BuyNowShop]BNS Featured Category Updated to Version 2.4

= Version 2.4 =
* Assigned the string from `get_the_excerpt` to be used as the basis of the custom excerpt string
* Added conditional to only append link if there are words to be used in the excerpt
* Added termination comments to code blocks
* Added dynamic version to enqueue parameters used in Options
* Refactored code into a more OOP style
BNS Featured Category changelog

© 2013, Edward Caissie. All rights reserved.

[WPMU Tutorials]Add a global menu to your network

About a year and a half ago I released the Network Wide Menu. Tonight, I made the network wide menu available on github.

When I released it there were quite a few people hoping that it added/output a new menu on the sub sites. I’ve written a bit of code that allows you to do that. What needs to be done to use the NWM for a new menu is

  1. Register a new menu across the network
  2. Make sure that menu is registered before the regular menus are registered on the sites. This ensures that the new global menu is the first menu slot on all sites.
  3. Hide the global menu admin on the sub sites so users do not attempt to populate it with items that will never be shown
  4. Add the menu to the themes across the network

You can accomplish the first 3 items with the following:

The best place to have that code is in a small plugin in the mu-plugins folder. The earlier this code executes the better.

Now all you need to do is add the menu output to your theme and style it appropriately in each theme:


© Ron for WordPress "Must-Use" Tutorials, 2013. | Permalink | 9 comments | Add to del.icio.us
Post tags: global menu, network menu

Check out WPeBooks.com for multisite plugins & ebooks.

Feed enhanced by Better Feed from Ozh

[Desperately Seeking WordPress]Simple fix Sharebar Plugin error with WordPress 3.5

I’ve happened upon an error log today displaying:

Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/techwork.dk/public_html/wp-content/plugins/sharebar/sharebar.php on line 112 and defined in/var/www/techwork.dk/public_html/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/techwork.dk/public_html/wp-content/plugins/sharebar/sharebar.php on line 124 and defined in/var/www/techwork.dk/public_html/wp-includes/wp-db.php on line 990

(Emphasis mine.)

And then a quick google search turned up the perfect solution by Techwork.dk.

You’ll need to use FTP to be sure that you can fix any errors if they occur. Copy the file and edit it offline. Then upload it back to your server.

Warning: You need to use FTP. See above!

Find the plugin Sharebar under wp-content/plugins/sharebar.php.

Download a copy. Make the edits described below.

Line 112 looks something like this:

$results =$wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”)); $str .= “n”; 

Correct line 112 to look like this instead:

$results =$wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”, null)); $str .= “n”; 

Line 124 looks something like this:

$results = $wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”)); $str .= “n”; 

Correct line 124 to loo like this instead:

$results = $wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”, null)); $str .= “n”; 

Upload it back.

You’re done!  If you have any questions leave them below and I’ll do my best to answer!

[Desperately Seeking WordPress]Simple fix Sharebar Plugin error with WordPress 3.5

I’ve happened upon an error log today displaying:

Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/techwork.dk/public_html/wp-content/plugins/sharebar/sharebar.php on line 112 and defined in/var/www/techwork.dk/public_html/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/techwork.dk/public_html/wp-content/plugins/sharebar/sharebar.php on line 124 and defined in/var/www/techwork.dk/public_html/wp-includes/wp-db.php on line 990

(Emphasis mine.)

And then a quick google search turned up the perfect solution by Techwork.dk.

You’ll need to use FTP to be sure that you can fix any errors if they occur. Copy the file and edit it offline. Then upload it back to your server.

Warning: You need to use FTP. See above!

Find the plugin Sharebar under wp-content/plugins/sharebar.php.

Download a copy. Make the edits described below.

Line 112 looks something like this:

$results =$wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”)); $str .= “n”; 

Correct line 112 to look like this instead:

$results =$wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”, null)); $str .= “n”; 

Line 124 looks something like this:

$results = $wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”)); $str .= “n”; 

Correct line 124 to loo like this instead:

$results = $wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”sharebar WHERE enabled=1 ORDER BY position, id ASC”, null)); $str .= “n”; 

Upload it back.

You’re done!  If you have any questions leave them below and I’ll do my best to answer!

The post Simple fix Sharebar Plugin error with WordPress 3.5 appeared first on Website Services for Small Businesses.

[BuyNowShop]Pinup Meets Grunge 2.0

The theme has been updated to current standards and is now available to be downloaded from its GitHub repository. Unfortunately this theme was suspended from the WordPress.org repository due to its mature content (Really!? Yes, that was the one and only complaint.) No sense in trying explain all the details beyond that the theme is simply not publicly available from the WordPress Extend Themes repository.

Here is the theme’s screenshot … you be the judge.

The Pinup Meets Grunge screenshot image.

The Pinup Meets Grunge screenshot image.

A larger version of the screenshot is available on the theme’s home page.

© 2013, Edward Caissie. All rights reserved.

[WP First Aid]Change Twenty Twelve Home Menu Name

The WordPress default menu functions offers a great many features and options, some of which can be difficult to modify without delving into the code itself. For example, if a theme author chooses to turn “on” the “show_home” option in the default menus such as Twenty Twelve does in its functions.php template file with this code (as of this writing):

/**
 * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link.
 *
 * @since Twenty Twelve 1.0
 */
function twentytwelve_page_menu_args( $args ) {
	if ( ! isset( $args['show_home'] ) )
		$args['show_home'] = true;
	return $args;
}
add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );

Note line 194 is turning on the show_home option. If you have a look at the WordPress codex article for the wp_page_menu function you can read more about other menu options. To change the default “Home” text to something else, simply replace the word true with a word or phrase of your own choice (remember to place this new “Home” name in quotes).

Now, the best way to actually do this would be via a Child-Theme. All you need to do is create a simple Child-Theme and add a functions.php template file with a similar function as the one used in Twenty Twelve itself. Something like this would work:

/**
 * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link named "Bacon".
 */
function twentytwelve_child_theme_page_menu_args( $args ) {
	if ( ! isset( $args['show_home'] ) )
		$args['show_home'] = "Bacon";
	return $args;
}
add_filter( 'wp_page_menu_args', 'twentytwelve_child_theme_page_menu_args' );

Note the two differences: the function name; and, on line 6 the show_home option now reads "Bacon" instead of true.

This method will work with any theme that has turned on the show_home option in this fashion. The Twenty Twelve theme was used as an example as this post was inspired by this WordPress Support forum thread.

You might want to read this article as a reference for creating a Child-Theme as starting point, or a refresher if you are familiar with how to create a Child-Theme.

Planet WordPress Canada theme by WPDesigner, syndication by Pipes, FeedWordPress, and Feedburner, powered by ?