RSS list of individual categories
Posted November 26th 2011, 2:14am
Feature: you don't have to manually write html for each category RSS & then insert it in category description; this is extremely lengthy process. Now I set-out to utilise the commonality of RSS links for different categories they only differ in a number after f=. See this

http://jsfiddle.net/defencedog/XAUdJ/ [notice the HTML part]

After my snippet all Rss unique links will be neatly inserted in your homepage; just like this http://www.defence.pk/forums/ (vBulletin forum)
http://engineering.forumotion.info/ (phpBB3 forum)

For those who want to insert rss image
js part
var source='Distribution/Editing  of this code is allowed but the source(s) must be mentioned.  http://www.diondesigns.org & http://lgforum.forumotion.co.uk ';
jQuery(function(){
$('.forumtitle').each(function() {
var url = $(this).attr('href');
var numb = /[0-9]+/; //1st number
var matches = url.match(numb); //whitelisting
$(this).after('<a style="float:right;" href="/feed/?f='+matches+'" target="_blank"><img src="http://i49.servimg.com/u/f49/15/79/08/97/feed-110.png" border="0" alt="RSS" /></a>');
});
});


For those who want to insert text-only buttons utilising classes already defined in FM
js part
var source='Distribution/Editing  of this code is allowed but the source(s) must be mentioned.  http://www.diondesigns.org & http://lgforum.forumotion.co.uk ';
jQuery(function(){
$('.forumtitle').each(function() {
var url = $(this).attr('href');
var numb = /[0-9]+/; //1st number
var matches = url.match(numb); //whitelisting
$(this).after('<div style="float:right;font-size:10px;"><a class="button2" href="/feed/?f='+matches+'" target="_blank">RSS</a></div>'); //use defined css
});
});


the second methos is more preferable & you must see this to style your own buttons its easy
http://www.webdesignerwall.com/demo/css-buttons.html

I have two questions from Dion/LGforum, I would ask them afterwards time to go to work :)
φ
Posts: 163
Joined: August 5th 2011, 11:00pm
Location: Pakistan
Likes Given: 34
Likes Received: 3
RSS list of individual categories
Posted November 26th 2011, 8:09am
Nice!Thank you!
φ
Posts: 18
Joined: October 22nd 2011, 11:00pm
Location: Greece

Who is online

Users browsing this forum: No registered users and 1 guest