php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#222450 - 08/15/02 05:18 PM [6.2] Auto Group Change 1.1 beta
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala

   [6.2] Auto Group Change 1.1 beta to Del.icio.us Add to del.icio.us
  Digg [6.2] Auto Group Change 1.1 beta Digg it
Mod Name / Version Auto Group Change 1.1 beta <br />Description Automatically upgrades a user from one group to another when reaching a set number of posts. <br />Working under UBB.threads 6.2.2 <br />Any pre-requisites None <br />Author(s) Gardener <br />Credits Conrad who suggested it <br />Demo Not really necessary <br />Files Altered addpost.php <br />Database Altered No <br />New Files None <br />Any other info Updated the instructions for 6.2.2, added the possibility to have several levels. <br /> <br /> [:"red"] <br />This mod automatically adds users to groups based on how many posts they have made, much like the user titles. <br /> [/]


Attachments
54218-AutoGroupChange-1_1beta.txt (183 downloads)



Edited by Gardener (02/18/03 06:42 PM)
_________________________
/Gardener | Complete list of my mods

Top
#222451 - 08/16/02 12:24 AM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: c0bra]
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25429
Loc: Texas
Nice, I can see where it would be useful for admission into forums for higher groups <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#222452 - 01/17/03 01:29 PM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: SurfMinister]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
Is it compatible with 6.1.1 and 6.2 ??

Top
#222453 - 01/17/03 02:24 PM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: himik]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Not quite, but it should be easy to fix. The mod uses Username which should be changed to user number. I'll have a look at it when I get the time, but it will probably not be this weekend, so if someone else could take a look it would be great.
_________________________
/Gardener | Complete list of my mods

Top
#222454 - 01/19/03 01:33 AM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: c0bra]
Storm_dup1 Offline
Member

Registered: 08/03/02
Posts: 263
Loc: Somewhere above Texas
This is definitely one I wish we had for 6.2.....
_________________________
Some people read their stars..... I choose to write my own

Top
#222455 - 01/19/03 10:37 AM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: ]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
I'll take a look at it soon, but I've got some programming to do for a C++ course I'm taking, so it won't be today.
_________________________
/Gardener | Complete list of my mods

Top
#222456 - 01/19/03 10:44 AM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: c0bra]
Storm_dup1 Offline
Member

Registered: 08/03/02
Posts: 263
Loc: Somewhere above Texas
Cooool! Thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Some people read their stars..... I choose to write my own

Top
#222457 - 02/15/03 07:29 PM Re: Auto Group Change 1.0beta (for 6.0.2) [Re: c0bra]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Hi Gardener, <br /><br />this is now nearly a month ago. Did you find time or do you have forgotten it? <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#222458 - 02/18/03 06:44 PM Re: [6.2] Auto Group Change 1.1 beta [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
I've just updated this mod for 6.2.2 and made it a bit more flexible when I was at it. It's now possible to have as many levels of group upgrades as you want, just edit the file filters/usergroups and add the post levels and what group they should be upgraded to. It works just like the user titles. <br /> <br />The new version is attached to the first post of this thread.
_________________________
/Gardener | Complete list of my mods

Top
#222459 - 02/18/03 07:18 PM Re: [6.2] Auto Group Change 1.1 beta [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ah.. this questions came up today. Good work. <br /><br />Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#222460 - 02/19/03 03:14 AM Re: [6.2] Auto Group Change 1.1 beta [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Yeah, that's how I remembered I had promised to update this hack so I decided to do it right away. =]<br /><br />I like the idea of multiple user levels, it seems almost like the good ole BBS days. =] But I don't think we'll be using it on our own site, we don't really have anything we don't want to show to everyone.
_________________________
/Gardener | Complete list of my mods

Top
#222461 - 04/14/03 06:36 PM Re: [6.2] Auto Group Change 1.1 beta [Re: c0bra]
Storm_dup1 Offline
Member

