Page 1 of 1

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

Posted: Sat Feb 25, 2017 8:33 pm
by rockmanslim
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?

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

Posted: Mon Mar 13, 2017 6:40 pm
by dream34
We don't have a way to do that yet.

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

Posted: Thu Apr 13, 2017 5:49 am
by rockmanslim
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.

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

Posted: Mon Jul 10, 2017 2:32 pm
by Howard Mass
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.