Advertisement:

Author Topic: Multiple Boards (again)  (Read 58845 times)

Offline drhamad

  • Sophist Member
  • *****
  • Posts: 1,358
  • Gender: Male
    • FMVperformance Automotive Communities
Re: Multiple Boards (again)
« Reply #100 on: November 23, 2005, 03:39:13 PM »
Any updates on this?
We can share the tables but counting totals is not done automatically... What should we do?

Counting totals is not done automatically?  What do you mean?
You will not get a seperate forum total post count for each forum with this mod (although I suppose it could be programmed in).  But you can get seperate user post counts for each forum, and a user total post count.

What is it that you can't get working?
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,285
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: Multiple Boards (again)
« Reply #101 on: November 23, 2005, 03:43:20 PM »
The thing that doesnt work is:
When someone registers on one forum, the other forum doesnt count him and doesnt show him as the lastest member.
The member amount is not the same in both forums althouh members table is shared.
[unknown] has given a hack to do this but its very old and new codes are changed much..
Home of Elmacik

Offline drhamad

  • Sophist Member
  • *****
  • Posts: 1,358
  • Gender: Male
    • FMVperformance Automotive Communities
Re: Multiple Boards (again)
« Reply #102 on: November 23, 2005, 09:43:03 PM »
The thing that doesnt work is:
When someone registers on one forum, the other forum doesnt count him and doesnt show him as the lastest member.
The member amount is not the same in both forums althouh members table is shared.
[unknown] has given a hack to do this but its very old and new codes are changed much..

Are you sure you're talking about this mod?  There aren't any shared or not shared tables in this mod - everything is shared.
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

Offline drhamad

  • Sophist Member
  • *****
  • Posts: 1,358
  • Gender: Male
    • FMVperformance Automotive Communities
Re: Multiple Boards (again)
« Reply #103 on: August 19, 2006, 02:52:57 PM »
A problem to updating this to SMF 1.1 RC3 (from SMF 1.0.5):

This function seems to have moved:
Quote
   OPEN Post.php
   
FIND
updateMemberData($ID_MEMBER, array('posts' => 'posts + 1'));

REPLACE WITH
updateMemberData($ID_MEMBER, array('posts' => 'posts + 1', 'posts' . $GLOBALS['ID_FORUM'] => 'posts' . $GLOBALS['ID_FORUM'] . ' + 1'));
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

Offline mytreo

  • Jr. Member
  • **
  • Posts: 284
    • treo
Re: Multiple Boards (again)
« Reply #104 on: October 24, 2007, 05:42:36 AM »
Hi drhamad, I am too wanting to use this similar mod for our forums too...

I see your forums are now using SMF 1.1.x so did you fix the problem above?

I believe the function has now changed and is in Subs-Post.php at around line 1660:

Code: [Select]
        // Increase the post counter for the user that created the post.
        if (!empty($posterOptions['update_post_count']) && !empty($posterOptions['id']))
        {
                // Are you the one that happened to create this post?
                if ($ID_MEMBER == $posterOptions['id'])
                        $user_info['posts']++;
                updateMemberData($posterOptions['id'], array('posts' => '+'));
        }

I am thinking that changing the above to something like this would do the trick...

Code: [Select]
        // Increase the post counter for the user that created the post.
        if (!empty($posterOptions['update_post_count']) && !empty($posterOptions['id']))
        {
                // Are you the one that happened to create this post?
                if ($ID_MEMBER == $posterOptions['id']) {
                        $user_info['posts']++;
                        $user_info['posts' . $GLOBALS['ID_FORUM'] . '']++; // <-- Not too sure about this bit
                }
                updateMemberData($posterOptions['id'], array('posts' => '+', 'posts' . $GLOBALS['ID_FORUM'] => '+'));
        }

Can you offer any advice?

Thanks
Chris
Treo forum - Powered by SMF, of course
Treo news - powered by MovableType and integrated with SMF
Treo downloads - hacked from phpNuke and integrated with SMF
Treo knowledge base - powered by Wikka and integrated with SMF
Treo 650 | Treo 700w | Treo 700p

Offline azn_romeo_4u

  • Semi-Newbie
  • *
  • Posts: 22
    • Dragonica
Re: Multiple Boards (again)
« Reply #105 on: May 18, 2009, 11:28:02 PM »
I am looking for the same solution.  I'm going to try use though, the one posted above and see what happens.  Anyone got development going on this?

Offline drhamad

  • Sophist Member
  • *****
  • Posts: 1,358
  • Gender: Male
    • FMVperformance Automotive Communities
Re: Multiple Boards (again)
« Reply #106 on: May 28, 2009, 10:08:26 PM »
Well, it has been a couple years.  We still use a solution in some way similar to this, but we've done a lot of development on it.  Unfortunately, I don't have an easily packagable and useable solution.  Our solution at this point is MUCH more advanced than what you see in this thread, but at the same time, utterly not acceptable as an SMF package due to its... hacked together... nature.

I would recommend seeing if vbgamers (smfhacks.com) publicly released mutliforum package does what you need.  I haven't tried it and can't actually recommend whether or not you should USE it.
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers