1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained TopOXY 1.0b

Top members, threads, and more

  1. 0xym0r0n

    0xym0r0n Well-Known Member

    0xym0r0n submitted a new resource:

    TopOXY (version 1.0) - Top members, threads, and more

    Read more about this resource...
    bousaid likes this.
  2. 0xym0r0n

    0xym0r0n Well-Known Member

    Reserved in the event I need to explain something important.
    I will explain how to retrieve different stats from the DB for other add-ons and how to retrieve the images.
  3. surfsup

    surfsup Well-Known Member

    YES!!! Finally!! Super awesome man! I do have a few requests tho and I will pay for them by donation or whatever.

    Pleae let me know if you can add the following soon:
    1. Allow us to view Top Posters (maybe up to 10?) of the month
    2. Instead of just likes, since so many ppl use 'Post Ratings' would be awesome to integrate this to see whos the top liked person.
    3. Even allow top threads of the month etc.
    Reason per month is that way we can showcase the top members of each month, not just of alltime which may rarely ever change ya know

    lemme know plz thanks!! :)
  4. 0xym0r0n

    0xym0r0n Well-Known Member

    I will explain how to change the amounts later. you can actually view the top.php file in your favorite editor and change the LIMIT BY 10 to LIMIT BY *your own preference*

    I have a Post Ratings available already but I need to write it up at home. It will be available in my 2nd post

    I can write a up a top **** by month today or sometime this week
    surfsup likes this.
  5. surfsup

    surfsup Well-Known Member

    You rock!
  6. bousaid

    bousaid Well-Known Member

    Thank you 0xym0r0n
    But there are many errors in the template

    <b><u>Most Likes</b></u><br>
    Try this modification

    <div class="sectionMain">
    <table class="dataTable" style="padding:5px;"><tr class="dataRow">
    <td style="padding:10px;">
    <b><u>Most Posts</u></b><br />
    <xen:foreach loop="$myrows1" value="$myrow1" i="$i" count="$count">
        {$i}. <a href="/members/{$myrow1.user_id}">{$myrow1.username}</a> - {$myrow1.message_count}<br />
    </xen:foreach><br />
    <td style="padding:10px;">
    <b><u>Most Trophy Points</u></b><br />
    <xen:foreach loop="$myrows2" value="$myrow2" i="$i" count="$count">
        {$i}. <a href="/members/{$myrow2.user_id}">{$myrow2.username}</a> - {$myrow2.trophy_points}<br />
    </xen:foreach><br />
    </td><td style="padding:10px;">
    <b><u>Most Likes</u></b><br />
    <xen:foreach loop="$myrows3" value="$myrow3" i="$i" count="$count">
        {$i}. <a href="/members/{$myrow3.user_id}">{$myrow3.username}</a> - {$myrow3.like_count}<br />
    </xen:foreach><br />
    </td></tr><tr class="dataRow">
    <td style="padding:10px;">
    <b><u>Most Viewed Thread</u></b><br />
    <xen:foreach loop="$myrows5" value="$myrow5" i="$i" count="$count">
        {$i}. <a href="/threads/{$myrow5.thread_id}">{$myrow5.title}</a> <br /> <i>by {$myrow5.username} - {$myrow5.view_count} views</i><br />
    </xen:foreach><br />
    <td style="padding:10px;">
    <b><u>Most Replied Thread</u></b><br />
    <xen:foreach loop="$myrows6" value="$myrow6" i="$i" count="$count">
        {$i}. <a href="/threads/{$myrow6.thread_id}">{$myrow6.title}</a><br /><i>by {$myrow6.username} - {$myrow6.reply_count} replies</i><br />
    </xen:foreach><br />
    <b><u>Top Viewed Attachment Photos</u></b><br />
    <xen:foreach loop="$myrows4" value="$myrow4" i="$i" count="$count">
        <img src="/data/attachments/0/{$myrow4.data_id}-{$myrow4.file_hash}.jpg" height="{$myrow4.thumbnail_height}" width="{$myrow4.thumbnail_width}"><br />
    View Count: {$myrow4.view_count} - {$myrow4.username}<br />
    <br />
  7. 0xym0r0n

    0xym0r0n Well-Known Member

    It may not be W3 school compliant but it should work on most browsers. I will be providing a few different templates in the next few days. You are free to modify the template how you'd like. This is primitive and raw attempt at grabbing the stats.
    If I had put more time into it I'd have done divs and a css file. This a simple quick release as I've had a few people ask me via my site how I did my own and I've seen people asking for XFfans version, which is no longer available.
    bousaid likes this.
  8. giorgino

    giorgino Well-Known Member

    invalid callback method...
    0xym0r0n likes this.
  9. MOZ

    MOZ Well-Known Member

    This can be stressing on the DB, what I would suggest is setting up a cron job.
    0xym0r0n likes this.
  10. 0xym0r0n

    0xym0r0n Well-Known Member

    YES! Sorry. I uploaded the wrong file.
    Go to your file directory >library> OXY > TopOXY > top.php and open up that file
    Find OXY_Bank_index and replace with OXY_TopOXY_top
    Save and it will work then.

    Working on that today! If I don't get through it I got your PM and I'd be more than glad to do that.
  11. MOZ

    MOZ Well-Known Member

  12. 0xym0r0n

    0xym0r0n Well-Known Member

    Shay Atik and bousaid like this.
  13. 0xym0r0n

    0xym0r0n Well-Known Member

    Update coming soon. Sorry for the serious delay folks. Not sure if there are other guides to get this done yet, but the update will address some issues like cache and stats according to set days.

    Also utilizing classes and divs now.
  14. usAdultAds

    usAdultAds Active Member


    Would be great if those "Top Whatever" had links, so if someone
    clicked on the top thread link, then it would take them back to that thread...
    or whatever was in top spot, so if a member was in top spot, then it would
    link back to their profile most likely, and so on...

Share This Page