OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



top downloaded list

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

top downloaded list

Postby kekropas » Mon Mar 23, 2009 11:08 am

Hello,
I am trying to find a solution for my problem but I will need some direction! I am trying to make o module so that in my journal's homepage there is a list of the most downloaded pdf's. Any idea?

I tested piwik and awstats but they don't provide such information.
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby asmecher » Mon Mar 23, 2009 1:37 pm

Hi kekropas,

Have a look at the views report plugin in the Plugin Galley, which you can find at http://pkp.sfu.ca/support/forum.

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

Re: top downloaded list

Postby kekropas » Tue Mar 24, 2009 5:56 am

Thank you, I hadn't noticed this plugin. I don't think though that a csv file could be helpfull. I have one question. Is there any table in the database that holds number of views for each article that I could use instead?
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby asmecher » Tue Mar 24, 2009 7:26 am

Hi kekropas,

The "views" column (in published_articles for Abstracts, and in article_galleys for each galley type, e.g. PDF or HTML) contains the info you want.

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

Re: top downloaded list

Postby kekropas » Wed Mar 25, 2009 5:35 am

ok thank you, I will come back to post if I manage anything
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby kekropas » Wed Mar 25, 2009 6:18 am

I now have the php code I want but where can I insert this?
It is regocnised as plain text. Is there any way to insert php code to the homepage of the journal?
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby jalperin » Wed Mar 25, 2009 1:50 pm

kekropas,

You can have a look at the recently uploaded Popular Articles sidebar block plugin.
jalperin
 
Posts: 157
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: top downloaded list

Postby kekropas » Wed Mar 25, 2009 2:34 pm

many thanks!!!
I don't know why I've missed this, I thought I had searched everything!
Thanks again, I will try this
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby jalperin » Wed Mar 25, 2009 4:23 pm

I posted it just today!
jalperin
 
Posts: 157
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: top downloaded list

Postby kekropas » Thu Mar 26, 2009 9:46 am

ok that could explain it. I answered to the official topic for this plugin.
Although it worked well I still have the same question:
Is there any way to have custom php script in the homepage?
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby jalperin » Thu Mar 26, 2009 1:33 pm

kokropas,

No. There is no non-programming way to do this. If you want to do some programming, you may want to look at the OJS Technical Reference. In particular, there is a section there on how Handlers work.

However, you might want to change the plugin I pointed you to. a simple change will get that plugin's content on your journal's homepage.

In MostPopularArticleBlockPlugin.inc.php, add in
Code: Select all
   function getBlockContext() {
      return BLOCK_CONTEXT_HOMEPAGE;
   }


You will probably want to modify the block.tpl file so that the formatting is a little more suitable to your journal's homepage.
jalperin
 
Posts: 157
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: top downloaded list

Postby jalperin » Thu Mar 26, 2009 1:34 pm

An additional note. If you want to change the location where the list appears, you have to move around 1 line in templates/index/journal.tpl. The line to move is:
Code: Select all
{call_hook name="Templates::Index::journal"}
jalperin
 
Posts: 157
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: top downloaded list

Postby kekropas » Thu Mar 26, 2009 2:45 pm

ok thanks, I will try it
kekropas
 
Posts: 38
Joined: Sat Dec 20, 2008 5:56 am

Re: top downloaded list

Postby traue » Tue Jun 02, 2009 4:44 am

Hi kekropas,

Have you done this? I am trying to do the same without success...

I don't want the blocks on the side. I want one page with the list. anyone can help me?


Regards,

Thiago G. Traue
traue
 
Posts: 25
Joined: Mon Mar 16, 2009 10:26 am

Re: top downloaded list

Postby ushasharma84 » Tue Jun 08, 2010 6:20 am

Hi all
I am trying to implement the same functionality. I also want one page list of top downloaded Articles which should be displayed when i click a link of popular articles . If any one of u implemented that then help me.
Thanks in advance :roll: :roll:
ushasharma84
 
Posts: 108
Joined: Wed Mar 31, 2010 11:58 pm
Location: delhi


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest