donatien
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove commenting on the siteLook under settings->discussion:
I rebuild my sitemap manually through the admin interface. The system then also notifies google/bing/ask about the existance of the newly created sitemap. But it seems it goes about it in the wrong order, and the really fast googlebot sometimes fetches the file before it’s been recreated.
There is a checkbox for whether you want to notify Google or not, so now I rebuild, tick the notify, and rebuild again. Works, but cumbersome.
Forum: Requests and Feedback
In reply to: Plagiarism by plugin (Beautiful social web links)Like Ipstenu said, you may have granted people the right to act like this. I looked at your source code and you correctly claim to use the GNU General Public Licence (but fail to attach the licens file, which you are required to do – it’s here: http://www.gnu.org/licenses/gpl.txt).
If you look under section 7b you find that you may “supplement the terms” with among other things:
“b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it”
I can’t see that you did.
So it’s nasty in every way, but perhaps not illegal (I’m no lawyer) to do what he/she did. I do however second that the plugin should be removed for ethical reasons alone.
Forum: Plugins
In reply to: [Facebook Likes it!] [Plugin: Facebook Likes it!] not HTML validTrue, it puts a really faulty <div> in the header that makes w3c choke on the document as a whole.
If you change line ~137 in facebook-likes-it.php from
add_action('wp_head', 'fb_like_js_sdk');
..to:
add_action('wp_footer', 'fb_like_js_sdk');It’ll put the code down at the bottom of your page, where it works fine for me. Hopefully it’ll be fixed in future versions.
Forum: Plugins
In reply to: [Facebook Connect] [Plugin: Facebook Connect] BugAnother thing, please remove the style declaration in the widget and replace with a class or id for styling. The text-align: center; just about drove me nuts π
Forum: Plugins
In reply to: [Facebook Connect] [Plugin: Facebook Connect] BugGood stuff. I tried to find a better function for fetching the current page, but the best candidate seemed to be get_permalink(), but that only works for posts. In a note named “Link to current page” on http://codex.wordpress.org/Function_Reference/get_permalink they use the same code, so it seems right.
Forum: Plugins
In reply to: [Facebook Connect] [Plugin: Facebook Connect] BugSeems to work here – except for an annoying thing – after a user logged in – the page went blank. This is due to wp_get_referer() returning false. Changed the redirect from assuming wp_get_referer() returns something to:
if (wp_get_referer()) { wp_redirect(wp_get_referer()); } else { wp_redirect( $_SERVER['REQUEST_URI'] ); }That seemed to fix it for me.
Forum: Fixing WordPress
In reply to: Site Firing Blanks – Intermittantly…Works fine here (the site that is), but /wp-admin gives a “500 server error”. So you’re off to the error logs to find the reasons for that.
To deactivate a plugin manually I think you need to access the database. wp_options table, key active_plugins.. But that’s a serialized array and is easy to mess up..
Forum: Fixing WordPress
In reply to: Site Firing Blanks – Intermittantly…Have you tried inactivating the plugin to see if it makes a difference?
Is there anything in your server error logs?
How “blank” is it? Does it load anything or is it just a white page? What do you get when you do a “view source” on the page (there might be stuff there that the browser won’t show)?Forum: Fixing WordPress
In reply to: How to create link to blogsCreate a placeholder “page” for your blog. Note the URL to that page (depends on your permalink structure). Now go to options->reading and set that page as your blog page.
Link to that “page” as you would any other page.
Forum: Hacks
In reply to: Help with creating a custom field pluginHave you looked at add_shortcode? Just wrote a snippet that did exactly what I think you want using that. Sorry if I missunderstood the purpose, but I use it something like this (simplified):
function thefunction() { $mycustom = get_post_custom_values('somemeta'); foreach ( $mycustom as $key => $value ) { $mystr.=$value; } return $mystr; } add_shortcode('thetag', 'thefunction');The you just put [thetag] whereever you want in your post and it gets printed right there.
Forum: Themes and Templates
In reply to: Is it possible to display the get_post_meta array in order?I had a similar problem with multiple custom fields with the same keys and solved it by patching /wp-includes/meta.php around line 294:
$meta_list = $wpdb->get_results( $wpdb->prepare("SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list) order by meta_id", $meta_type), ARRAY_A );Just added ‘order by meta_id’ to ensure they get back in the order I entered them. Since meta_id is autoincrement in the DB this should do it, and I think it should be added to the core permanently since the current order is random (and useless).
This makes updating a problem since you’ll have to restore this hack every time π