We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Recent activities feed
Topic Started: Jul 25 2012, 02:05 AM (321 Views)
James Lu
Member Avatar
NOWAI
[ * ]
Board Address: http://forum.cyserosdefenders.com/
Board Software: ZetaBoards
Description: A recent activities feed that would list the recent topic/post/shout on a forum, whichever is newer at the time of page-load.

Thanks in advance! :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Above the Board
Code:
 
<table id="recent_activity" style="margin: 10px 0">
<thead>
<tr>
<th colspan="2">Recent Activity</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$.get(main_url + 'stats/feed', function (data) {
$('#board_feed tr:eq(0)', data).appendTo('#recent_activity tbody');
});
</script>
This will display the recent activity table on every page, which means it requires one AJAX request per page.
Offline Profile Goto Top
 
James Lu
Member Avatar
NOWAI
[ * ]
Alright, thanks Cory! :) May I incorporate this into a theme Steven and Aidan (DPM) from Outline are working on?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I don't mind.
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic