Photo of the Day/Week, with Archive Photo of the Day/Week, with Archive
 

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

Photo of the Day/Week, with Archive

Started by Paver, October 03, 2006, 08:14:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paver

This plugin is a conversion of the popular mod/hack by Casper (forum thread).

This first release is a straight conversion and a beta release.  There might be issues, so please report any issues on this thread.  In converting this mod, I thought about a few usability improvements and other such things, but didn't have time to tackle them now and have no idea when I will.  I welcome any contributions; please post on this thread.

This plugin requires one hack to a core script.  Normally, plugins should not require any hacks.  However, the archive feature of this plugin requires this hack.  The hack is being considered for the next major version of Coppermine (1.5.x).  For the 1.4.x series, you must apply this hack for the archive feature to work.  Read the README.txt file.

Known Issues (for version 1.02beta) - all present in the original mod/hack:
* A 'normal_' photo must exist for the photo of the day/week.
* If you set a new photo of the day/week, you must move the previous one to the archive manually in order for the new one to show up.

Version 1.01beta - commented out artifacts not relevant to this plugin from previously-copied sample plugins - one would affect using the 'onlinestats' plugin
Version 1.02beta - the 'meta_album' plugin hook hack has been fixed so it functions properly

Paver

Version 1.01beta has replaced 1.0beta in the first post.  I left in a few artifacts from sample plugins I copied in.  One of the artifacts would mess up the 'onlinestats' plugin if you have that installed as well.  Please replace 1.0beta with 1.01beta.

Paver

Version 1.02beta has been added in the first post. 

The only change is in the README.txt file, which describes the functions.inc.php hack which adds in the 'meta_album' plugin hook.  This hack didn't function properly so it killed normal meta-albums.  It is now fixed.

DustyNine

You, my friend, are a god-send. Thanks so much for the work on this.

Sami

@cavallino: spiliting your post from this thread to  here
‍I don't answer to PM with support question
Please post your issue to related board

Davide Renda

italian translation attached - unzip and upload in the lang directory of this plugin
(Paver: great great work!)

fovsports

#6
It is very close to working properly for my site, I have the block called through the config admin page as 'potw' . It shows the text

Photo of the Week
by our member fovsports <----- as a link
Photo of the Week Archive <----- as a link also

But no image. I have set a potw in the album edit files section.
I have also applied the mod to the function.inc.php file.
****modified for original post ****
ONLY WORKS IF YOU HAVE normal_  as a prefix of your image filename  RIGHT?
I edited the potw.php file and got rid of the normal_ portion.
And now it works.

Paver

@fovsports: As you discovered, v1.02beta requires a "normal_" image to exist.  I need to add some code to check if intermediate images are used in the gallery and pull out the correct image if not.  Your fix of removing "normal_" is an appropriate one for your gallery.

angeldevil

#8
Hi Paver, I use CPG1.4x (modded by Stramm) and I've installed your plugin v 1.0.2. I've also modified "function.inc" file, but none of the items "potw, potd, move to POTD archive, ecc..." appears in album's "edit files" page and after admin login when I want edit a pics data this error message appears in a white page:

Critical error Script called without the required parameter(s).

How can i fix it?

Thanks in advice.
a

Senator

#9
I.ve got the same problem with this plugin, but without white pages.

When i select one pic for the pic op the day, where is the potd vissable.???

Davide Renda

I don't think it's an issue related to Stramm's modpack, as I do run POTD/POTW plugin on my gallery without any hassle.
Try, maybe moving up or down the plug-in in your plug-in manager, as it may interfere with some other ones?

Hein Traag

Not using plugin yet, but here's the dutch language file.

Short name in Dutch is FVDD/W (Foto Van De Dag / Week)

Cheers!
Hein

Senator

i've a problem when i uploading the potd/w plugin.

I get this error:

There was an error copying the package to the plugins folder.

My pluginfolder is writable on 777

What do i wrong.


Joachim Müller

Then don't use the "unzip on the server" option to install that plugin, but unzip on your client and FTP-upload it.

Fitzkilt

I get this error when trying to upload the POTD plugin via Config:

Critical error
There was an error copying the package to the plugins folder. 

If I unzip it and upload everything via FTP and then run the schema in MySQL, I get this:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/header_meta_style.inc.php:27) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154

Did I miss something or is this last one server-related?

Paver

You don't have to run the schema in MySQL manually.  FTP-upload the plugin to the plugins folder, then go to the Coppermine plugin manager (pluginmgr.php).  The plugin will show up as not installed.  Click the install button to install the plugin.  It will do the MySQL table creation for you.

For more information on the plugin manager: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#plugin_manager

Fitzkilt

Paver,

Thank you, that seems to have worked (it now shows up as installed when viewing pluginmgr.php), but...I see NOTHING in the admin menu or anywhere else on the site that will allow me to even use this plugin. How do I access the plugin? Did I miss a step? I read the instructions in the potduse.html file but it didn't help.

I've checked ever single one of the albums and there is nothing that will allow me to even set a photo as POTD/POTW or move a photo to a POTD/POTW archive---there's just nothing there. I've looked at editpics.php and modifyalb.php but there's nothing...in other words, the settings don't exist or aren't displayed

I made the necessary change to functions.inc.php and the cpg_plugin_potd table exists in the database. I've read through the topic thread for this plugin (http://forum.coppermine-gallery.net/index.php?topic=14600.0) but I'm still not sure what I'm doing wrong or what I'm missing. Maybe it's an issue with modifications I've done to my theme (Kubrick)?

FYI, I'm using CPG 1.4.9 (w/last security fix).

Fitzkilt

I added potd to the content of the main page but still no settings available... ???

Fitzkilt

Nevremind...I had to uninstall the plugin because since installing it, I kept getting a white page when clicking "Save new configurations" button. Uninstalling the plugin fixed that, so I guess I'll let it be. Thanks and good luck.

Senator

I think there's no support on this topic.

All what you wrote, ist the same here, and i've ask here for the same problem, but i get no respons either, maybe becausse its a beta version.


Greetings Senator.