my dog learned polymorphism*
The moose likes JForum and the fly likes Inserting as a news box (i.e embedded in a portal) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Inserting as a news box (i.e embedded in a portal)" Watch "Inserting as a news box (i.e embedded in a portal)" New topic
Author

Inserting as a news box (i.e embedded in a portal)

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I was thinking about the possibility of using JForum as forum tool as well as corporate news tool. The main difference between both is that the former is mainly read-only and the aspect should be as a list of of "news" that really were recent postings to subject news from news manager user.

The question is about how to embed it into other page, i.e www.mysite.com

Some messages suggest the use of iframes, but I do not know for sure if I can control as I would like the content of the iframe box. I mean:

Can I control that it shows only the news (posts, actually) from one date range (show only recent ones for example) ?

If there are more that one news feeder, could I show only the 'news' of one of them in a date range?

Could I strip the forum style for this box to make a more close 'news' appearance to the box?

Finally, can I ask through an api or similar to get these items raw data for rendering myself instead of using iframes?

Any help in any of the questions will be highly appreciatted.

TIA

Carlos





[originally posted on jforum.net by losalo]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
A lot of this depends on how you're "information" flow is going to happen. If I interpreted this right is you'd like a "News" forum (more than one?) with moderated or limited access to posting (Marketing folks, etc). Then there is a recent "news" section on the web site that will display just the recent articles in a pretty format... probably with a link to go to the full news forum.

A couple of ways to do this are:

Look at the RSS feed code. This can be limited to a specific forum (might need CVS version). In this case, the code that generates your "pretty" news page could issue a standard RSS request for information from jForum and parse it into what you want.

If this doesn't work, probably the easiest alternative is to just go directly to the jForum database tables. As long as you don't need to dig into security constraints, it's fairly simple to query the database for recent postings.

The basics are to do a search on the jforum_topics table with the forum_id (or ids) to get the "summary" info. And then use the post_id part of this to retrieve the full info from the jforum_posts and jforum_posts_text tables.

Note that this totally ignores any jforum security constraints on what can be seen or not. So, if that's important, you'll have to deal with that as well.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi again,

Thanks for answering. You get quite right the picture and the options you mentioned could do the trick. I am going to try them.
[originally posted on jforum.net by losalo]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting as a news box (i.e embedded in a portal)