php forum
php mysql forum
php mysql smarty
 
Topic Options
#258682 - 09/11/03 06:55 PM Beta-[6.1-6.2-6.3] Delete groups
Slawek_L Offline
Enthusiast

Registered: 01/28/03
Posts: 364
Loc: Poland, Warsaw
Mod Name / Version: Delete groups <br /><br />Description: Abbility to delete groups <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /><br />Working Under: UBB.Threads 6.1-6.2-6.3 <br /><br />Mod Status: Beta <br /><br />Any pre-requisites: none <br /><br />Author(s): Slawek_L <br /><br />Date: 09/12/03 <br /><br />Credits: <br /><br />Files Altered: menu.php <br /><br />New Files: deletegroup.php<br />dodeletegroup.php <br /><br />Database Altered: none <br /><br />Info/Instructions: Tested in 6.2.3 and in 6.1.1. <br />In 6.3 version I checked only tables names.<br /><br />Hack write for 6.2, but it will work for 6.1.x when we delete "get_input" lines. <br /><br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /><br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files. <br /><br />


Attachments
94464-deletegroup.zip (14 downloads)

_________________________
[]http://www.mb.org.pl/forum/images/graemlins/icon_astro.gif[/] MB Klub Polska
[b]& Orlen-Team

Top
#258683 - 09/12/03 04:45 AM Re: Beta-[6.1-6.2-6.3] Delete groups [Re: Dawg_dup1]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
What about members that are still in this group?<br />Are they moved out of them before with this hack?
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

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

Top
#258684 - 09/12/03 06:21 AM Re: Beta-[6.1-6.2-6.3] Delete groups [Re: edr]
Slawek_L Offline
Enthusiast

Registered: 01/28/03
Posts: 364
Loc: Poland, Warsaw
Hack delete group only. I dont know where move users, to which group. (admins, moderators, users or another?<br />
_________________________
[]http://www.mb.org.pl/forum/images/graemlins/icon_astro.gif[/] MB Klub Polska
[b]& Orlen-Team

Top
#258685 - 09/12/03 04:27 PM Re: Beta-[6.1-6.2-6.3] Delete groups [Re: Dawg_dup1]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
I wouldn't recommend this hack. I posted a reason in another thread but I'll repost it here in case anyone misses it.<br /><br />Deleting groups isn't a good idea, which is why deleting a group was never an admin function. The U_Groups field is a varchar field, max limit of 255. The G_Id in the Groups table is an auto_incremented field. To make it so a user can belong to the maximum number of groups .threads enforces the max group # to 99, 2 digits in length. When you delete a group that G_Id will not be reused since it's an auto_inc field so eventually you'll end up not being able to create any new groups. That's why in 6.4 they don't actually delete they just get disabled.
_________________________
StogieSmokers.com

Top
#258686 - 09/19/03 05:10 AM Re: Beta-[6.1-6.2-6.3] Delete groups [Re: Sally]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
The right way must be.<br /><br />1. Move all users from this group to the 'users' group which should be in 99% of all boards ok.<br /><br />2. delete the group (or disable it so that its not visible anymore)<br /><br />3. Decrease the G-Id counter by 1 and change this also on the board to reflect this for all members.<br /><br /><br />Seems not to be so easy <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

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

Top


Moderator:  Ian_W 
Who's Online
0 registered (), 27 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks