Moderators for Album pictures - Page 8 Moderators for Album pictures - Page 8
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Moderators for Album pictures

Started by Abbas Ali, January 09, 2006, 09:01:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kadafu

i did some test runs and it seems to be working fine, what did the modification in functions.inc actaully do? is it harmfull not to use the modded file of this?

Nibbler

You should apply the changes marked in the files provided to your own files instead of using the provided files as they are.

kadafu

man still doenst seem to work properly i dont get it

Joachim Müller

Quote from: kadafu on August 22, 2007, 08:27:40 PM
man still doenst seem to work properly i dont get it
Not a valid report. If you want help, you have to do more than just post "doesn't work".

fangweile

I installed this mod in my gallery today and glad to say that it is perfectly working. No problem or any errors I encountered. I just follow the instruction given by Abbas. Thanks a lot for this nice modification. It is really great. ^_^
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

herbuel

Hello,

I installed this module as in the doc, but i really can't find my want about "how to use it". May be my instalation is wrong... I had a look on the topics in this tread, and everyone seams to know how to do.

Could you give me a clue? Thanks a lot. Alain

Gephri

Quote from: herbuel on November 18, 2007, 03:05:52 PM
I installed this module as in the doc, but i really can't find my want about "how to use it". May be my instalation is wrong... I had a look on the topics in this tread, and everyone seams to know how to do.

Could you give me a clue? Thanks a lot. Alain

dittto - can someone help us start using our install...?

Abbas Ali

If the mod is installed properly then you will find a new drop down for assigning moderators on album properties page. Then when the moderator logs in, he can edit/delete the pictures of the albums which can be moderated by him.
Chief Geek at Ranium Systems

Gephri

Hello Abbas,
I try to get to my album properties page by clicking Properties from the following page:
gallery/index.php?cat=...


But when I click on the Properties button it take me to:
/gallery/modifyalb.php?album=...

and I get an error that reads:
"Invalid action for form creation"

Any idea why the problem - which is probably also why I couldn't find the Moderator links

Gephri

Let me simplify my request:
I would really like to use this mod>
But in order to get the /gallery/modifyalb.php?album=... page to load I've had to comment out the following Mod code:

// MOD Abbas Moderator Mod 1.1 (start)
if (GALLERY_ADMIN_MODE) {
  $data[] = array($lang_modifyalb_php['can_moderate'], 'moderator_group', 8);
}
// MOD Abbas Moderator Mod 1.1 (end)


When the above code is used it generates a critical error that says:
"Invalid action for form creation"

Any idea how to resolve -

Abbas Ali

You probably didn't added other code in modifyalb.php. Make sure that you have modified the file as per instructions.
Chief Geek at Ranium Systems

Gephri

Abbas
I've downloaded the latest 1.1 version of this mod from this thread.
The modifyalb.php page shows the following version in at the top:

  ********************************************
  Coppermine version: 1.4.3
  $Source: /cvsroot/coppermine/stable/modifyalb.php,v $
  $Revision: 1.11 $
  $Author: gaugau $
  $Date: 2005/11/28 07:42:14 $
**********************************************/


I see two changes for your mod in this file.  I've done them and I get the error I mentioned earlier.

any ideas.

Also - the only change I made to the nstallation of your mod was to  update themes/.../theme.php with the changes called for in themes.inc.php.  But that should not be creating the error - right.

So any other ideas?

Thnks

Abbas Ali

There are 3 changes in modifyalb.php and not 2. So you are obviously missing the below mentioned change


                case 7:
                    form_password_hint($element[0],$element[1]);
                    break;
                    ########## Added ##########
                case 8 :
                    form_moderator($element[0], $element[1]);
                    break;
                    ##########################
Chief Geek at Ranium Systems

sec187

"For those who are using customized theme they will have to modify their respective theme.php instead of themes.inc.php
Also i have modified themes.inc.php for the sake of simplicity. The correct way would be to modify your respective theme file."

What exactly does this mean.  I have used one of the custom themes that was availible and have replaced some of the image files with my own.

How exactly do I modify my respective theme file without screwing everything up.  My gallery is already in use.
I am sort of new to this and want to make sure I know what I am doing before I try it.
Thanks!

Abbas Ali

Your theme file will be themes/yourtheme/theme.php. So you need to modify theme.php and not themes.inc.php. If you don't find a section (which needs modification) in theme.php then copy that section from themes/sample/theme.php to your theme.php

I think there is a tutorial on how to modify a theme file. Please search the board.
Chief Geek at Ranium Systems

sec187

#155
^ thanks I am trying to change my code in step one using phpmyadmin, but I keep getting errors where am I going wrong.  Thanks for your help!

Code:
ALTER TABLE `cpgPrefix_albums` ADD `moderator_group` INT NOT NULL;


[Edit GauGau] Replaced hotlinked image with attachment [/Edit]



Abbas Ali

Replace cpgPrefix_ with the prefix you have used. You can find your prefix by seeing the names of other tables in phpmyadmin.

No PMs please. (sec187 sent a PM to me)
Chief Geek at Ranium Systems

sec187

I looked to replace the prefix, but I dont seem to have any...Here is my table...


Hein Traag


sec187

I understand that, but from my error message above, what I am supposed to replace or fix?

Sorry, I am new to this, thanks for all your help!!!!