The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Latest topic - RSS feed for website ?

View previous topic View next topic Go down

Latest topic - RSS feed for website ?

Post by Joe Smith on August 17th 2010, 6:28 am

Ok i have a website, and i have my forum(forummotion forum) embedded into the website using the iframe html code. i was wondering is there a way to embed the "latest topics" module widget. into my website.? using RSS feed or some kind of code ?

-is this possible

joe smith

Joe Smith
New Member

Posts : 2
Reputation : 0
Language : English

Back to top Go down

Re: Latest topic - RSS feed for website ?

Post by Joe Smith on August 19th 2010, 10:48 pm

bump

Joe Smith
New Member

Posts : 2
Reputation : 0
Language : English

Back to top Go down

Re: Latest topic - RSS feed for website ?

Post by bajakaja on March 14th 2011, 5:49 pm

bump a head Razz

bajakaja
New Member

Posts : 4
Reputation : 0
Language : english

Back to top Go down

Re: Latest topic - RSS feed for website ?

Post by darkspectre on March 14th 2011, 8:53 pm

Make a portal first, and then, in that portal add the "Recent topics" module.
It's not necessary to use that portal, just look at his number, and replace in the link from the code: /?pid=1 with that number.

Once you have the portal created, just use the code:
Code:
<script>
jQuery.get('/?pid=1', function(data) {
html = jQuery('.module #comments_scroll_div', data).html();
jQuery('#comments_scroll_container').html(html);
});

</script>

<div id="comments_scroll_container"></div>
If you have multiples portals, you'll have to replace the number from /?pid=1 with the number of the portal that you want the code to get the recent topics.
If you want to use the script in a html page you must declare the jquery first.

darkspectre
Forumember

Male Posts : 160
Reputation : 2
Language : Romanian
Location : Romania

http://www.fg-coding.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum