Mod: User Categories - Page 3 Mod: User Categories - Page 3
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Mod: User Categories

Started by vortac, October 03, 2006, 03:56:56 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

colin911

I tried copying the changes to the files again as per nibbler's long instructions (thanks again by the way).

Unfortunately i kept geting the same errors so there must be a mistake in the "replace" part for albmgr.php, catmgr.php and modifyalb.php.

Unfortunately i'm not knowledgeable enough to figure out the problem.

But I did get it to work by using the above mentioned files from Littele_rU's patched files and it seems to be working ok.  the only thing is that Stramm's modpack had modified modifyalb.php so I;m guessing I will eventually encounter an error there.  Don't knwo what he modified in his file from the original.

Anyway, one last question:  Is there any hope that furture parts to this code may enable multiple users to be assigned to the same exact category (instead of using the nested option described in the first post of this thread)?

colin911

To use the correct terms to the last question above:  Can more thna one user "own" a category?

colin911

OK, now I'm sure you're tired of me.

Is there a way that this could work with JUpload?

I've attached the php file.  I'm imagining that it just needs a little extra code to allow for the selection of Categories but don;t know how difficult this would be.

Anyway, nothing critical, but just thought I would ask.  thanks for all the help so far.

tutone

Nibbler,

I realize that this isn't your mod... but I ask hoping that you can help.... my coppermine is bridged with mambo... when i go into categories and then "category owner".. i am only able to see the user accounts that were set up in coppermine prior to the bridge. Any idea on how i can see the usernames of the bridged mambo accounts?  Thanks in advance.

kroni

Quote from: colin911 on January 31, 2007, 12:15:45 AM
OK, now I'm sure you're tired of me.

Is there a way that this could work with JUpload?

I've attached the php file.  I'm imagining that it just needs a little extra code to allow for the selection of Categories but don;t know how difficult this would be.

Anyway, nothing critical, but just thought I would ask.  thanks for all the help so far.
yes, it would be great if someone could combine these 2 mods!
i'd like to use it this way: give users or groups the ownership of categories. the owners can create/delete/.. albums in the category AND only the owner will be able to use/see the JUpload link in the  {SUB_MENU} (not {SYS_MENU} !) and do the uploads in the allowed categories/albums

anyone who can do this? :)   would be great!

Gamorreaner

Hello.

I tried the Mod allready on my Apache and it works really great. But i have the same problem as tutone while using it on my website with a bridge.
I use Woltlab Burningboard 2.3.6 (WBB) and i have no idea how i could change the path from the cpg users to the Wbb users without an error  :'(. I tried to change this Code $result = cpg_db_query("SELECT user_name, user_id FROM {$CONFIG['TABLE_USERS']} ORDER BY user_name");
    $rowset = cpg_db_fetch_rowset($result);

many many... times but it allways shows me error while finding the path. Can someone say me what i have to change if my users are on my MySQL in bb1_users and not in cpg1410_users?
If you need more information say it please.

Thanks vortac for the Mod and thanks Little_rU for the patched cpg!

SoudageAuto

Hi All,

I just install the patched cpg version over the standard one.
In admin mode, I can add owner to categories, but after that. I don't see any change on the user side.
I reset the theme in order to use the standard one, but no change.

Two remarks regarding this mod.
   - We could add a group instead of an user as Owner  (in a professionnal use, more than one people should be able to do the same task)
   - A config panel to mass-modify existing categories (We have more than 130 categories)

Many thanks for this mod!


vortac

IIRC, to get the user side menu you need to set $template_user_admin_menu in your theme to:

<td class="admin_menu"><a href="catmgr.php" title="Create, manage, and delete categories">My categories</a></td>

see the end of the first post in the thread.

- Yes, groups would be nice but I think it looked like that might require significant additional effort.
- Mass modification interface would be nice too.

This thing basically started as a solution to a problem I had, so I didn't really do it to solve any additional problems.  This is why there is no bridging support, group perms, etc.  My understanding is that coppermine NG will have a full permissions system.  It seems like there are a lot of people who want various aspects of a full permissions system now though, so maybe I could be convinced to do it on some sort of consulting basis.  PM if you're interested, otherwise it may be a while, as my schedule is currently pretty packed with other volunteer work.

- Eric

PS Nibbler, thanks for translating the patch file into the thread, that looked like a herculean effort.

Quote from: SoudageAuto on March 29, 2007, 11:02:26 AM
Hi All,

I just install the patched cpg version over the standard one.
In admin mode, I can add owner to categories, but after that. I don't see any change on the user side.
I reset the theme in order to use the standard one, but no change.

Two remarks regarding this mod.
   - We could add a group instead of an user as Owner  (in a professionnal use, more than one people should be able to do the same task)
   - A config panel to mass-modify existing categories (We have more than 130 categories)

