Topic: Multi Forums

Hi!
I use the PunBB Forum but now i got a problem
I need 2 diferents forums in 2 diferents url's but with the same users, the forums need to share the users
I tried to modificate the code and I can make it, but always i go to one of the forums when i log in

there are any mod that can work with this idea?

Re: Multi Forums

Hi!
Maybe this topic will help you to solve your problem.

Re: Multi Forums

I use the 1.2.17 version and can't find the file with that code to change
any idea?

Re: Multi Forums

Xavier77, what exactly you can't find?
If you use MySQL you should:

  • Find file <FORUM_URL>/include/dblayer/mysql.php

  • Find code Line 76-79:
    if (defined('PUN_SHOW_QUERIES'))

    $q_start = get_microtime();

    if ($unbuffered)

  • Replace this lines with this:
    if (defined('PUN_SHOW_QUERIES'))

    $q_start = get_microtime();

    $sql = str_replace($this->prefix.'users', <your forum user table> , $sql);

    if ($unbuffered)

Re: Multi Forums

this work in the new version (1.3)?
i try it but no

Re: Multi Forums

nobody is around?

Re: Multi Forums

Xavier77 wrote:

this work in the new version (1.3)? i try it but no

The idea of the patch is to replace all usertable calls with the same one table name. This must be working on 1.3, though you'll maybe need more places to do this replacement. This may be done my an extension.

Did you solve it?

Carpe diem

8

Re: Multi Forums

Slavok wrote:

$sql = str_replace($this->prefix.'users', <your forum user table> , $sql);

Is there any way to use last_visit field contents for each forum independently?

9

Re: Multi Forums

8k84 wrote:
Slavok wrote:

$sql = str_replace($this->prefix.'users', <your forum user table> , $sql);

Is there any way to use last_visit field contents for each forum independently?

Nope.