• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How to put JFrom in my site???

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know how to put the JForum in a CSS context in my web page, something like this:



May anybody help me?


[originally posted on jforum.net by luizclaudio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edit the files header.htm and bottom.htm, which you can find in the "templates/default" directory.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following on from this, how can I put a 'view' (as opposed to the entire forum) within an existing website?

For example, if I wish to put a "most recent posts" module on the homepage of my website - which will just include the 6 most recent posts of a specific forum? Is this possible?

PhpBB has plugins to do this - do we need to create a plugin, do we write code to access the DB directly, or is it already included in JForum?

Thank you very much,

Heather
[originally posted on jforum.net by heatherfraser]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hhm.. in this case, you probably will have to query the tables directly - jforum_topics and jforum_posts.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to confirm, to integrate JForm with my site I edit the JForum header and footer to make JForum look like is is part of my site? Is JForum.net integrated in this manner?

Is there any way to integrate the content other than that? Dynamic menus become a bit tricky, as they are generated by my existing web app, which obviously won't get called if the user is actually looking at the JForum app instead.

Also that then means I'll need to keep two sets of templates in sync, one for my existing site, and one for the JForum site, so that they continue to look the same.

Any help greatly appreciated.


[originally posted on jforum.net by NikL]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK, JForum.net is integrated using the header and footer method.

Another way to integrate jForum with an existing site is to use iFrames. Create a page based on your existing site that contains an iFrame for the content section. Then call jForum via this iFrame.

On the jForum side, create a minimum header/footer so that only the forum info is displayed (e.g. the gray section on this page).

One iFrame "trick" is to find one of the many Javascript-lets that will resize the iFrame to match the loaded content. This lets you avoid oversizing the frame or dealing with scroll bars.


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Sorry it has taken me a long time to get back to this.

All I wanted to do was have a little box on my homepage (which is in a separate webapp from Jforum) which features the 5 most recent posts made in the forum. Phpbb has many hacks which allow this sort of stuff - http://www.phpbbhacks.com/category/23/ - some of which allow it even to be syndicated to a separate site. So, I think this is very useful for all forums since it drives traffic to the forum.

Where can I find the SQL which is needed to generate this? Is there a particular java file?

Thank you very much,

Heather.
[originally posted on jforum.net by heatherfraser]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the following query to get all the information (and more) that you'd need for this:



Note that if you have secured/private forums, this query may expose information that you don't want seen.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your case i would use most recent topics rss. Whithin your application download this rss regulary, parse it and display five most recent topics or how many you wish... you don't need to deal with jforum code and it is the easiest way i would say.
Palko
[originally posted on jforum.net by palko]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, Monroe, for taking the time to post the actual SQL.

And thank you, Palko. You are absolutely right ~ the RSS feeds are a much cleaner way to go. I hadn't even noticed the RSS feeds that JForum provides until you mentioned them ! I've just downloaded ROME & JDOM and it was not too difficult in JSP. If anybody else requires:


[originally posted on jforum.net by heatherfraser]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!