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 ] Latest post on bottom of the page /2
Topic Started: Jul 19 2013, 09:39 AM (171 Views)
bisiacco
Member
[ * ]
Hi!
You successfully created this:
http://if.invisionfree.com/topic/5171155/1/#new

small request: how can I set that a certain section of the forum will not be reported in the "latest post section"? (Admin area)

thanks,
bisiacco
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Use this instead for the JavaScript:
Code:
 
<script type="text/javascript">
//<![CDATA[
(function ($) {
if (location.href.indexOf('/index/') !== -1 || location.href.indexOf('/forum/') !== -1 || location.href.indexOf('/topic/') !== -1) {
var amount = '10';
var forum = 'FORUM_NAME';

$('#main').after('<div id="latest" class="category" style="margin: 1%"><table class="cat_head"><tbody><tr><td colspan="4"><h2>Active Topics</h2></td></tr></tbody></table><table class="forums"><tbody></tbody></table></div>');

$.get(main_url + 'search/?c=5&force_ads', function (data) {
$('tr[class*="row"]:not(:contains(' + forum + ')):lt(' + amount + ')', data).appendTo('#latest table.forums tbody');
$('#latest td.c_cat-starter, #latest td.c_cat-replies, #latest td.c_cat-views').hide();
});
}
})(jQuery);
//]]>
</script>
Change FORUM_NAME as necessary.
Offline Profile Goto Top
 
bisiacco
Member
[ * ]
perfect, thanks
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
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