Popular Entries

Creating and modifying plugins.
Post Reply
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Popular Entries

Post by danst0 »

Hi,

when is the popular entries sidebar plugin updated? I just adjusted the visit counter in my database (serendiptiy_karma table), since the karma counting is different from the google analytics counting. The counter is still updated, but the entry has not disappeared from the top 5 list...?

Do I have to update some thing else?

Daniel

Update: Related to that question I just tried to use the manage karma function in the backend (which I should have used in the first place), but neither on my test installation nor on the production one does it produce any results (eg. enter entry id -> no entries, enter nothing -> no entries, enter complete entry title -> nothing)...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Popular Entries

Post by garvinhicking »

Hi!

Popular entries is dynamic, so it immediately updates. What did you mean with "just adjusted the visit counter"? What exactly did you do?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: Popular Entries

Post by danst0 »

Hi,

I used phpmyadmin and changed the visits counter there (last column in the screenshot). I looked for the corresponding order ID in the entries table.

Daniel
Attachments
Screenshot
Screenshot
Screen shot 2011-01-26 at 10.45.19.png (52.01 KiB) Viewed 9034 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Popular Entries

Post by garvinhicking »

Hi!

Can you give more examples, like where can we see your popular entries listing, which ID the entry has that you try to remove from your top 5 pages, and which values the top 4 entry has an which one the other top 4 and entries have?

Maybe you lowered the value too little, so it's still the top #5 page.

The tool you use to manage karma only applies for VOTES cast on the entry. It has nothing to do with the visitor counting.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: Popular Entries

Post by danst0 »

I think I am doing something really wrong here.
Here is another example, for the entry id 8.
Attachments
Settings at Popular Entries Plugin
Settings at Popular Entries Plugin
Screen shot 2011-01-26 at 12.15.19.png (46.9 KiB) Viewed 9026 times
Title of Entry 8
Title of Entry 8
Screen shot 2011-01-26 at 12.14.29.png (8.54 KiB) Viewed 9026 times
Visits Entry ID 8
Visits Entry ID 8
Screen shot 2011-01-26 at 12.14.01.png (37.9 KiB) Viewed 9026 times
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: Popular Entries

Post by danst0 »

and the resulting Top 5 List:
Attachments
Top 5 List
Top 5 List
Screen shot 2011-01-26 at 12.15.38.png (14.56 KiB) Viewed 9025 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Popular Entries

Post by garvinhicking »

Hi!

I don't understand your screenshots, please explain what they should show, how the entry IDs relate to the titles and what result you would expect, etc.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: Popular Entries

Post by danst0 »

Sorry, the headlines are in the wrong order.
The first screenshot shows the current settings of the pop-entries plugin.
The second shows that entryid no. 8 has the title "SC Conferences 2010".
The third scr-shot shows the karma table, sorted by the number of visits, entryid 8 has the most visits (i did not touch that entry).

In the next screenshot the resulting top 5 entries table is shown, but without entryid no 8...

From my point of view no 8 should be shown in the table, since it is the article with the most visits!?

Daniel
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Popular Entries

Post by garvinhicking »

Hi!

Maybe entry #8 is an article that is still on your blog's startpage, and thus hidden from the popular entries, as denoted by the configuration setting in your first screenshot ("skip front page items")?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: Popular Entries

Post by danst0 »

No, it's kind of old... I had a look at the source code and the only further thing checked is the draft status and the timestamp (if it is in the future).
Here is the link to the entry: http://scrmblog.com/archives/8-Supply-C ... -2010.html
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Popular Entries

Post by garvinhicking »

Hi!

Ah, I think I see the error. The "skpi entries on front page" thing actually does something in the code that's not really the proper way. If you have 10 entries on the startpage, the plugin will only show the most popular entries from 10 to 15, instead from 1 to 5.

If you disable the "skip entries on front page" you should get the proper ordering by visits.

I can't really fix this in the plugin right now because it would mean a complete re-code of this "skip" functionality. Maybe someone wants to take a shot at it, meanwhile the plugin option thing should fix the behaviour for you.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: Popular Entries

Post by danst0 »

Wow, that worked... Thanks Garvin!

Daniel
Post Reply