Registered: 08/03/02
Posts: 263
Loc: Somewhere above Texas
For some reason this isn't updating my users. I do have the code correct and the usergroups file created. Does the usergroup file need to have any particular permissions?
_________________________
Some people read their stars..... I choose to write my own

Top
#222462 - 04/14/03 09:41 PM Re: [6.2] Auto Group Change 1.1 beta [Re: ]
Storm_dup1 Offline
Member

Registered: 08/03/02
Posts: 263
Loc: Somewhere above Texas
ummmmm Never mind..... Got it working........ <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Some people read their stars..... I choose to write my own

Top
#222463 - 05/29/03 10:34 PM Re: [6.2] Auto Group Change 1.1 beta [Re: ]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
If someone has over a set amount of posts, will it automatically assign them to their groups on their next post? I'm asking because I have around 1800 posts. I have it set to add users to group 6 once they reach 50 posts. I posted, but I wasn't added to the group.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#222464 - 06/01/03 08:51 AM Re: [6.2] Auto Group Change 1.1 beta [Re: eslmix]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
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.<br /><br />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:<br /><br />Find this row:<br />
Code:
if ( ($Totalposts == $posts) &amp;&amp; !strstr($CurrGroups, $thegroup) ) {
<br /><br />Change it into this:<br />
Code:
<br />if ( ($Totalposts &gt;= $posts) &amp;&amp; !strstr($CurrGroups, $thegroup) ) {
<br /><br />This should add the users to all groups they have enough posts for (although it is untested).<br /><br />If you only want the highest group, you would probably have to do something like this instead:<br /><br />Find these lines:<br />
Code:
<br />	if ( ($Totalposts == $posts) &amp;&amp; !strstr($CurrGroups, $thegroup) ) {<br />	  $NewGroups .= "$thegroup-";<br />	  break;<br />	}<br />
<br /><br />Change them into this:<br />
Code:
<br />	if ( ($Totalposts &gt;= $posts) &amp;&amp; !strstr($CurrGroups, $thegroup) ) {<br />	  $NewGroups = "$thegroup-";<br />	  break;<br />	}<br />
<br /><br />This is also untested, but I think it should work.
_________________________
/Gardener | Complete list of my mods

Top
#222465 - 06/01/03 12:26 PM Re: [6.2] Auto Group Change 1.1 beta [Re: c0bra]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Thanks! I'll give it a whirl! <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#222466 - 06/18/03 12:23 AM Re: [6.2] Auto Group Change 1.1 beta [Re: eslmix]
Deejay_dup1 Offline
Journeyman

Registered: 08/25/02
Posts: 106
Im looking for a hack/mod -sort of- like this one... <br /> <br />Would it be possible to mod this hack so that you can specify a DATE and TIME instead of the amount of posts, and then the group changes?? <br /> <br />So if I get a user that makes a donation, I change them to a group i specify (could be any one of a number groups), and enter in a date they expire... then when that date comes, they are moved back to the default "user" group? <br /> <br />Deejay <br />

Top
#222467 - 06/18/03 08:06 AM Re: [6.2] Auto Group Change 1.1 beta [Re: darenu]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Well, I guess the post number could be exchanged with a date and the check is made against todays date instead of the post number. The problem is that this is only run in addpost.php, so it wouldn't update until they write a post. Don't know where a better place for it would be though, maybe the login page, at least something that's not run very often since you don't want to have to do lots of extra file accesses and stuff.
_________________________
/Gardener | Complete list of my mods

Top
#222468 - 09/25/03 07:56 AM Seems to work in 6.3.2 [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
This has been reported to work in UBB.threads 6.3.2 as well.
_________________________
/Gardener | Complete list of my mods

Top
#222469 - 09/25/03 08:40 AM Re: Seems to work in 6.3.2 [Re: c0bra]
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25429
Loc: Texas
danke <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
Page 1 of 2 1 2 >


Who's Online
1 Registered (AllenAyres), 42 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 12
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
W-D 3

 

 

 
fusionbb message board php hacks