Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
No, it only updates when a user reaches _exactly_ the given amount of posts. I believe I had two reasons for this, firstly it is the way threads handles title upgrades and I thought it would be a good idea to keep it consistent. The other reason was that it would mean that you could also move users out of the given group when they upgrade to the next level etc.

If you want to add the user to the group if they have as many as or more posts than the given number, you could make the following changes in the addpost.php code after you've added the hack:

Find this row:
Code
if ( ($Totalposts == $posts) && !strstr($CurrGroups, $thegroup) ) {


Change it into this:
Code
<br />if ( ($Totalposts >= $posts) && !strstr($CurrGroups, $thegroup) ) {


This should add the users to all groups they have enough posts for (although it is untested).

If you only want the highest group, you would probably have to do something like this instead:

Find these lines:
Code
<br />	if ( ($Totalposts == $posts) && !strstr($CurrGroups, $thegroup) ) {<br />	  $NewGroups .= "$thegroup-";<br />	  break;<br />	}<br />


Change them into this:
Code
<br />	if ( ($Totalposts >= $posts) && !strstr($CurrGroups, $thegroup) ) {<br />	  $NewGroups = "$thegroup-";<br />	  break;<br />	}<br />


This is also untested, but I think it should work.

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.2] Auto Group Change 1.1 beta Gardener 08/16/2002 12:18 AM
Re: Auto Group Change 1.0beta (for 6.0.2) AllenAyres 08/16/2002 7:24 AM
Re: Auto Group Change 1.0beta (for 6.0.2) dreamer_dup1 01/17/2003 9:29 PM
Re: Auto Group Change 1.0beta (for 6.0.2) Gardener 01/17/2003 10:24 PM
Re: Auto Group Change 1.0beta (for 6.0.2) Storm_dup1 01/19/2003 9:33 AM
Re: Auto Group Change 1.0beta (for 6.0.2) Gardener 01/19/2003 6:37 PM
Re: Auto Group Change 1.0beta (for 6.0.2) Storm_dup1 01/19/2003 6:44 PM
Re: Auto Group Change 1.0beta (for 6.0.2) jluerken 02/16/2003 3:29 AM
Re: [6.2] Auto Group Change 1.1 beta Gardener 02/19/2003 2:44 AM
Re: [6.2] Auto Group Change 1.1 beta JoshPet 02/19/2003 3:18 AM
Re: [6.2] Auto Group Change 1.1 beta Gardener 02/19/2003 11:14 AM
Re: [6.2] Auto Group Change 1.1 beta Storm_dup1 04/15/2003 1:36 AM
Re: [6.2] Auto Group Change 1.1 beta Storm_dup1 04/15/2003 4:41 AM
Re: [6.2] Auto Group Change 1.1 beta AKD96 05/30/2003 5:34 AM
Re: [6.2] Auto Group Change 1.1 beta Gardener 06/01/2003 3:51 PM
Re: [6.2] Auto Group Change 1.1 beta AKD96 06/01/2003 7:26 PM
Re: [6.2] Auto Group Change 1.1 beta Deejay_dup1 06/18/2003 7:23 AM
Re: [6.2] Auto Group Change 1.1 beta Gardener 06/18/2003 3:06 PM
Seems to work in 6.3.2 Gardener 09/25/2003 2:56 PM
Re: Seems to work in 6.3.2 AllenAyres 09/25/2003 3:40 PM
Re: Seems to work in 6.3.2 AllenAyres 10/22/2003 3:59 PM
Re: Seems to work in 6.3.2 Gardener 10/24/2003 5:57 PM
Re: Seems to work in 6.3.2 AllenAyres 10/27/2003 5:14 AM
Re: [6.2] Auto Group Change 1.1 beta AllenAyres 11/05/2003 7:50 AM
Re: [6.2] Auto Group Change 1.1 beta Gardener 11/05/2003 6:01 PM
Re: [6.2] Auto Group Change 1.1 beta donJulio 11/26/2003 5:08 AM
Re: [6.2] Auto Group Change 1.1 beta AllenAyres 01/06/2004 8:07 PM
Re: [6.2] Auto Group Change 1.1 beta BWilliams_dup1 02/25/2004 1:21 AM
Re: [6.2] Auto Group Change 1.1 beta donJulio 05/16/2004 10:04 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)