Create A Forum - Support Forums
Support => Create a Forum Codes and Support => Topic started by: aIURbliS on November 04, 2012, 06:49:58 am
-
Description: Counts the number of unread posts since last visit and new replies to your posts then adds a number next the Show unread posts since last visit and Show new replies to your posts links.
This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/ (http://support.createaforum.com/5/jquery-v1-8-update/)
Footers:
<script>function xboi209_countunread(url,li){$.ajax({url:smf_scripturl+"?action="+url+"",success:function(data){$("ul.reset > li:eq("+li+")").prepend("["+$(data).find("table.table_grid > tbody > tr").length+"] ")}})}xboi209_countunread("unreadreplies","2");xboi209_countunread("unread","1");</script>
-
does not work
-
does not work
It does work, please review whether or not you copied and pasted the code correctly and you have jQuery
-
It works now :)