OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS Plugin::Popular Articles Block Plugin

The Plugin Gallery is a venue for users of PKP software to share their plugins.

Moderators: jmacgreg, michael, John

Forum rules
If you post a plugin here, please include information on which versions of which applications it is compatible with. Attach a tarball of the plugin (e.g. tar cvzf myPlugin-0.1.tar.gz plugins/generic/myPlugin). Thanks for contributing!

Re: OJS Plugin::Popular Articles Block Plugin

Postby Garant » Wed Jan 15, 2014 2:38 am

Hi!
Could somebody attach already a patched full archive with this plugin adopted for OJS 2.4.3?
Thank you!
Garant
 
Posts: 212
Joined: Wed May 30, 2012 8:53 am

Re: OJS Plugin::Popular Articles Block Plugin

Postby Garant » Mon Jan 20, 2014 12:30 am

Am I asking for such complex service?
Garant
 
Posts: 212
Joined: Wed May 30, 2012 8:53 am

Re: OJS Plugin::Popular Articles Block Plugin

Postby asmecher » Mon Jan 20, 2014 5:17 am

Hi Garant,

Your best bet is to contact someone directly who is responsible for the plugin -- i.e. someone who has contributed to it in the past, or more likely its original author.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8321
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS Plugin::Popular Articles Block Plugin

Postby bbeghelli » Mon Jan 20, 2014 9:40 am

Here is a tar file with the patched plugin that should work with 2.4.3.

Warning: you still need to apply this patch (http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3979) against lib/pkp.

Regards,
Bruno
Attachments
popularArticles.tar
(2.85 KiB) Downloaded 103 times
bbeghelli
 
Posts: 89
Joined: Tue Jun 25, 2013 2:22 pm

Re: OJS Plugin::Popular Articles Block Plugin

Postby Garant » Mon Jan 20, 2014 10:00 am

Thank you Bruno!
It works! :twisted:
Garant
 
Posts: 212
Joined: Wed May 30, 2012 8:53 am

Re: OJS Plugin::Popular Articles Block Plugin

Postby memoemg » Mon Jan 27, 2014 10:34 am

Hi Bruno, I've installed your code and applied the patch.

The plugin works, it shows the block, the 10 most popular articles and the amount of visits for each one, BUT... all the articles (popular and not so popular), every link to an article in the journal, links to the last article listed in the plugin block.

Its quite strange, the URL is correct, even in the address bar is ok, but the article shown is always the last one of the block.

Any ideas?

Thanks,

Guillermo
memoemg
 
Posts: 11
Joined: Thu Sep 05, 2013 2:35 pm

Re: OJS Plugin::Popular Articles Block Plugin

Postby bbeghelli » Fri Feb 07, 2014 1:39 am

Hi Guillermo,

If the link is correct, than it should load the correct article. Are you sure that when you click you are clicking on the correct one? I mean, maybe some custom css is messing up with the links?

Thanks.
bbeghelli
 
Posts: 89
Joined: Tue Jun 25, 2013 2:22 pm

Re: OJS Plugin::Popular Articles Block Plugin

Postby memoemg » Fri Feb 07, 2014 7:26 am

Hi Bruno, I fixed the problem, it was a conflict with variable names. I changed the name of the variable 'article' inside the foreach to 'iterator' and problem solved.

Code: Select all
{foreach from=$popularArticles item=articleInfo}
   {assign var=iterator value=$articleInfo.article}



Guess there's a global variable named 'article' so the articleId value got permanent, displaying always the same article.

Thanks!
memoemg
 
Posts: 11
Joined: Thu Sep 05, 2013 2:35 pm

Re: OJS Plugin::Popular Articles Block Plugin

Postby Garant » Tue Feb 11, 2014 4:58 am

Hi!memoemg!
Thank you for your solution!
Without it I had problems with all viewed articles: the data was mixed.
So the plugin must be patched with this changes!
Garant
 
Posts: 212
Joined: Wed May 30, 2012 8:53 am

Re: OJS Plugin::Popular Articles Block Plugin

Postby Tiziano » Fri Feb 28, 2014 4:47 am

Hi to everyone!

I downloaded the latest version of the plugin, but if i'm logged into the management see the articles, if I go out and go to the home page, the column does not appear, someone had the same problem?

By
Tiziano
Tiziano
 
Posts: 36
Joined: Mon Feb 24, 2014 4:24 am

Re: OJS Plugin::Popular Articles Block Plugin

Postby asmecher » Fri Feb 28, 2014 9:06 am

Hi Tiziano,

See e.g. http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=8794#p34831.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8321
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS Plugin::Popular Articles Block Plugin

Postby tarcisiop » Fri Apr 25, 2014 4:29 am

Hello guys,

For easier installation with OJS 2.4.3
After apply this patch: http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3979

Just install by browser interface

My instalation is really huge! I can't "php tools/upgrade.php upgrade" all time.

Bye!
Attachments
mostPopularArticles.tar.gz
Most Popular Plugin instalable by user interface OJS 2.4.3
(4.07 KiB) Downloaded 37 times
tarcisiop
 
Posts: 21
Joined: Mon Apr 14, 2014 12:22 pm

Previous

Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 1 guest