Many thanks for this mod!



ch0de

Ok. So let me get this straight. This Mod will allow me to set permission on categories...  so i can block Anonyms users from viewing my Family Albums.. and still give them access to the public albums..

I know i can set user access on each albums. But I would rather Set it at the top level categories..

Now.. I am running .10  and all hunks failed.. have there been any updates to allow this to work in .10? or   is there another way to set user access on categories without having to manually change 100's of albums to keep eyes of my family photos but still let them see my public ones.

Joachim Müller

Quote from: ch0de on October 15, 2007, 12:26:19 AM
Ok. So let me get this straight. This Mod will allow me to set permission on categories
Nope, that's wrong. This mod deals with the user gallery, which is a special category. This mod does not deal with setting permissions on any category.

Quote from: ch0de on October 15, 2007, 12:26:19 AMI know i can set user access on each albums. But I would rather Set it at the top level categories..
Which is impossible.

Quote from: ch0de on October 15, 2007, 12:26:19 AMNow.. I am running .10  and all hunks failed.. have there been any updates to allow this to work in .10?
This mod should work with all coppermine versions of the cpg1.4.x series. However, as you have the wrong impression what this mod actually does, it appears as if it isn't working at all.

It's not a bright idea to run cpg1.4.10 - always use the most recent stable release - currently cpg1.4.14. Upgrading is mandatory no matter what.

Yadutaf

#50
Merci ! Je vais essayer de regarder ça.
[edit by François Keller]this post should be an answer to a previous post from Yadutaf in the french board...[/edit]

kota069

Quote from: vortac on October 03, 2006, 03:56:56 AM
Installation:

Download and unzip the patch into your toplevel cpg directory (e.g. cpg149), and run this command: "patch -p1 < patch-cpg149-usrcat".  No database modifications are required as this patch uses the existing and seemingly unused "owner_id" field in the categories table.  Log on as administrator and add some new categories owned by users.  To get a "My Categories" menu item for users, add the following line to $template_user_admin_menu in your theme:
...

I hate to seem ignorant here - though I guess I am in this case - but...
WHERE/HOW do I "Run this command"?

I'm using cpg1.4.16 (I'm assuming the patch will work with this?)
I'm on the server with cPanel - I swear I don't know how to "Run the command" (and it's gastly long to modify manually)

Could somebody school me here?

kota069

... guess nobody ever reads this forum any more.

Nibbler

Plenty of people do, it's just that explaining how to use 'patch' to someone who knows only cPanel is not an easy task.

Best idea I think is to look for a windows equivalent to patch, download Coppermine from your site and apply the patch on your PC, then upload your patched version.

Quote from: vortac on October 06, 2006, 03:20:05 AM
What you probably need to do is first install a windows patch utility, such as http://gnuwin32.sourceforge.net/packages/patch.htm. ; Then, download and unzip cpg149.  Next, download and unzip the patches into this cpg149 directory.  In the cpg149 directory, issue the patch commands exactly as stated in the previous posts, and in that order.  Finally, upload the patched cpg149 tree to your server.

I once wrote a script to convert a diff to 'find x change to y' format but I don't know where it is unfortunately.

kota069

Quote from: Nibbler on March 01, 2008, 02:55:48 AM
Plenty of people do, it's just that explaining how to use 'patch' to someone who knows only cPanel is not an easy task.

Best idea I think is to look for a windows equivalent to patch, download Coppermine from your site and apply the patch on your PC, then upload your patched version.

I once wrote a script to convert a diff to 'find x change to y' format but I don't know where it is unfortunately.
I appreciate you eventual response.....
but how difficult can it be?
cPanel is the most commonly used server interface......
Is there a command line somewhere that I don't know about?

I mean....
If you can spell it out for me in a paragraph or so - then try me - I'm not totally illiterate.

But if it REALLY is that complex I guess I'll accept that and say 'thank you' anyway.

Nibbler

Easier to just do it myself. See attached zip file.

Created by downloading Coppermine 1.4.9, applying the first patch then the second patch and merging with 1.4.16.

kota069

Quote from: Nibbler on March 01, 2008, 05:06:02 AM
Easier to just do it myself. See attached zip file.

Created by downloading Coppermine 1.4.9, applying the first patch then the second patch and merging with 1.4.16.
Well............

Thank you.

potayo

Great mod 1.4.16 and with the probe goes well but I like that instead of letting a user to upload photos to the categories outside a group of users who need to make changes to make the menu of categories rather than users groups would be easier

potayo

Quote from: Nibbler on March 01, 2008, 05:06:02 AM
Easier to just do it myself. See attached zip file.

Created by downloading Coppermine 1.4.9, applying the first patch then the second patch and merging with 1.4.16.

thanks but could do so let me put a group of users rather than one as owner