Moderators for Album pictures - Page 6 Moderators for Album pictures - Page 6
 

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 2 Guests are viewing this topic.

Abbas Ali

Make sure that you edited themes.inc.php properly. Attach your themes.inc.php here.
Chief Geek at Ranium Systems

dr9a8c

Here is the themes.inc.php from my gallery.

Thank you for looking at this...your help is much appreciated.

Abbas Ali

The code seems to be fine.

If you are happy to PM me your ftp/gallery details then i will look into this. Please give the link to this topic in the PM.
Chief Geek at Ranium Systems

dr9a8c

I attempted to send the details that you requested.

There was not confirmation that the message was sent and I was unable to preview so I am not sure if the message was actually sent.

Abbas Ali

@dr9a8c: I didn't received any PM from you as yet.
Chief Geek at Ranium Systems

eXess

Hi, I also think that it'a a great mod. My request is to make this mod to be installed through the Configuration Panel of the gallery. It will be much easier then. If you have some time, think about it. Have a nice Day!  ;)
.

dr9a8c

No matter what I try, I cannot send a message on these forums. After I compose the message and press preview or submit, nothing happens.

Is there another way that I can contact you privately Abbas? Maybe if you private message me first I'll be able to reply???

Joachim Müller

Sending PMs works flawlessly, I just double-checked using a non-privileged test user account that has similar permissions to yours. Must be something on your end. Check pseudo-security client apps like "Norton Internet Security" or similar crap that can keep you from submitting forms if set up improperly.

Gephri

this may be obvious but I'd like to confirm that moderator1.1 is not meant to work with bridged CPG + phpBB's - right?

Nibbler


Abbas Ali

@dr9a8c: I have added a bit of code in your include/themes.inc.php This was needed since you are using a custom theme and it works quite different from others. Let me know if this solves your problem.

P.S: Actually function theme_main_menu should be defined in your custom theme since we modified that.
Chief Geek at Ranium Systems

dr9a8c

@Abbas

Thanks so much for your help...everything is now working exactly as planned.

P.S. I believe that I have private messaging working from my PC. Thanks for the suggestion on that GauGau.

Abbas Ali

By PM

Quote from: dr9a8c on March 10, 2007, 04:29:52 AM
In a completely boneheaded move, I have managed to delete the added code in the themes.inc and didn't yet have it pasted into the themes.php.

Could you tell me that line of code again? I know where it goes and that it refers to the template extract for upload_approval.

I promise I will never make code changes on lack of sleep again.


Thanks in advance for your help and patience

In function theme_main_menu add


if (!is_array($USER_DATA['allowed_albums']) || !count($USER_DATA['allowed_albums'])) {
template_extract_block($template_sys_menu, 'upload_approval');
}


just after


    if (!$CONFIG['display_faq']) {
        template_extract_block($template_sys_menu, 'faq');
    }


also add $USER_DATA in the global variables declaration in the same function

i.e.


global $AUTHORIZED, $CONFIG, $album, $actual_cat, $cat, $REFERER, $USER_DATA;
Chief Geek at Ranium Systems

mylogon

I am missing something, I have:

Inserted the code in myphp
uploaded and replaced your files
Created a group called Moderated
Created a user in group moderated
Made the public album moderated by members of the moderated group.

and then

Logged in as that user
uploaded a picture
inserted into gallery and I see them message waiting for admin approval.
Gone to home.

I cannot see anything other than user galleries with no files.  I see no moderated approval.

I just do not see a moderated approval button - only see it in admin mode.





Abbas Ali

You probably didn't modified your theme.php correctly which shows the upload approval button.
Chief Geek at Ranium Systems

mylogon

I uploaded your files exactly.  I even tried the default theme.  You have no instructions to modify the theme.php.  What you you modify, as everything is in the themes.inc.php?

mylogon

Also, the forum attachments seem to be down again:

Firefox can't find the file at /forum/index.php?action=dlattach;topic=26218.0;attach=3384.

When trying to download the file.



Hein Traag

No problem with downloading here.

mylogon

I get version 1.0 file fine - 1.1 gets that error.