ThorHammer
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Comments in multisite and moderationBut… doesn’t that mean that the blog owner, the current blogs administrator, has to manually approve all comments on his blog? I want this approvement to happen automatic since only logged in users on the multisite are able to comment.
Forum: Hacks
In reply to: Mystery from error logHm. After I un-installed Role Scoper the error log stopped getting new entries…
It might mean that the Plugin, or it’s configuration or setting did something or influenced something it shouldn’t.Forum: Plugins
In reply to: [Menus] Please explain some setting optionsNice!! I am looking forward to see it! Cause this plugin really is a must for a multisite install π
Forum: Hacks
In reply to: Two PHP-questionsYES!!!!
My hero!!! You solved it!!
Please accept a virtual beer from me π
Forum: Hacks
In reply to: Two PHP-questionsThanks for your reply and investigation!
Hm, I am using a child version of twenty twelve and this gravatars are meant to show up in widgets inside my two sidebars. The widget is custom built (not by me, but a professional) and it takes the last comments from two categories in a multisite install and cache the result and extracts data from the cache and displays it in the widget.
It’s shown on the left and right sidebar here: (if you are lucky and get there before the cache is emptying itself and the sidebars are empty):
http://www.litteraturbloggen.noHere is a bit more from the code:
foreach($_posts as $blog => $posts) { $the_post =& $posts[0]; if( is_array($the_post->comments) && count($the_post->comments) > 0 ) { $the_comment =& $the_post->comments[0]; if( $the_comment->comment_author_email ) { $the_comment->author_avatar = sprintf("http://www.gravatar.com/avatar/%s?s=68&d=mm", md5($cdata['comment']->comment_author_email)); } else…etc.
Forum: Hacks
In reply to: Two PHP-questions1. worked, thank you!
2. Still doesnt’t work. I changed the code like this:
if( $the_comment->comment_author_email ) { $the_comment->author_avatar = sprintf("http://www.gravatar.com/avatar/%s?s=68&d=mm", md5md5( strtolower($cdata['comment']->comment_author_email))); } else { $the_comment->author_avatar = "http://www.gravatar.com/avatar/00000000000000000000000000000000?s=68&d=mm"; }And I show it like this:
<img src="<?php print $comment->author_avatar; ?>" alt="<?php print $comment->comment_author; ?>" />The output in source is still the mysterious gravatar and looks like this:
http://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?s=68&d=mmWhile it should look like this:
http://1.gravatar.com/avatar/7b5aa914b8010f629094a97a117861d6?s=96&d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&r=GSo I am still a bit lost regarding this one …
Forum: Themes and Templates
In reply to: [Twenty Twelve] The MENU button is always there..I don’t have the slightest idea why, but now it’s gone.
Forum: Fixing WordPress
In reply to: hacked!I managed to cope with it… luckily, I take backup of everything reguraly. Let this be a warning to everyone: even if you have upgraded to the latest wordpress you are never secure from those … I am in lack of words.
So make it to a routine:
At least every week:
Backup your entire wp-content
Backup your database
Or use a plugin, backup to dropbox or similar.Forum: Networking WordPress
In reply to: Users on blogsThank you! That really saved me for a lot of work! π
Forum: Fixing WordPress
In reply to: update wordpressDashboard–>Tools–>Export
you should also backup your database, look here:
Forum: Plugins
In reply to: [Multisite Global Search] Can't Activate PluginHow is your multisite organized? Sub domains or in folders? My multisite is in folders, with 20 separate sites, and this plugin works like a charm for me.
Forum: Themes and Templates
In reply to: [Twenty Twelve] menu disappeared*blush* … I deleted one dot in the import css rule …. it works as a charm again. Sorry. So much for this: .
Forum: Themes and Templates
In reply to: Child theme and functions.phpIt worked! Just one thing…
In this code:
if ( ! function_exists( 'lbs-forside_widgets_init' ) ) :I had to get rid of the –
So I ended with:
if ( ! function_exists( 'lbsforside_widgets_init' ) ) :Forum: Themes and Templates
In reply to: Child theme and functions.phpThanks you for your reply!
Then I will finally take the giant leap … πForum: Themes and Templates
In reply to: Child theme and functions.phpOh… I forgot, above the code above:
if ( ! function_exists( 'lbs-forside_widgets_init' ) ) :
And after the code above:endif; add_action( 'widgets_init', 'lbs-forside_widgets_init' );Since these sidebar will be removed from the mother theme they will exist only in my child theme. I am a bit anxious to put this into the empty functions in my child theme due to the near death experience I got when I got a fatal error when the child theme had the same functions.php as the mother. Is this safe to use now? Will the child accept both these sidebars and the default sidebars in the mother with this code?