Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Mod Name / Version: Delete groups

Description: Abbility to delete groups

Working Under: UBB.Threads 6.1-6.2-6.3

Mod Status: Beta

Any pre-requisites: none

Author(s): Slawek_L

Date: 09/12/03

Credits:

Files Altered: menu.php

New Files: deletegroup.php
dodeletegroup.php

Database Altered: none

Info/Instructions: Tested in 6.2.3 and in 6.1.1.
In 6.3 version I checked only tables names.

Hack write for 6.2, but it will work for 6.1.x when we delete "get_input" lines.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

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.


Attachments
94464-deletegroup.zip (0 Bytes, 20 downloads)

Sponsored Links
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
What about members that are still in this group?
Are they moved out of them before with this hack?

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Hack delete group only. I dont know where move users, to which group. (admins, moderators, users or another?

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
I wouldn't recommend this hack. I posted a reason in another thread but I'll repost it here in case anyone misses it.

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.


UBB.threads Developer
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
The right way must be.

1. Move all users from this group to the 'users' group which should be in 99% of all boards ok.

2. delete the group (or disable it so that its not visible anymore)

3. Decrease the G-Id counter by 1 and change this also on the board to reflect this for all members.


Seems not to be so easy

Sponsored Links

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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 20221218)