Topic: 2 forums and same users?
Is it possible to have 2 forums and use the same userlist? Is it possible to have 2 forums and share a categori between them. For example use the same "off topic" on both forums?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 discussion → 2 forums and same users?
Is it possible to have 2 forums and use the same userlist? Is it possible to have 2 forums and share a categori between them. For example use the same "off topic" on both forums?
Same discussion: http://punbb.org/forums/viewtopic.php?id=12909
Yes, it is possible, but u should to rewrite many queries.
Yes, it is possible, but u should to rewrite many queries.
not realy. punBB uses include/dblayer/ db backend files and queries go throught them (for example mysql.php). If you edit query function it will work. Here is my old hack:
function query($sql, $unbuffered = false)
{
global $db_prefix;
IF(ereg('rk_bans', $sql) or ereg('rk_groups', $sql) or ereg('rk_online', $sql) or ereg('rk_users', $sql))
{
$sql = str_replace($db_prefix.'bans', 'cms_rk_bans', $sql);
$sql = str_replace($db_prefix.'groups', 'cms_rk_groups', $sql);
$sql = str_replace($db_prefix.'online', 'cms_rk_online', $sql);
$sql = str_replace($db_prefix.'users', 'cms_rk_users', $sql);
}
if (defined('PUN_SHOW_QUERIES'))
..................
You can use strpos and not ereg in my case forum have ***_rk_ prefix and cms_rk_ is the "main forum"
Don't use ereg, use preg
seva wrote:Yes, it is possible, but u should to rewrite many queries.
not realy. punBB uses include/dblayer/ db backend files and queries go throught them (for example mysql.php). If you edit query function it will work. Here is my old hack:
..................
You can use strpos and not ereg in my case forum have ***_rk_ prefix and cms_rk_ is the "main forum"
It's a perversion And what if i run this query: 'INSERT INTO '.$db->prefix.'posts (message) VALUE (\'rk_groups\')'; ? So, it' a bad hack .. or mb i'm not correct?
You're right, I believe it would change any mention of the forum prefix
PunBB Forums → PunBB 1.2 discussion → 2 forums and same users?
Powered by PunBB, supported by Informer Technologies, Inc.