| Author |
Post |
|
|
#1 Sun Jan 07, 2007 6:36 pm
|
|
Member
Registered: Jan 2007
Posts: 13
Location: Assen, The Netherlands
|
Hi all,
I just finished my extention of UseBB, which can handle unlimited usergroups per forum, and unlimited amount of users per usergroup. Is anyone interested in this? If yes, can anybody tell me how to create a diff file of my current code compared to the original 1.0.4 source code. For this to work you need to make changes to the *forum table, and add 2 new tables into your database. I also changed the install routine (for myself) that will do this automatically. The admin part is real basic, you can add, change or delete usergroups, and you can add users on a per-user basis. (Same as editing a user) Also the user had an expention on his controlpanel, with a simple page that tells him into which usergroups he has been added. You can give a forum special read and writerights to a single usergroup (so you can have anyone to access the forum, and a single usergroup that can write into the forum) So far it's just for forums, and not for category's. Also I included the english and dutch translation with it.
|
|
|
#2 Sun Jan 07, 2007 7:45 pm
|
|
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
|
Contributing your modifications is highly appreciated.  You can make a diff using the diff utility ( Windows version): diff -udPr UseBB UseBB-modified > patch.diff To apply the changes, you cd into the forum's directory and perform: patch -p1 < patch.diff « Last edit by Dietrich on Mon Jan 08, 2007 8:58 pm. »
|
|
|
#3 Sun Jan 07, 2007 9:22 pm
|
|
Member
Registered: Jan 2007
Posts: 13
Location: Assen, The Netherlands
|
I submitted this modification to the sourceforge tracker, and to the UseBB Zone. You can find the tracker item here: https://sourceforge.net/tracker/?func=detail&atid=609474&aid=1630137&group_id=93103
|
|
|
#4 Sun Jan 07, 2007 11:23 pm
|
|
Member
Registered: Jan 2007
Posts: 13
Location: Assen, The Netherlands
|
As i just discovered, there was a huge typo made which I didn't found during testing. So I present version 1.1 
|
|
|
#5 Mon Jan 08, 2007 8:58 pm
|
|
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
|
I just tried to apply the patch, but it didn't work. I guess it would be better to have a unified diff. diff -udPr UseBB UseBB-modified > patch.diff Sorry for this mistake. 
|
|
|
#6 Mon Jan 08, 2007 10:42 pm
|
|
Member
Registered: Jan 2007
Posts: 13
Location: Assen, The Netherlands
|
Thanks for pointing this out. I tested this file and it should be working now  Thanks for teaching me the diff / patch skill (I posted the new file on sourceforge / useBB Zone)
|
|
|
#7 Tue Jan 09, 2007 12:14 pm
|
|
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
|
Couldn't get it to work since this patch seems to be missing a few things (changes in the database tables, some PHP code for panel.php, etc). It also seems you're using subqueries, which don't work in MySQL < 4.1 (I'm still using 4.0).
|
|
|
#8 Tue Jan 09, 2007 12:31 pm
|
|
Member
Registered: Jan 2007
Posts: 13
Location: Assen, The Netherlands
|
This time I'm sorry  because I have to separate the usercatmod from the rest of the code I missed panel.php. Yes I am using subqueries. I will try to change this into a join query, but I have not that much experience with them, so thats why I uses subquery's. For the database you can run the following query's to make it work: (replace usebb_ with your custom prefix) ALTER TABLE `usebb_forums` ADD `readaccess` INT(11) NOT NULL DEFAULT '-1'; ALTER TABLE `usebb_forums` ADD `writeaccess` INT(11) NOT NULL DEFAULT '-1';
CREATE TABLE `usebb_usergroup` ( `user_id` int(11) NOT NULL default '0', `group_id` int(11) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `usebb_usergroups` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '', `descr` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
I uploaded the new version with the updated panel.php diff info
|
|
|
#9 Sat Mar 24, 2007 2:51 am
|
|
Member
Registered: May 2005
Posts: 4
Location: Central, South Carolina
|
Would it be possible for someone to upload a version of this modification that doesn't require patching the software with a .diff file? Or would someone point me in the right direction of applying a .diff file to a forum on a shared hosting account? Would be much appreciated because I need this usergroup modification on my forum.
|