it possible can be a bridge to users between 2 or more SMF

Started by ciscko, October 25, 2009, 12:39:45 PM

Previous topic - Next topic

ciscko

 
hi

it possible can be a bridge to users between 2 or more SMF


thanks


tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.


ciscko


tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.


tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

ciscko

I apologize....    version 1.1.10

tyty1234

Ok, so what the post I linked to is basically saying is that you have to go into all the files in the Sources directory, and replace these below.

{$db_prefix}members
{$db_prefix}pm_recipients
{$db_prefix}personal_messages

With the {$db_prefix} being the prefix of your first forum. ("smf_" maybe)

It also says you can replace these.

{$db_prefix}attachments - To share the attachments and avatars.
{$db_prefix}themes - To share the themes.
{$db_prefix}ban_groups - To share the bans.
{$db_prefix}ban_items - To share the bans.
{$db_prefix}log_banned - To share the bans.
{$db_prefix}log_online - To share the online users.

Just be sure you change the second db prefix, to the first db prefix. In other words, edit all the source files in the second forum, and make changes stated above. :)
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

ciscko

   
Thanks for replay  :D

I give  an example to see if I understand correctly


So change the script below

// Get counts on every type of activation - for sections and filtering alike.
   $request = db_query("
      SELECT COUNT(*) AS totalMembers, is_activated
      FROM {$db_prefix}members
      WHERE is_activated != 1
      GROUP BY is_activated", __FILE__, __LINE__);


   
And the final will look like

// Get counts on every type of activation - for sections and filtering alike.
   $request = db_query("
      SELECT COUNT(*) AS totalMembers, is_activated
      FROM {as smf_.}members
      WHERE is_activated != 1
      GROUP BY is_activated", __FILE__, __LINE__);



tyty1234

actually, if your first db_prefix is "smf_" then you will do this.

Code (Find) Select

// Get counts on every type of activation - for sections and filtering alike.
   $request = db_query("
      SELECT COUNT(*) AS totalMembers, is_activated
      FROM {$db_prefix}members
      WHERE is_activated != 1
      GROUP BY is_activated", __FILE__, __LINE__);


Code (Replace With) Select

// Get counts on every type of activation - for sections and filtering alike.
   $request = db_query("
      SELECT COUNT(*) AS totalMembers, is_activated
      FROM smf_members
      WHERE is_activated != 1
      GROUP BY is_activated", __FILE__, __LINE__);
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Norv

Please make sure you have complete database backups of both SMFs before trying to start this process.

The same for backups of the SMF folders of your installations.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: