Git Product home page Git Product logo

top-10's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

top-10's Issues

Navigation with Next 10 in Dashboard Widget

This used to be there in previous versions.

Add a navigation bar at the Widget in the WordPress dashboard that lets a user directly jump to the next 10 posts.

Alternate consideration is using ajax to update the widget

New addon for the external tracker

As part of v2.3.2, the external js/php file had to be removed due to risk of incompatibility on every single WordPress install as it seeks wp-load.php as per wordpress.org repository requirements.

A new addon should be built that will bring back this functionality. It won't be listed on the wordpress.org but on webberzone.com

Options get reset after porting db

I'm hosting a site on WP Engine. Periodically I export my local db, changing all url references via search/replace, and import to the WP Engine production db.

Every time I do this, all Top 10 settings are restored to the defaults. It's a pain to have to reset these each time. Can you reproduce this on your end?

strict_limit by default should be TRUE

By default, strict_limit is false which results in more posts being selected when limit is passed.

This is not good for user experience because the expectation is to have the exact number of posts specified by limit.

Multisite top site view

Add a menu item and screen to Multisite to display all the top posts across all the sites.

The number of total visited didn't update anymore

Firstly, thanks for your WP plugin, it's really useful and helpful for tracking the number of visited on my blog. However, I have been encountering an issue for a while.

The number of total visited time hasn't been updated since 2 months ago, although the number of daily visited was updated when I refresh the browser. As a result, I checked the database. I found there are many duplicate records in the wp_top_ten table such as

mysql> select * from wp_top_ten where postnumber = 8422;
+------------+-----------+---------+
| postnumber | cntaccess | blog_id |
+------------+-----------+---------+
|       8422 |     17534 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
|       8422 |         1 |       1 |
+------------+-----------+---------+
11 rows in set (0.00 sec)

I am not familiar with your project, so I am wondering is it correct?

And the records from wp_ten_top_daily is as below:

mysql> select * from wp_top_ten_daily where postnumber = 8422;
+------------+-----------+---------------------+---------+
| postnumber | cntaccess | dp_date             | blog_id |
+------------+-----------+---------------------+---------+
|       8422 |         1 | 2018-01-24 12:00:00 |       1 |
|       8422 |         1 | 2018-02-04 15:00:00 |       1 |
|       8422 |         2 | 2018-02-04 18:00:00 |       1 |
|       8422 |         2 | 2018-02-04 21:00:00 |       1 |
|       8422 |         2 | 2018-02-04 22:00:00 |       1 |
|       8422 |         1 | 2018-02-05 00:00:00 |       1 |
|       8422 |         2 | 2018-02-05 01:00:00 |       1 |
+------------+-----------+---------------------+---------+
7 rows in set (0.00 sec)

I am not sure why the first record was created on 2018-01-24 12:00:00. Is because the scheduled maintenance will delete entries older than 90 days in the daily tables?

Allow Author to Edit Counts

Currently only admins can edit counts. Allow users with edit_posts permission to set the post count as well.

Add a filter, which would allow admins to turn it off by adding code to functions.php or functional plugin

Clash with PolyLang

2.2.4 does not work with PolyLang. The WPML implementation has caused an issue with the way PolyLang works

Error in PHP7.1

Fatal error: Uncaught Error: [] operator not supported for strings in /.../wp-content/plugins/top-10/includes/public/display-posts.php:353

images are not optimized

if the main blogpost has a 2000x2000 image, same image will be called and rendered in a small box. which effectively hapers the site performance.

Admin - Top posts by day

Currently the views are either all popular posts or only the current day.

Propose to modify the screen to have a drop down to select it for a specific day.

Limit posts by number of days

Option to set the oldest posts to display e.g. right now even very old posts would show at the top if they are popular.

Showing only recent posts would help bring focus to them.

User roles

Add custom roles for the plugin e.g. Admin screen etc.

Metabox enhancements

Add two new checkboxes for this:

a) Exclude display of top posts on this post
b) Exclude this post from the top posts list

Don't count drafts

Views on drafts are being recorded when they are viewed. Code shouldn't be included when viewing a draft.

Settings API

Updated the plugin to use the Settings API instead of the custom programming for the admin interface.

Function for adding tracker

Wrapper function for:
`

`

That will allow a user to ad this to their theme inc ase it is missing the the_content tag.

Count a visit by JS and PHP?

I'm sorry if this has been already answered but how do I make a count either by using JS and PHP?

For example, I'm using fancybox and I can insert whatever code I want inside the callback when opening a post link. I want to add a piece of code there (JS/Jquery) to count a visit (the user is not technically entering the post page but he's viewing some content through fancybox). How can I achieve this?

Also, regarding PHP, there used to be this code:

<?php echo tptn_add_viewed_count( ' ' ); ?>

But it's not working anymore. Any way to achieve the same result through PHP?

Cache turned on and multiple widgets shows same content

Hi,
I have Top-10 on webpage with four widgets:

  • today
  • last 7 days
  • last 30 days
  • overall

When cache is turned off everything is ok, widgets show correct content. Unfortunately plugin cause high server without cache, so it is required. When cache is turned on, widgets: today, last 7 days, last 30 days shows same content, only overall show diffrent posts.

WP Super Cache is installed on page too.

AMP Support

Views are not tracked with using AMP (via the Automattic AMP plugin)

Typo on admin page

The styles box should read: "Style of popular posts" not "related posts"

Alternate tracking code

Allow the user to choose which tracking code. Use the old code by default due to speed reasons.

Feed of Top posts

Create an addon that will generate a custom feed of the top popular posts.

Customizable options:
a) No. of posts
b) Configurable permalink
c) Daily and/or overall posts i.e. custom time period

Not tracking

Is there any way to track visits even if the_content is not there?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.