View "Top Posters" and "Top And1 Posts" from within a thread?

Want something added or changed? Let yourself be heard here!
User avatar
rockmanslim
Lead Assistant
Posts: 5,798
And1: 1,769
Joined: Jul 15, 2008
Location: off looking for a "high oiled machine"
 

View "Top Posters" and "Top And1 Posts" from within a thread? 

Post#1 » by rockmanslim » Sat Feb 25, 2017 8:33 pm

When looking at the list of threads in a forum, in the "Replies" column, you can click the left hand side number to popup a list of "Top Posters In This Topic" and you can click the right hand side number (the one with a '+' in front of it) to popup a list of "Top And1 Posts In This Topic."

Is there a way to get these lists to popup from within a thread?
click

"Harden's a guy that averages 26 in the NBA, but if he was on the playground with you he'd only average about 5 because they wouldn't let him get those free throws." --Scott Hastings, April 6, 2013


Image
User avatar
dream34
Site Admin
Site Admin
Posts: 3,338
And1: 315
Joined: Jul 29, 2005
     

Re: View "Top Posters" and "Top And1 Posts" from within a thread? 

Post#2 » by dream34 » Mon Mar 13, 2017 6:40 pm

We don't have a way to do that yet.
User avatar
rockmanslim
Lead Assistant
Posts: 5,798
And1: 1,769
Joined: Jul 15, 2008
Location: off looking for a "high oiled machine"
 

Re: View "Top Posters" and "Top And1 Posts" from within a thread? 

Post#3 » by rockmanslim » Thu Apr 13, 2017 5:49 am

I figured out two ways to show the "Top And1 Posts" from within a thread.

Method 1: Create a bookmarklet:
Spoiler:
In your browser (I'm using Firefox, not sure about other browsers), create a new bookmark.

Give the bookmark a descriptive name, such as "View RealGM most And1'ed posts from within a thread," or whatever name you want.

In the "Location" field of the bookmark, copy/paste the following:

Code: Select all

javascript:(function(){
    "use strict";
    function in_a_RealGM_thread() {
        var url = document.URL;
        return url.match( /forums\.realgm\.com\/boards\/viewtopic\.php/i );
    }

    function getThreadIdFromUrl() {
        var url = document.URL;
        var url_and_query_strings = url.split( /&|\?/ );
        var thread_id_query_string = url_and_query_strings.find(
            function( element ) {
                return element.match( /^t=/ );
            }
        );
        var thread_id_possibly_with_trailing_pound_sign = thread_id_query_string.split( '=' )[ 1 ];
        var thread_id = thread_id_possibly_with_trailing_pound_sign.match( /\d+/ )[ 0 ];
        return thread_id;
    }

    if ( in_a_RealGM_thread() )
    {
        getAnd1InTopic( getThreadIdFromUrl() );
    }
}());


Now whenever you're in a thread, click on the bookmark you just created to pop-up the list of most And1'ed posts in the thread.

Method 2: Firefox + Greasemonkey:
Spoiler:
Assuming you have Firefox and the Greasemonkey add-on, install this Greasemonkey script:
https://gist.github.com/anonymous/dd886334333c4d9c639c7fc159f623e8

After installing the script, whenever you're in a thread, a new button containing an asterisk will appear next to every "+1" button above every post.

Image

Click any of those new buttons to pop-up the list of most And1'ed posts in the thread.

Showing the "Top Posters" from within a thread would be similar.
click

"Harden's a guy that averages 26 in the NBA, but if he was on the playground with you he'd only average about 5 because they wouldn't let him get those free throws." --Scott Hastings, April 6, 2013


Image
User avatar
Howard Mass
Site Admin
Site Admin
Posts: 50,432
And1: 6,867
Joined: Feb 20, 2001
Location: Longwood, Florida
Contact:
       

Re: View "Top Posters" and "Top And1 Posts" from within a thread? 

Post#4 » by Howard Mass » Mon Jul 10, 2017 2:32 pm

rockmanslim wrote:I figured out two ways to show the "Top And1 Posts" from within a thread.

Method 1: Create a bookmarklet:
Spoiler:
In your browser (I'm using Firefox, not sure about other browsers), create a new bookmark.

Give the bookmark a descriptive name, such as "View RealGM most And1'ed posts from within a thread," or whatever name you want.

In the "Location" field of the bookmark, copy/paste the following:

Code: Select all

javascript:(function(){
    "use strict";
    function in_a_RealGM_thread() {
        var url = document.URL;
        return url.match( /forums\.realgm\.com\/boards\/viewtopic\.php/i );
    }

    function getThreadIdFromUrl() {
        var url = document.URL;
        var url_and_query_strings = url.split( /&|\?/ );
        var thread_id_query_string = url_and_query_strings.find(
            function( element ) {
                return element.match( /^t=/ );
            }
        );
        var thread_id_possibly_with_trailing_pound_sign = thread_id_query_string.split( '=' )[ 1 ];
        var thread_id = thread_id_possibly_with_trailing_pound_sign.match( /\d+/ )[ 0 ];
        return thread_id;
    }

    if ( in_a_RealGM_thread() )
    {
        getAnd1InTopic( getThreadIdFromUrl() );
    }
}());


Now whenever you're in a thread, click on the bookmark you just created to pop-up the list of most And1'ed posts in the thread.

Method 2: Firefox + Greasemonkey:
Spoiler:
Assuming you have Firefox and the Greasemonkey add-on, install this Greasemonkey script:
https://gist.github.com/anonymous/dd886334333c4d9c639c7fc159f623e8

After installing the script, whenever you're in a thread, a new button containing an asterisk will appear next to every "+1" button above every post.

Image

Click any of those new buttons to pop-up the list of most And1'ed posts in the thread.

Showing the "Top Posters" from within a thread would be similar.


rockmanslim,

Dream34 is very busy at the moment but if you want to PM him the suggestion, you are free to do so.

Return to Feedback and Suggestions