Advertisement:

Author Topic: Membergroup based on STATUS  (Read 26201 times)

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #40 on: April 02, 2005, 09:38:54 AM »
What I would do:
Find the low period in traffic for your board.  During this time put the board in maintenance mode, backup the database, install the mod, create your rules, see what happens.  If it goes well then just take it out of maintenance mode, if not then restore the database.  Take the board out of maintenance mode.  Make sure you let me know if there are any problems.

To process the rules you have to go to the view inactive members page so that will be a good way to see if its going to work or not.

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #41 on: April 02, 2005, 11:30:49 AM »
test #1
Installation
worked flawlessy. now testing rules.....

test #2
creating rule posts 0 max posts 0 days 400 remember group YES

result:
i get a large table with all the inactive members but

Member's Name     From Group               To Group                  Last On                                   Number of Posts     Rule's ID
johndoe         Ungrouped Members    Inactives (No posts)    January 01, 1970, 01:00:00 am    0                        1

but the problem is,
last on: 1970 jan 01, 1 am is shown with EVERY member

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #42 on: April 02, 2005, 11:33:59 AM »
i should add, that all the members that are sorted out by this rule, have in their profile "last online: NEVER"
so is that january 1 1970 the oldes possible SMF date :-)

so that's not really a bug. i turned the days down to 100 or so and now those "not so long inactive" ones turn out with correct dates shown.

what exactly does "save the member's groups" do?
« Last Edit: April 02, 2005, 11:37:50 AM by TarantinoArchives »

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #43 on: April 02, 2005, 12:40:09 PM »
Ok the Jan 01 date is the epoch which means the unix timestamp is 0.  I'll change it so that it says never

The save group option does this:
If set:  move the member's primary group to the additionalGroups field and also preserve the additionalGroups
If not set: Overwrites the member's primary group and clears the additionalGroups

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #44 on: April 03, 2005, 07:51:53 AM »
will the members that i moved still appear under their post-based group?

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #45 on: April 03, 2005, 12:16:21 PM »
Yes, this mod does not touch the post-based groups in any way

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #46 on: April 03, 2005, 12:32:28 PM »
Is there a tutorial or a readme to this mod?
I know I translated some stuff for you some months ago on that. For other users to check out, you know?

looking forward to the "next version" :-)
« Last Edit: April 03, 2005, 12:34:18 PM by TarantinoArchives »

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #47 on: April 03, 2005, 09:56:09 PM »
Version 0.2 is up
http://www.mikemill.org/board/index.php?topic=14.0

Quote
Version: 0.2
  - This is a BETA version.  If you find any errors please let me know at the email above.
  - Removed the maxPost fields.  Now all that is required is the minium number of posts
  - If a user has never logged in it should no longer say they last logged in January 01, 1970, 01:00:00 am but should instead say Never
  - Changed it so that the from group and to group can not be the same
  - If you uninstall the mod is should correctly remove Inactive.php and Inactive.template.php
  - Actually Remembered to package this readme file :)

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #48 on: April 04, 2005, 08:08:52 AM »
wow nice!
how do i update? uninstall the old, install the new? i havent moved any members yet

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #49 on: April 04, 2005, 09:48:03 AM »
In the package manager upload the file and then choose to upgrade.

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #50 on: April 05, 2005, 08:32:39 AM »
why did you remove the MaxPosts?
what if i want to distinguis between a user 0 posts and online:Never and a users 1000 posts and online: never?

I get this error when "view and process":

Quote
Table 'usr_web2_1.smf_members' doesn't exist
File: /var/www/web2/html/forum/Sources/Inactive.php
Line: 259

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.3, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #51 on: April 05, 2005, 11:18:03 AM »
I removed maxPosts because it was put in as a work around. 
Quote
what if i want to distinguis between a user 0 posts and online:Never and a users 1000 posts and online: never?
Well first off how can someone with 1000 posts have a last on as never?  If you want to distinguish between a 0 post member and a 1000 post member create two rules, one with 0 min and one with 1000 min.

As for your error:  Grumble I figured it out.  New version coming out in an hour or so.

Also I'll be changing it so that you can have the fromgroup be the same as the togroup as a DO NOTHING action
« Last Edit: April 05, 2005, 12:20:41 PM by MikeMill »

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #53 on: April 06, 2005, 08:24:20 AM »
Well first off how can someone with 1000 posts have a last on as never? 

if you transfer from YaBBSE to SMF....

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Membergroup based on STATUS
« Reply #54 on: April 06, 2005, 08:58:00 AM »
installed 0_4 today, still sais 1970 in the table....

maybe it didnt correctly uninstall all files?

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: Membergroup based on STATUS
« Reply #55 on: April 06, 2005, 02:53:04 PM »
Could one of the moderators do me a favor and lock this topic?  Since the mod is out of request stage and in the released / bug fix stage it would be easier if discussion was kept to the mod's topic.

Thanks