Resource icon

TopOXY 1.0b

No permission to download

0xym0r0n

Well-known member
0xym0r0n submitted a new resource:

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

I wanted a popular content add-on and so a while ago I set out to figure out how to do it on my own as the XenFans one was removed and is not allowed to be redistributed without permission.

Here it is! Raw and possibly useful to those with time to make it pretty.

HOW TO INSTALL
1. Download the zipped file and upload the contents to your forum's directory.
2. Go to AdminCP>Applications>Node Tree>Create new Page Node
3. Fill it out as follows or to your liking
Basic...

Read more about this resource...
 
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.
 
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!! :)
 
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
 
Thank you 0xym0r0n
But there are many errors in the template

Rich (BB code):
<b><u>Most Likes</b></u><br>

Try this modification

HTML:
<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>
<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>
 
<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 />
</td>
 
</tr></table>
<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 />
</xen:foreach></div>
 
Thank you 0xym0r0n
But there are many errors in the template

Rich (BB code):
<b><u>Most Likes</b></u><br>

Try this modification
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.
 
invalid callback method...
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.

This can be stressing on the DB, what I would suggest is setting up a cron job.
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.
 
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.
 
Oxy,

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...
 
Top Bottom