Mod Request: "...
 
Notifications
Clear all

Mod Request: "Most Reviewed Authors" Top 10 List

8 Posts
3 Users
0 Reactions
1,862 Views
(@cloudyvisions)
Posts: 78
Trusted Member
Topic starter
 

I orginally had this posted in the New Feature Suggestions board, but I think it fits better in the Mod forum, since I saw others asking for things here related to the Top 10 Lists.

I was just wondering if there was some way to have a Top 10 List of the authors who have the most total reviews and the # of their reviews from all their stories total.

Is there a way to include this on the Top 10s?


URL: http://www.sinful-desire.org/archive
Version: 3.5.2
Modules: Story End, Beta Reader, Challenges, Story Tracker
PHP:  5.2.5
MySQL: 5.0.67

 
Posted : 22/09/2007 5:22 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Try duplicating and editing this code:

		case "prolificreviewers":
$result = dbquery("SELECT count(reviews.uid) AS count, "._PENNAMEFIELD." as penname , "._UIDFIELD." as uid FROM ".TABLEPREFIX."fanfiction_reviews as reviews, "._AUTHORTABLE." WHERE reviews.uid = "._UIDFIELD." AND reviews.review != 'No Review' GROUP BY reviews.uid ORDER BY count DESC LIMIT 10");
if(dbnumrows($result) == 0) $output .= write_message(_NORESULTS);
$count = 1;
while($author = dbassoc($result)) {
$output .= "$count. <a href=""viewuser.php?uid=".$author['uid'"]."">".$author['penname']."</a> [".$author['count']."]<br /> ";
$count++;
}
break;

archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 22/09/2007 7:22 pm
(@cloudyvisions)
Posts: 78
Trusted Member
Topic starter
 

Not to sound completely stupid (even though with efiction I basically am) but do I add and edit this into the mySQL database? And then I create a new panel in the 10 lists, right?


URL: http://www.sinful-desire.org/archive
Version: 3.5.2
Modules: Story End, Beta Reader, Challenges, Story Tracker
PHP:  5.2.5
MySQL: 5.0.67

 
Posted : 23/09/2007 2:02 am
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Ah, no, I apologise!

I forgot to mention where that's from ...

toplists/default.php

Near the bottom. πŸ™‚


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 23/09/2007 10:32 am
(@cloudyvisions)
Posts: 78
Trusted Member
Topic starter
 

I tried to duplicate that section and just change reviews to authors but I have NO clue what to change and what to change it to in order to get it working correctly.

Thanks for the suggestion...I think it's just a bit too advanced for me to figure out!  πŸ˜›


URL: http://www.sinful-desire.org/archive
Version: 3.5.2
Modules: Story End, Beta Reader, Challenges, Story Tracker
PHP:  5.2.5
MySQL: 5.0.67

 
Posted : 01/10/2007 2:44 am
(@tammy)
Posts: 2577
Member Moderator
 

You'd need a much more complicated query because reviews are saved by the item not the author of the item.


 
Posted : 05/10/2007 7:22 pm
(@cloudyvisions)
Posts: 78
Trusted Member
Topic starter
 

OK...So does that mean that I should just forget about it?


URL: http://www.sinful-desire.org/archive
Version: 3.5.2
Modules: Story End, Beta Reader, Challenges, Story Tracker
PHP:  5.2.5
MySQL: 5.0.67

 
Posted : 06/10/2007 12:20 pm
(@tammy)
Posts: 2577
Member Moderator
 

I think I would.  To pull it from the database would be a resource intensive query.  You'd probably have to save it in a table of it's own and update it each time a review was added. 


 
Posted : 13/10/2007 10:31 pm
Share: