Preview is here:
http://9861.smfforfree.com/index.phpI have two boards on that forum, the announcements show up in both.
First off, ensure you have this in your headers:
<script src="/jquery.js" type="text/javascript"></script>
This goes in your footers:
<script type="text/javascript">
// Edit after this line
var announcements = [
['Aetus Designs', 'http://aetus.net/'],
['RevolutionX', 'http://revolutionx.smfforfree3.com']
];
// Stop editing if you don't know what you are doing
/**
* Global Announcements
* http://aetus.net/
* http://revolutionx.smfforfree3.com/
*
* While there is NO warranty on this script unless you pay me a very large fee, I will *TRY*
* to the best of my ability to help you out.
*
* License: WTFPL (http://sam.zoy.org/wtfpl/)
*
* Feel free to remove this copyright notice, just visit those two sites listed above.
* Thanks for using this script.
*
*/
(function($,topics){
if(window.location.href.match(/board=/) || window.location.href.match(/board,/)){
var html = '<tr><td class="titlebg2" colspan="7">Global Announcements</td></tr><tr><td class="windowbg2" colspan="7">';
for(var i = 0;i<topics.length;i++){
html += '<a href="' + topics[i][1] + '">' + topics[i][0] + '</a><br />';
}
html += '</td></tr><tr><td class="titlebg2" colspan="7">Regular Topics</td></tr>';
$("div#bodyarea div.tborder table.bordercolor tbody tr td.catbg3:contains('Subject')").parent().after(html);
}
})(jQuery, announcements);
</script>
You have to edit the first part of the script, the part before the copyright message. The part which looks like this:
var announcements = [
['Aetus Designs', 'http://aetus.net/'],
['RevolutionX', 'http://revolutionx.smfforfree3.com']
];
More specifically, the two lines in the center. Delete those two lines and add in your own lines like this:
['NAME OF THE TOPIC', '*FULL* URL TO THE TOPIC'],
Keep adding lines like that, and when you are done,
remove the comma at the end of the last line.
As usual this has been tested on Firefox and Opera. (I realized that Epiphany uses Firefox's rendering engine so no point mentioning that.) If it doesn't on another browser let me know and I'll try to iron out the bugs.
That's it. If you have any problems with this let me know. Also, if you liked this code I'd appreciate it very very very much if you linked to my site(
Aetus Designs) somewhere.