vitto32
Forum Replies Created
-
Forum: Plugins
In reply to: How to aggregate social media streams in WordPressI know there is a plugin for Buddypress: https://buddystream.net/
Forum: Plugins
In reply to: [Geo Mashup] [Plugin: Geo Mashup] works well!I agree
Forum: Alpha/Beta/RC
In reply to: WP 2.9 Thumbnail Sharing on FacebookI had the same problem:
thumb image shows only in preview, not in wall. It used to work then stopped and not because of WordPress (I still have 2.8.4).
I’ve done some tests and I think the cause is the jpg format. I’ve created two identical pages with only 1 jpg but while the first one is the original (found on the web) the second one was edited in photoshop and saved as jpg for web (100% quality, so even bigger).
The second one works correctly in both preview and wall.
https://www.libreidee.org/testimage4.html
https://www.libreidee.org/testimage5.html
as you can see is not and image_src problem (I did not use it in both)my solution: I use for image_src the wordpress generated thumb (your_image-150×150.jpg) and that just works:
in header.php:<?php if(is_single()) { global $wp_query; $post_id = $wp_query->post->ID; $arrImages =& get_children('post_type=attachment&post_mime_type=image&post_parent=' . $wp_query->post->ID ); if($arrImages) { $arrKeys = array_keys($arrImages); $iNum = $arrKeys[0]; $sThumbUrl = wp_get_attachment_thumb_url($iNum); echo '<link rel="image_src" type="image/jpeg" href="'. $sThumbUrl .'" />'; } else { echo '<link rel="image_src" type="image/jpeg" href="defaultThumb" />'; } }?>
Forum: Fixing WordPress
In reply to: Is bSuite re-writing my search urls?I solved modifing bsuite.php
Around line 1780, instead of
get_option('siteurl')
use
get_option('home')
Now internal search highlightning does not works, I think the missuse of ‘siteurl’ over ‘home’ is present elsewhere.