Nahum
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Activity Plus] Links Only, Disable Image/Video@bojan (&tanpage)
yes, thanks to you both. but as I stated in the original post…I’m aware of the CSS option.
Beyond this option, I was wondering only if it might be considered to build an option/setting or have a pluggable function to disable each different component: video|photo|link
Support for other profile/group tabs created by other bp plugins
I didn’t even try it with the widget…is that where the function was ignoring? Because it is working with a custom template tag.
Yes the ability for the plugin just to accept whatever is in use automatically would be cool I think. Then there’s no need to set the different options. Especially handy if we use a mix of all types.
quick fix for me was to change line 1062 in the wordpress-popular-posts.php
$path = get_the_post_thumbnail( $p->id, array($tbWidth,$tbHeight));//$this->get_img($p->id, "featured");
and line 1065…
$thumb .= "{$path}";
and this is using the featured image option.
I hope there is a solution soon. I really enjoy this plugin one of my top 3 favorites.
Looking at how the thumbs get displayed, would be great to have a fallback system, from Featured Image to Custom Field to Image in Post to the default no-image.
Having the same issues. I thought it was an MU supercache cdn issue, but now I see others have the same problem.
the two image options…”Featured”, “First Post Image” are not producing a working thumbnail. Custom Field works but I don’t use the custom field for images I’m afraid.
Thanks. I’m still having issues with the thumbnails but I think it’s a supercache/cdn and multisite issue.
Forum: Fixing WordPress
In reply to: Query All Posts made from Mobile AppStill curious about this. Are mobile posts a post format?
I have the plugin activated sitewide, so I access the admin screen from wp-admin/network — I can see the screen and options…but after I hit save I get a wp prompt saying I don’t have sufficient permissions to do this.
This seems to be working better…
add_action( 'template_redirect', 'authorblog_template_redirect' ); function authorblog_template_redirect() { global $wpdb; $id = get_query_var( 'author' ); //two lines from bp_adminbar_blogs_menu() in bp-core-adminbar.php $blogs = get_active_blog_for_user( $id ); if ( is_author() ) { // get_usernumposts() is deprecated since 3.0 $post_count = count_user_posts( $id ); if ( $post_count >= 0 ) { //This line could also be wp_redirect wp_redirect( $blogs->siteurl ); exit; } } }
The user’s blog must be set as their primary site under My Sites settings on there dashboard.
Is there anyway to ensure that that their primary blog is always their site?
add_action( 'template_redirect', 'authorblog_template_redirect' ); function authorblog_template_redirect() { $id = get_query_var( 'author' ); global $bp; //two lines from bp_adminbar_blogs_menu() in bp-core-adminbar.php if ( !$blogs = wp_cache_get( 'bp_blogs_of_user_' . $id . '_inc_hidden', 'bp' ) ) { $blogs = bp_blogs_get_blogs_for_user( $id, true ); wp_cache_set( 'bp_blogs_of_user_' . $id . '_inc_hidden', $blogs, 'bp' ); } if ( is_array( $blogs['blogs'] ) && (int)$blogs['count'] ) { $blog=array_pop($blogs['blogs']);//the first blog } if ( is_author() ) { // get_usernumposts() is deprecated since 3.0 $post_count = count_user_posts( $id ); if ( $post_count >= 0 ) { //This line could also be wp_redirect wp_redirect( $blog->siteurl ); exit; } } }
This works at about 50%
For some reason if a user belongs to many other sites in the network as subscriber, this code doesn’t find the one that the author is Administrator on.
Any hints.
Thanks Ron, I think i’m on to something here, https://wordpress.stackexchange.com/questions/14047/how-to-hide-redirect-the-author-page
Any clues to how to tie the author id to their blog? Any references/links would be just fine. I’m willing to dig around and learn.
Forum: Plugins
In reply to: [Term Management Tools] [Plugin: Term Management Tools] Combine Tags into Oneok thanks scribu, that still works. is that a one time merge? if future tags come in from authors will they automatically fall in-line if they’ve been merged before? or is this manual one time merging?
Forum: Plugins
In reply to: [Add Users Sidebar Widget] Incompatibility with Newer versionsAm also looking to get a fix for this plugin. Upon activation getting Cannot redeclare add_user_widget()…line 106
got it. couldn’t get it to work with subscriber because wp will not recognize them enough to be the author(technically) in the post edit page & for whatever reason wouldn’t take with the increased capabilities. so had to make it contributor so wp would make nice and then give contributor the edit_publish_posts/edit_post cap. thanks for your help… btw I’m no fan of roles and caps. ??
… I do hope to see more improvements on the title tag stuff…because when I turn on the Title field it screws up all my post titles…I looked at the title_attribute thing but I don’t know how much editing I want to do to all the different files but especially plugins and widgets that I can’t edit the title too.
hehe. No that alone with edit_posts didn’t work, I actually had to have pretty much the same caps as Editor, including publish_posts/page and edit_publish_posts/pages. For the frontend editor to fully load. and by that time I’ve given subscribers acess to wp-admin dashboard so…I’ll need then another plugin to block that. ??