• 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
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

installing in a subdir

 
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,

Is it possible to install jforum without using a new context. I have my own
java site with his own web.xml. Is it possible to merge your web.xml
and install the files in a /forum subdir ?

(If i have to use two web.xml, I would need to pay for it)

Thanks, Daniel

PS: Is there a French properties language file available somewhere?

[originally posted on jforum.net by Anonymous]
 
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,

Is it possible to install jforum without using a new context. I have my own
java site with his own web.xml. Is it possible to merge your web.xml
and install the files in a /forum subdir ?

(If i have to use two web.xml, I would need to pay for it)

Thanks, Daniel



Hi Daniel,

you can use jforum with your existing context without problems. Just copy the files into web-inf/config, web-inf/classes and web-inf/lib to your existing web-inf dir, merge the web.xml from jforum and put the other dirs, like templates and images, in the root dir. That's all.


PS: Is there a French properties language file available somewhere?



Not currently. You're welcome to make it

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
what a quick answer!!

What would be the root directory of jforum then ?
"/" il already used by my own app

Daniel
[originally posted on jforum.net by Anonymous]
 
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

Anonymous wrote:what a quick answer!!

What would be the root directory of jforum then ?
"/" il already used by my own app

Daniel



Use this same root dir ( / ).

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Hum, that could lead to url conflicts. The home page to begin with.
what would happen if copy images and templates in a subdir?
like /forum ?

Daniel
[originally posted on jforum.net by Anonymous]
 
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
url conflits? you mean, image names and kinda?

I *guess* you can put it into a subdir, but you'll need to make a little change in the code: at JForum.java, method init(), there is some code that uses getRealPath() to discover the phyfical application path, like at



You'll need to include your subdir in those places, otherwise jforum will not locate the files.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
for example, the home page would conflict. Other pages seem to begin with forums/ search/ ....
Maybe just changing the "back to home page link" is enough

if its only one line in the code to change it should be feasable I guess...
and put the subdir in a config file somewhere

I'll look after than

Daniel



[originally posted on jforum.net by Anonymous]
 
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,

So I did try the simpliest way just as you said copied everything straight
to root directory. And WEB-INF to WEB-INF.

It seems it should be quiet conflict-free after all, except for the home page. Yet a link to /forums/list.page seems to work.

I was also afraid of session conflicts since the httpsession is shared. But after a little sneak in your code it appears you use only the sessionId.

The only sideEffect is that disconnecting on the main site disconnects from the forum, not a problem.

Yet I still have one problem: the "back to home page" points strangely
to /forums or to /users etc. How do I fix that?

Daniel

PS: Bonus question: did I missed it or there is no "quote last message" option like in phbb?

PS: I guess I can look at this french translation ;)




[originally posted on jforum.net by Anonymous]
 
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


Yet I still have one problem: the "back to home page" points strangely
to /forums or to /users etc. How do I fix that?



This is a problem in the current verion.. a little mistake of mine. Just edit the file "templates/default/forum_base.htm", go to line 49 and change the last like, that is



to the correct link



PS: Bonus question: did I missed it or there is no "quote last message" option like in phbb?



hhhmm.. there is a "Quote" link on each post. Isn't that?


PS: I guess I can look at this french translation ;)



Great

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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


This is a problem in the current verion.. a little mistake of mine. Just edit the file "templates/default/forum_base.htm", go to line 49 and change the last like, that is



to the correct link



Hum not sure what the "correct link" is.. simply "/forums/list.page" ?



hhhmm.. there is a "Quote" link on each post. Isn't that?


Got it!!


Well Translation done, I send it in private. There are still the buttons (.gif) that needs translation, or just a rob from phpbb ;)

Daniel

[originally posted on jforum.net by pala]
 
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

pala wrote:
Hum not sure what the "correct link" is.. simply "/forums/list.page" ?



May be. But you can put any link you want. Someone will like to put the link to the main page ( eg, your website ), and others will like to link to the main page of the forum ( but this does't makes much sense, since there is a link "Forum Index" already ).

pala wrote:
Well Translation done, I send it in private. There are still the buttons (.gif) that needs translation, or just a rob from phpbb ;)



Niiiiice!! Thank you so much.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Hum, it seems I overlooked the Ranking part in my translation.
Yet I'm not sure to really understand the use of this functionnality.

Daniel
[originally posted on jforum.net by pala]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic