• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic