ragulanfreelance
Forum Replies Created
-
I have fixed the issue by updating the accordion plugin. Thank you!
It was really good until the last month. We have updated the wordpress version 5 days back and we got this error. I have the website fully updated every month. After this month end update this issue happened.
I did. and i did checked with other facebook account too. But nothing shows on the timeline after i posting the comment here.
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewsthank you so much. its worked. You rocked!, But dont close this topic. I have to test some more in this. thank you!
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewshello, I am not a core developer to customize this. can you please help me how to customise the insert hook with our plugin.
function my_project_updated_send_email( $post_id, $post, $update ) { // If this is a revision, don't send the email. if ( wp_is_post_revision( $post_id ) ) return; $post_url = get_permalink( $post_id ); $subject = 'A post has been updated'; $message = "A post has been updated on your website:\n\n"; $message .= $post->post_title . ": " . $post_url; // Send email to admin. wp_mail( '[email protected]', $subject, $message ); } add_action( 'wp_insert_post', 'my_project_updated_send_email', 10, 3 );
- This reply was modified 6 years, 7 months ago by Jan Dembowski. Reason: Formatting
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewsI am talking about front end too. in front end as well the views not getting updated right away. For the backend views i got the code from your Forum only.
below are the codes i implemented to display views in backend posts page and front end post views count.
function wp5413_set_starting_views_count( $post_id, $views ) { global $wpdb; // This post/page hasn't been tracked by WPP yet, so // let's set its starting views count to 98 views // (the post count will increment +1 after this, so // it'll be 99 in the end). if ( ! $result = $wpdb->query( "SELECT pageviews FROM {$wpdb->prefix}popularpostsdata WHERE postid = {$post_id};" ) ) { $now = WPP_helper::now(); $curdate = WPP_helper::curdate(); $wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->prefix}popularpostsdata (postid, day, last_viewed, pageviews) VALUES (%d, %s, %s, %d);", array( $post_id, $curdate, $now, 98 ) ) ); $wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->prefix}popularpostssummary (postid, pageviews, view_date, view_datetime) VALUES (%d, %d, %s, %s);", array( $post_id, 98, $curdate, $now ) ) ); } } add_action( 'wpp_pre_update_views', 'wp5413_set_starting_views_count', 10, 2 ); /* * Adds the views column to Posts Manage page */ function add_wpp_views_columns($columns) { if ( function_exists('wpp_get_views') ) { $columns['views'] = 'Views'; } return $columns; } add_filter('manage_posts_columns', 'add_wpp_views_columns'); /* * Displays the views column data */ function wpp_views_columns_data($name) { if ( 'views' == $name && function_exists('wpp_get_views') ) { global $post; echo wpp_get_views( $post->ID ); } } add_action('manage_posts_custom_column', 'wpp_views_columns_data');
- This reply was modified 6 years, 7 months ago by Jan Dembowski. Reason: Formatting
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewsthe 99 views should get updated right away once the new post is published. please help me with this
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewsCheck the screenshot for your reference.
I checked both backend and front end. But the views not getting updated with 99 for new posts. but its updated for one post.
- This reply was modified 6 years, 7 months ago by ragulanfreelance.
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewsHello, its updated for one post. and i tried to test with another new post and views shows 0. why the views not getting updated with 99 views for newly created posts. Please check and let me know.
Forum: Plugins
In reply to: [WordPress Popular Posts] Start Views Count from 99 viewsHi, No its not working. Can you please test and provide working code. here is the link i am checking the views. it shows 0 view. I added your given code and created one new post to check the views. But it shows 0. Not 99.
https://theduran.staging.wpengine.com/test/
Or else we can just make +99 views on the all post even if the post just created it should have 99views and if the posts already 1000 views and add +99 , so it should show 1099. whatever the solution is ok for me. So just provide the code to achieve this.
Please check it and help me with the updated code please.
- This reply was modified 6 years, 7 months ago by ragulanfreelance.
Forum: Plugins
In reply to: [Facebook Social Stream] Stream stopped working..I just see it..But can you please elaborate what needs to be done to fix this ?
Thanks for your help…
Thanks!
Forum: Plugins
In reply to: [Facebook Social Stream] Stream stopped working..Thanks!!..Its worked..but the in stream the videos are not displaying..Can you please tell me what was the issue ?
Forum: Plugins
In reply to: [Facebook Social Stream] Stream stopped working..Can you please tell me how to update it to 1.4.2 ?