Customizing SMF > Tips and Tricks

Share user database for 2 (or more) different forums.

<< < (91/94) > >>

TaGBaN:
I just went thru and did this, also included spiders, ban_items, sesisons, etc.

First: Cookies are definately not working for me, neither are sessions cross domains.
- Both DOMAINS are on the same webserver, so sharing DB was easy.
Second: I was trying to follow [Unknown]'s initial instructions for sharing "Last Member Registered", and "Register Count", but was unable to. I am using SMF 2.0.1.

My domains: http://www.bnet.cc // http://www.eArena.net/

Any help is welcome!

nw:
@FD:

Ideally, we should edit the register() function and redirect it to the first board, but I'm too lazy to do that so I just hardcode the link.

In the Source/Subs.php file, change the
--- Code: ---'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
--- End code ---


to false like this:


--- Code: ---'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => false,
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
--- End code ---

If you want to completely disable the registration button on the child boards. Or you can also redirect them to the main board using this code:


--- Code: ---'register' => array(
'title' => $txt['register'],
'href' => 'your main site registration link here',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
--- End code ---


You will also need to edit your theme. This is the edit in the default theme:

Themes/default/language/index.english.php

Look for:


--- Code: ---$txt['login_or_register'] = 'Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';
--- End code ---

And remove the registration link:


--- Code: ---$txt['login_or_register'] = 'Please <a href="' . $scripturl . '?action=login">login</a>';

--- End code ---


@ TaGBaN

Haven't tried the instruction for the register count Yet. Sorry!

TaGBaN:
Its ok, I did EVERYTHING with database redirects, so thatthere isn't any confusion. I used the SQL "VIEW" command and linked them together that way. So that if SMF updates, it shouldn't mess up anything. Definately works smoothly, just really worried about the 'Cookies' and Database sessions not working right now. Anyone have ideas about those?

FireDitto:
Tagban... If you also linked "messages" you're going to run into the issue I had: the topics with the same number will be duplicated across all linked forums. 

FireDitto:
I changed hosts... But in re-setting everything, it appears that my forums are not going to read the 'shared' settings required in the database...

How can I fix this??

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version