Advanced search  

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]

Pages: 1 ... 4 5 6 7 [8] 9 10 11   Go Down

Author Topic: Moderators for Album pictures  (Read 158917 times)

0 Members and 1 Guest are viewing this topic.

kadafu

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Moderators for Album pictures
« Reply #140 on: August 22, 2007, 07:11:23 pm »

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?
Logged

Nibbler

  • Guest
Re: Moderators for Album pictures
« Reply #141 on: August 22, 2007, 07:14:47 pm »

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

kadafu

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Moderators for Album pictures
« Reply #142 on: August 22, 2007, 08:27:40 pm »

man still doenst seem to work properly i dont get it
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Moderators for Album pictures
« Reply #143 on: August 23, 2007, 08:13:50 am »

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".
Logged

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: Moderators for Album pictures
« Reply #144 on: September 01, 2007, 01:01:43 pm »

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. ^_^
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

herbuel

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Moderators for Album pictures
« Reply #145 on: November 18, 2007, 03:05:52 pm »

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
Logged

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Moderators for Album pictures
« Reply #146 on: November 30, 2007, 10:37:16 am »

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...?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moderators for Album pictures
« Reply #147 on: December 04, 2007, 06:06:16 am »

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.
Logged
Chief Geek at Ranium Systems

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Moderators for Album pictures
« Reply #148 on: December 04, 2007, 05:51:22 pm »

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
Logged

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Moderators for Album pictures
« Reply #149 on: December 04, 2007, 11:22:38 pm »

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:

Code: [Select]
// 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 -
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moderators for Album pictures
« Reply #150 on: December 05, 2007, 05:30:04 am »

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

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Moderators for Album pictures
« Reply #151 on: December 05, 2007, 09:06:33 am »

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:

Code: [Select]
  ********************************************
  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
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moderators for Album pictures
« Reply #152 on: December 05, 2007, 12:27:27 pm »

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

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

sec187

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Moderators for Album pictures
« Reply #153 on: February 19, 2008, 08:54:56 pm »

"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!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moderators for Album pictures
« Reply #154 on: February 20, 2008, 05:49:35 am »

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.
Logged
Chief Geek at Ranium Systems

sec187

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Moderators for Album pictures
« Reply #155 on: February 20, 2008, 05:48:40 pm »

^ 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]


« Last Edit: February 20, 2008, 06:13:12 pm by Joachim Müller »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moderators for Album pictures
« Reply #156 on: February 21, 2008, 01:53:30 pm »

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)
Logged
Chief Geek at Ranium Systems

sec187

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Moderators for Album pictures
« Reply #157 on: February 21, 2008, 02:20:33 pm »

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

Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Moderators for Album pictures
« Reply #158 on: February 21, 2008, 02:37:02 pm »

Your prefix is cpg_
Logged

sec187

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Moderators for Album pictures
« Reply #159 on: February 21, 2008, 02:45:26 pm »

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!!!!
Logged
Pages: 1 ... 4 5 6 7 [8] 9 10 11   Go Up
 

Page created in 0.084 seconds with 27 queries.