ivnus
Forum Replies Created
-
I made the following changes to make the “Claim” a button in its own column on the posts admin page and change the admin url to admin_url(). I’m using the custom status “available story” and giving everyone with “write_posts” capability the option to claim a post. Also, I added “Already Claimed” when a post is claimed.
/* * Add custom claim column in the posts view */ function remove_row_actions( $actions ) { if( get_post_type() === 'post' ) unset( $actions['view'] ); return $actions; } function add_claim_column_modify_post_table( $column ) { $column['claim'] = 'Claim'; return $column; } add_filter( 'manage_posts_columns', 'add_claim_column_modify_post_table' ); function add_claim_button_modify_post_table_row( $column_name, $post_id ) { $post = get_post($post_id); switch ($column_name) { case 'claim': if ( $post->post_status == "available-story" && current_user_can( 'write_posts' ) ) { add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 ); echo '<a href="' . admin_url('assign.php?post='.$post_id.'&action=assign') . '" class="button-secondary" title="' . esc_attr( __( 'Claim this Article' ) ) . '">' . __( 'Claim' ) . '</a>'; } if ( ($post->post_status == "assigned" || $post->post_status == "in-progress" )&& current_user_can( 'edit_post', $post_id ) ) { echo '<script>function unClaim_'.$post_id.'()'. '{ var r = confirm("Are you sure you want to unclaim this post?\n You will lose all work done on the article.");'. 'if (r==true){ window.location.href = "' . admin_url('assign.php?post='.$post_id.'&action=unassign') . '"; }}</script><a href="javascript:void(0)" onclick="unClaim_'.$post_id.'()" class="button-secondary" title="' . esc_attr( __( 'Unclaim this Article' ) ) . '">' . __( 'Unclaim' ) . '</a>'; } if ( $post->post_status == "assigned" && !current_user_can( 'edit_post', $post_id ) ) { echo 'Already Claimed'; } break; default: } } add_filter( 'manage_posts_custom_column', 'add_claim_button_modify_post_table_row', 10, 2 );Thank you ballhogjoni and Daniel for taking this on. Can’t wait to see the final snippet.
I’m seeing on my dev server that it takes 3 post page refreshes to see the post maked as “assigned”
+1 I would love to see this feature!
Would be great to allow the author that claims the post to add a co-author after claiming.
Forum: Plugins
In reply to: [Ad Injection] [Plugin: Ad Injection] Multi-Site problemsI would love to see this feature implemented. +1
Sorry, I meant when I select all 6000 images, it will only process 10 at a time and then do the next 10.
Forum: Plugins
In reply to: [Extended Super Admins] [Plugin: Extended Super Admins] Short list of CapsAnswer to my question:
The capabilities displayed on the plugin management page are pulled from the user that’s managing the settings. WordPress doesn’t really have any place in which it stores a comprehensive list of capabilities (partially because some capabilities could potentially be added for a single user on a single page, so there would be no reliable way to catalog them all). Therefore, in order to gather the list of capabilities, this plugin simply retrieves the list of capabilities that the current user has.
If you are simply a Super Admin, without any role on the root site, you will only see the network capabilities; as WordPress doesn’t explicitly assign any capabilities to the Super Admin user. However, if you make yourself an Administrator on the root site, you should see quite a few more capabilities appear on the plugin management page.
Quoted from http://plugins.ten-321.com/extended-super-admins/#comment-3753
I’m also having problems with the /author-sitemap.xml. It loads, without the XSL css (which is fine), but Google doesn’t like it at all. I looked at the links in the site map xml, they are not broken yet Google Webmaster Tools is saying:
—-
Errors
Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.
—-Any ideas Joost de Valk? Thanks again!
I went ahead and keep the new WordPress SEO plugin and installed XML Sitemap Feed. Only problem is it doesn’t include post images like Yoast’s news sitemap does.
I’m willing to donate some money for this plugin to be updated.
I’m also having the same issue.
It seems to be logging into facebook ok….but its the redirect to wordpress afterwards that is the problem.
I’m running nginx, is there some kind of redirect that I need to do for the Facebook Hybridauth to work?
Read somewhere about the CURLOPT_SSL_VERIFYPEER => false being set in the base-facebook.php.
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] TC do not detect user logoutI’m also showing the logout button, but when I navigate or refresh the page…it shows me logged out.
W3 Total Cache is browser caching the page and showing that I’m still logged in.
anyone found a fix for this yet?
Yoast Google News Plugin NGINX Rewrite Rules
In order to get NGINX to redirect news_sitemap.xml to the sitemap PHP query, you will need to add the following to your server block, it should look something like this:
server { server_name YourDomain.com; root /var/www/YourDomain/public; # Fix Yoast SEO Sitemaps rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; rewrite ^/news_sitemap\.xml$ /index.php?sitemap=wpseo_news last; }This is the additional line that is required for the Google News Sitemap
rewrite ^/news_sitemap\.xml$ /index.php?sitemap=wpseo_news last;Then you just need to tell nginx to re-read it’s config files. In Ubuntu use the command service nginx reload. Hope that helps. – from Jonathan Warren.
Fixed…see below for Google News Sitemap Rewrite Rule
I would love to see this as well….because if they have an account with the same username/name as their facebook, twitter, or google….it creates another username that looks something like this:
sc_3e8283aaa098f1dca1e8d85e598f2e5e
I would love to donate to have this fixed?
such a great plugin…would love to help extend it!I’m have a similiar issue, when a user account already exists with the same name…it will created a new user account that looks like this:
sc_3e8283aaa098f1dca1e8d85e598f2e5e
How can we check if the user already exists?