وضاحت
This one is counts and dipslay all unique users hits or views for each post on our blog.
We are saving every information in the database.
Once we activate this plugin, it will automatically create table in the database.
انسٽاليشن
- Download the file
- Upload and extract the file the copy the folder into our plugin location like (wp-content/plugins/unique_post_view_conter)
- Activate the plugin from admin side.
- If you want to display uniquer user count add this function in single.php .
<?php unique_views(get_the_ID()); ?>
Unique Views - If you want to display full count add this function in single.php .
<?php total_views(get_the_ID()); ?>
Total Views
جائزا
3 سيپٽمبر 2016
total count do not work, because there is a bugg, so replace the function for this:
function update_views($post_id) {
global $wpdb;
$p2_table = $wpdb->prefix.unique_p2_table();
$views = get_total_views($post_id) + 1;
if (get_total_views($post_id) == 0)
insert_views($views, $post_id);
$result = $wpdb->query("UPDATE $p2_table SET view = $views WHERE post_id = '$post_id' AND ip_addres = '".$_SERVER['REMOTE_ADDR']."'");
return ($result);
}
تعاون ڪندڙ & ڊولپرز
“Unique Post Views Counter” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙترجمو ڪريو “Unique Post Views Counter” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.