1

Topic: Few questions about integration

Hi there,

I want to completely integrate punBB in the next version of one of my websites. Few indications:

I want to use punBB user management for the whole website (and not only the forums)

I want a nice two levels horizontal navivation bar

I need to make it work with 3 languages (and many more later) with url rewriting

I want to use subforums

I've got a couple of first questions:

a. Is it better to integrate punBB to my website or to integrate my website to punBB?
Should I start from my existing website or from punBB?

b. Is it easy to manage several languages? (with url rewriting) I'd like to use only one user table for 3 forums

example:
www.mysite.tld/en/ -> menus and topics in english
www.mysite.tld/es/ -> menus and topics in spanish
www.mysite.tld/fr/  -> menus and topics in french

Is it possible to filter categories with languages? or should I install 3 instances of punBB?
A good example of what I'd like to do ... someone posts in spanish in the english forums, I'd like to move his post to the spanish forums. Is that possible?

c. Is it possible to install "sub sub forums"?
example:
level 1: recipes forum
-level 2 (sub forum): mexican recipes
--level 3 (sub sub forum): tacos recipes
--level 3 (sub sub forum): burritos recipes


Thanks in advance for your help smile

Re: Few questions about integration

a. It will probably be easier to integrate your site with PunBB. To decide you might want to look at PunBB's existing integration mechanism.

b. If you choose to use separate forum installs with the same users table, the following topics may be useful:
http://punbb.org/forums/viewtopic.php?id=8755
http://punbb.org/forums/viewtopic.php?pid=75974

Alternatively, you might try modding index.php to show a specified category and base your URL scheme off of that.

c. Not that I know of

Looking for a certain modification for your forum? Please take a look here before posting.

3

Re: Few questions about integration

Thanks for your response.

a. so I should start to punBB and add my own pages?

b. I think the best solution would be to mod punBB in order to do show categories and forums sorted by language (but I don't know where to start). Using separate forum would also be a solution, but I would be blocked if I want to move topics from a forum to another one ...

c. I'll see what I can do

Re: Few questions about integration

a. Yes

b. Well, start by adding the mod I linked to, I'm not sure what exactly you want in terms of sorting the forums by language, however.

Looking for a certain modification for your forum? Please take a look here before posting.

5

Re: Few questions about integration

about b. this is what I'd like to do:

Category 1 [english] I love punBB!
    forum  1 [english] news
    forum  2 [english] discussions

Category 2 [english too] general discussions
    forum  3 [english] coding
    forum  4 [english] cafe

   
Category 3 [spanish] Quiero punBB!
    forum  5 [spanish] novedades
    forum  6 [spanish] discussionnes

Category 4 [spanish] no sé que escribir
    forum  7 [spanish] codigo
    forum  8 [spanish] al bar

Category 5   [french] J'aime punBB!
    forum  9   [french] Nouveautes
    forum  10 [french] Discussions

Category 6   [french] bla bla
    forum  11   [french] code
    forum  12 [french] bistrot


then  www.mydomain.net/forum/en/ would display
Category 1 [english] I love punBB!
    forum  1 [english] news
    forum  2 [english] discussions

Category 2 [english too] general discussions
    forum  3 [english] coding
    forum  4 [english] cafe

and the board language would be in english


www.mydomain.net/forum/es/ would display
Category 3 [spanish] Quiero punBB!
    forum  5 [spanish] novedades
    forum  6 [spanish] discussionnes

Category 4 [spanish] no sé que escribir
    forum  7 [spanish] codigo
    forum  8 [spanish] al bar

and the board language would be in spanish


www.mydomain.net/forum/fr/ would display
Category 5   [french] J'aime punBB!
    forum  9   [french] Nouveautes
    forum  10 [french] Discussions

Category 6   [french] bla bla
    forum  11   [french] code
    forum  12 [french] bistrot

and the board language would be in french

do you think such a thing is possible?

Re: Few questions about integration

very possible - you could do it in 2 ways that i can think of straight off:
1) create a new column in the category or forum table to specifiy "francais", "english", "espanol" etc and then use the same index.php to show the relevant forums depending on whether the URL contains "forum/fr/", "forum/en/", or "forum/es/" etc
2) have a custom index.php for each language forum within your 1 forum that pulls only the relevant forums (no need to alter the DB then but it will be more messy should you add new forums later)

7

Re: Few questions about integration

Great!

the 1) solution seems better as I might add new forums in a while. An interesting point is that I'd like to move a spanish topic to the english part of the website if it's been posted in the wrong area...

Which files should I modify for all this?

8 (edited by -J- 2007-03-14 15:15)

Re: Few questions about integration

c. Is it possible to install "sub sub forums"?

I took me few hours but this is working now smile

let's see the b. part now!

I think adding a language column to the category table would be the best solution?

Then I have to filter what's displayed by index.php  ... currently thinking about the filter ... (url rewriting could help?)