teonsight
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] [Plugin: Custom Post Type UI] Functions.php codeHi,
I think I’m in the same issue. My problem is: I’m looking at an attachment (image.php), and commenting it and logout. At this point I’m redirected to the parent post of the attachment.The problem should be in FB.Connect.logoutAndRedirect(\”<?php the_permalink() ?>\”), in these lines (taken from /plugins/simple-facebook-connect/sfc-comments.php):
if (!jQuery('#fb-user').length) { jQuery('#comment-user-details').hide().after("<span id='fb-user'>" + "<fb:profile-pic uid='loggedinuser' facebook-logo='true' size='normal' height='96'></fb:profile-pic>" + "<span id='fb-msg'><strong><fb:intl>Ciao</fb:intl> <fb:name uid='loggedinuser' useyou='false'></fb:name> !</strong><br /><fb:intl>Sei connesso con il tuo account Facebook.</fb:intl>" + " <a href='#' onclick='FB.Connect.logoutAndRedirect(\"<?php the_permalink() ?>\"); return false;'>Logout</a>" + "</span></span>"); jQuery('#sfc_comm_send').html('<input style="width: auto;" type="checkbox" id="sfc_comm_share" /><label for="sfc_comm_send"><fb:intl>Condividi anche su Facebook</fb:intl></label>'); }
The Loop I’m using comments_template() in is a personalized one, so I’ve tried to add wp_reset_query() before comments_template(), but doesn’t work, and after the logout I’m redirected to the parent post.
Anybody can help?
ThanksForum: Plugins
In reply to: [Plugin: The Events Calendar] Comments Unavailable On Event PostsHas a new release been released since 4 months? ??
I need a sort of “I’ll attend” “Maybe…” RSVP Facebook style, too. I think would be usefull for a lot of people.Thank you!
ByeForum: Plugins
In reply to: [Plugin: The Events Calendar] RSVP and icalRSVP would be a very useful feature! Any news?
ThanksForum: Plugins
In reply to: [Plugin: NextGEN-ImageFlow] Great pluginsI think some js is broken. Have a look at the html of the select element and copy the corresponding option value on the input text below the select element
Forum: Plugins
In reply to: Double image with thickboxIf you have a look at the source code, you should see two inclusion of the thickbox.js script.
This causes the problem. Delete one and it should be ok, that worked for me.
Bye
MatteoForum: Plugins
In reply to: Allow HTML in Category Descriptions does not work in WP 2.9I’ve got the same problem, in particular the unordered and ordered list are not rendered, while “strong” tags are.
Hope the Plugin author has some time to fix it…
ThanksForum: Fixing WordPress
In reply to: get_posts not using orderby=menu_orderWP 2.7, wp-includes/query.php at line 2041 seems like not having code for case “menu_order”
Change
case 'menu_order': break;
to
case 'menu_order': $orderby = "$wpdb->posts.menu_order"; break;
and it will work. Write this change down somwhere ??
Strange it’s not implemented.Forum: Fixing WordPress
In reply to: If exclude parent page from wp_list_pages, exclude child tooIn WP therei is exclude_tree but doesn’t seem to work properly. Does it for you? Can you try it?
Forum: Fixing WordPress
In reply to: WP 2.7 and image thumbnails nameI created this workaround to solve the problem. Basically I use the WP function “image_resize_dimensions” which calculates the dimensions of a resized image, according to Settings->Media numbers.
My workaround is supposed to be used with images that contain no other dots except the one for the extension: i.e. my.picture.jpg doesn’t work, while my-picture.jpg works.
Finally…here is the code:
//Gets the custom field of the post $strSrcImgName = get_post_meta($post->ID, ‘img_main’,1); //Gets dims of the original image list($orig_w, $orig_h) = getimagesize( $_SERVER["DOCUMENT_ROOT"].get_option(’upload_path’).’/’.$strSrcImgName ); //Calculates dims of the “medium size” resized image list($dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) = image_resize_dimensions($orig_w, $orig_h, get_option(’medium_size_w’), get_option(’medium_size_h’), false); //..here it is why it doesn’t work with images with more than one dot $aImgName = explode(’.',$strSrcImgName); $strMediumImgName = $aImgName[0].’-’.$dst_w.’x’.$dst_h.’.’.$aImgName[1];
Forum: Plugins
In reply to: Observations on Duplicate Post PluginFound! The problem with custom fields came from values with slashes.
I solved the problem with passing $meta_info->meta_key through the php function addslashes.
File /plugins/duplicate-post/duplicate-post.php lines 402 -> 406:
replace
if ($i<count($post_meta_infos)-1) { $sql_query .= "SELECT $new_id, '$meta_info->meta_key', '$meta_info->meta_value' UNION ALL "; } else { $sql_query .= "SELECT $new_id, '$meta_info->meta_key', '$meta_info->meta_value'"; }
with
$meta_value = addslashes($meta_info->meta_value); if ($i<count($post_meta_infos)-1) { $sql_query .= "SELECT $new_id, '$meta_info->meta_key', '$meta_value' UNION ALL "; } else { $sql_query .= "SELECT $new_id, '$meta_info->meta_key', '$meta_value'"; }
Forum: Plugins
In reply to: Observations on Duplicate Post PluginFirst of all thank you for this very useful plugin! ??
Does the plugin duplicate custom fields as well?
Seems like having trouble in doing this. Anybody else having the same problem?Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Post-specific galleries in SidebarSide Content plugin is now ready to support NextGen Gallery plugin and qTranslate plugin shortcodes!
This makes possible to have a specific NG gallery for each post, just write the shortcode in the Side Content Widget.
Same if you want a translated content: write in the Side Content Widget as follows:
[lang_it]Contenuti in italiano[/lang_it][lang_en]English contents[/lang_en][lang_fr]Sorry, I don’t know french :)[/lang_fr] and so on…
Thank you Alfred and Comunicrea (this is my company :P)!
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Post-specific galleries in SidebarHi,
I think the fastest way to have a NextGen gallery in a sidebar for each post/page would be to let “Sidebar Content plugin” understand and parse the NG gallery tags ( [gallery=N] and the others ).
I asked the SB plugin autor and he told me that the NG gallery filter that do this is also used for other purposes, so it’s not easy (for him at the moment) to add this functionality.
Does anyone – Alex in particular as the father of NG ?? – have a suggestion to this problem? An “easy” way to modify an NG filter to be added to SB plugin?
Thank you very much.
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Post-specific galleries in SidebarI wrote a comment on His article about the release of NextGen 1.0, hope He will read it ??
Are You reading us, poor humans, Alex? ??