Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-16-2007, 01:29 AM
New Pligger
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
How can I work the number of clicks on a link into the math that determines item order? What I'd eventually like to do is have multiple variables that can be run through a formula to determine the order of links.

Such as:
1) # of votes
2) # of clicks
3) # of times e-mailed
4) # of comments
5) # of comments that get voted up/down
6) Pagerank/Alexa rating of URL submitted

In the admin, you choose which of these you want to turn on, you assign weights to each factor and then that determines their order on the site...

How do-able would something like this be?
Reply With Quote
  #12 (permalink)  
Old 11-16-2007, 02:36 AM
Constant Pligger
 
Join Date: Feb 2007
Posts: 183
Thanks: 13
Thanked 24 Times in 19 Posts
Quote:
Originally Posted by AnAlienHolakres3 View Post
It is neccesary to use story title as link and open story title in new window.
So this doesn't work if the story is not opened in new window?
Reply With Quote
  #13 (permalink)  
Old 11-16-2007, 03:04 AM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 156
Thanks: 27
Thanked 9 Times in 9 Posts
bflora has said something really important, and opens up new ways to do formulas if we manage to do it.

Quote:
How can I work the number of clicks on a link into the math that determines item order? What I'd eventually like to do is have multiple variables that can be run through a formula to determine the order of links.

Such as:
1) # of votes
2) # of clicks
3) # of times e-mailed
4) # of comments
5) # of comments that get voted up/down
6) Pagerank/Alexa rating of URL submitted
Reply With Quote
  #14 (permalink)  
Old 11-16-2007, 08:38 AM
AnAlienHolakres3's Avatar
Pligg Donor
 
Join Date: Jul 2007
Location: Prague
Posts: 117
Thanks: 7
Thanked 112 Times in 40 Posts
Send a message via ICQ to AnAlienHolakres3
More sorting option

There is a way how to do that.
Visit
Code:
WWW.VSELINK.ORG
and check menu on the right top - you can:
Filter by a date:
  • today="dnes"
  • yesterday="včera"
  • this week="tento týdenů
  • week ago="týden zpět"
  • this month="tento měsíc"
  • month ago="měsíc zpět"
  • year="rok"
Sort by:
  • date - newest,oldest
  • clicks - most clicks,least clicks
  • votes - most votes, least votes
You can also use filter and sorting simultunously if "<=>" button is activated.

The problem is this is heavy customized Pligg searching and filtering and there is NO EASY way how to do that. Moreover, this is pretty hardcoded and definitely dirty solution. One way or another it works anyway. I think I could submit a few basic steps how i made it if you like.
__________________
=Everything that has a beginnig has an end=
=Nevere stop fighting=

Site: http://www.vselink.org

Last edited by AnAlienHolakres3; 11-16-2007 at 08:43 AM.
Reply With Quote
  #15 (permalink)  
Old 11-16-2007, 08:56 AM
AnAlienHolakres3's Avatar
Pligg Donor
 
Join Date: Jul 2007
Location: Prague
Posts: 117
Thanks: 7
Thanked 112 Times in 40 Posts
Send a message via ICQ to AnAlienHolakres3
Exact answer

I will think about it,there must be some easier way which is more appropriable for you
__________________
=Everything that has a beginnig has an end=
=Nevere stop fighting=

Site: http://www.vselink.org
Reply With Quote
  #16 (permalink)  
Old 11-16-2007, 11:17 AM
New Pligger
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Cool.

I'm new to Pligg, but have been reading up on it, here in the forums and elsewhere online. I've also been reading a lot of commentary on the Digg model and voting sites in general and it seems to me that Pligg could really separate itself from the pack as a CMS if it expanded its idea of how someone could order the content. If an admin had 10-12 options for how he wanted to order the links, and could weight the different variables in a forumula....well that'd be pretty awesome.

I found a link to a php script that will return the alexa ranking of a URL. You can see it here: http://data.alexa.com/data?cli=10&da...=www.slate.com

When someone submits a link, pligg could lookup the alexa ranking of the submitted URL and store that in the database. If that number could be factored into that ranking math, that'd be really awesome.

I guess I've just been thinking of how Pligg's got the Digg model more or less figured out...so what's next when Digg becomes not so cool anymore? Modules that would add these functions would really take it to the next level, using both explicit and implicit data (both votes/ratings and views/alexa/pagerank/# comments/#e-mailed etc etc)

I'd be happy to chat off forum about this if anyone's interested. I think this could be a really neat project.
Reply With Quote
  #17 (permalink)  
Old 12-05-2007, 03:37 AM
New Pligger
Pligg Version: 0.0.0
Pligg Template: Nothing
 
Join Date: Dec 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
I wrote this in another post but I thought I'd lay it down here, just so someone could inform me if im wrong.

At first glance this seems great... but, I see a problem. I oft click through stories and find I don't like them, I'm not sure i'd like a point put towards a story that way. Or maybe I'm just missing the point of the addon?
Reply With Quote
  #18 (permalink)  
Old 12-05-2007, 04:04 PM
joehunk's Avatar
Casual Pligger
 
Join Date: Oct 2007
Posts: 99
Thanks: 14
Thanked 10 Times in 8 Posts
Great. I am going to use the code to implement in the video part of the site. the idea is counting video views of all videos on my site (view = clicks).

-----------------------------------------
my pligg site: www.ebenta.com
Reply With Quote
  #19 (permalink)  
Old 12-20-2007, 04:21 PM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 62
Thanks: 36
Thanked 2 Times in 2 Posts
I am curious to know if anyone has worked out the kinks in getting this click tracking method to work on a Pligg site using the 5 star voting method...
Reply With Quote
  #20 (permalink)  
Old 01-01-2008, 06:56 PM
computerbar's Avatar
Pligg Donor
Pligg Version: 9.9.5
Pligg Template: yget,lemontwi
 
Join Date: Nov 2007
Location: UK
Posts: 79
Thanks: 32
Thanked 9 Times in 8 Posts
Hi
First of all great mod,
I have followed all the steps as you said and double checked the nothing is missing but I am still getting this

onclick="sendClickedValue(21,1);"
just above this story ( Pick a FREE one)
and obviously because of this the click are not adding up, the default "1" can be seen over the votes.

"Just FYI I have modified link_summary.php in libs which makes the two columned contentbox, I hope this is not making any problems"

Could you please tell me what did I do wrong?

thanks


RESOLVED: My mistake I did not add it INSIDE <a> tags Its working now...
BUT the links on top i.e. Postedby: Category, Tags etc are not showing any more
__________________
PeekLocal

Unmissable pligg Mods..

Last edited by computerbar; 01-03-2008 at 08:01 AM. Reason: Resolved
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit Antispam Addon v 0.1 AnAlienHolakres3 Pligg Modules 22 10-01-2008 05:08 PM
Special Advertising Add-On for banners Tutorial AnAlienHolakres3 Modification Tutorials 18 07-30-2008 09:25 AM
[mod] count clicks instead of votes abcdefgary Modification Tutorials 8 06-14-2008 11:34 PM
Pligg Team Addon Installation GUIDE & MANUAL AnAlienHolakres3 Modification Tutorials 17 04-07-2008 03:41 PM
Vote count and Title Link only on front page tommy818 General Help 1 10-25-2007 04:40 AM


Search Engine Friendly URLs by vBSEO 3.2.0