Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: aIURbliS on February 11, 2012, 08:33:15 pm

Title: [Code] CreateAForum Announcements Revived
Post by: aIURbliS on February 11, 2012, 08:33:15 pm
Description: Updates the CreateAForum announcements box found in your Admin CP whenever a new post is made in your announcements board on this support forum.


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:
Code: [Select]
<script>if(/action=admin/i.test(location.href)||/action=admin;area=index;*/i.test(location.href)){$("#smfAnnouncements").html("");$.ajax({url:"http://xboi209.comule.com/server/caf_announcements.php",success:function(data){$("#smfAnnouncements").wrap("<div id='proxy_content' />").replaceWith($(data).find("td.subject.windowbg2 > div > span:lt(8)"));$("#proxy_content > span > a ").append("<br>")}})}</script>
Title: Re: [Code] CreateAForum Announcements Revived
Post by: aIURbliS on November 09, 2012, 03:25:05 am
Revived, now automatically updates itself.
Title: Re: [Code] CreateAForum Announcements Revived
Post by: aIURbliS on November 12, 2012, 04:37:58 am
The amount of kb being downloaded from my server is now 6kb(37kb before).
Title: Re: [Code] CreateAForum Announcements Revived
Post by: aIURbliS on November 29, 2012, 01:53:37 am
Updated the code to use a new server!