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

   Beta-[6.1-6.2-6.3] Delete groups to Del.icio.us Add to del.icio.us
  Digg Beta-[6.1-6.2-6.3] Delete groups Digg it
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 (), 26 Guests and 4 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.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
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 7
tackaberry 7
FREAK1 5
Mike L_dup1 4
Chris Bale 4
Ian_W 4

 

 

 
fusionbb message board php hacks