Advanced search  

News:

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

Pages: [1] 2 3 4   Go Down

Author Topic: Photo of the Day/Week, with Archive  (Read 85688 times)

0 Members and 1 Guest are viewing this topic.

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Photo of the Day/Week, with Archive
« on: October 03, 2006, 08:14:30 am »

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
« Last Edit: October 05, 2006, 11:43:03 pm by Paver »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Photo of the Day/Week, with Archive
« Reply #1 on: October 03, 2006, 01:14:44 pm »

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

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Photo of the Day/Week, with Archive
« Reply #2 on: October 05, 2006, 12:08:28 am »

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

DustyNine

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: Photo of the Day/Week, with Archive
« Reply #3 on: October 05, 2006, 10:16:45 pm »

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

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Photo of the Day/Week, with Archive
« Reply #4 on: October 08, 2006, 12:40:48 pm »

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

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Photo of the Day/Week, with Archive
« Reply #5 on: October 08, 2006, 11:48:17 pm »

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

fovsports

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Photo of the Day/Week, with Archive
« Reply #6 on: October 12, 2006, 04:04:14 am »

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.
« Last Edit: October 12, 2006, 04:17:08 am by fovsports »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Photo of the Day/Week, with Archive
« Reply #7 on: October 12, 2006, 07:06:38 am »

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

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
Re: Photo of the Day/Week, with Archive
« Reply #8 on: October 31, 2006, 11:09:16 am »

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.
« Last Edit: November 03, 2006, 01:32:51 pm by angeldevil »
Logged
a

Senator

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: Photo of the Day/Week, with Archive
« Reply #9 on: November 08, 2006, 06:33:15 pm »

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.???
« Last Edit: November 08, 2006, 07:26:37 pm by Senator »
Logged

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Photo of the Day/Week, with Archive
« Reply #10 on: November 08, 2006, 10:58:30 pm »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Photo of the Day/Week, with Archive
« Reply #11 on: November 09, 2006, 10:14:10 am »

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
Logged

Senator

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: Photo of the Day/Week, with Archive
« Reply #12 on: November 12, 2006, 08:42:20 pm »

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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Photo of the Day/Week, with Archive
« Reply #13 on: November 13, 2006, 12:37:38 am »

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

Fitzkilt

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Photo of the Day/Week, with Archive
« Reply #14 on: November 14, 2006, 12:15:35 am »

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

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Photo of the Day/Week, with Archive
« Reply #15 on: November 14, 2006, 12:41:16 am »

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
Logged

Fitzkilt

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Photo of the Day/Week, with Archive
« Reply #16 on: November 16, 2006, 04:58:17 am »

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

Fitzkilt

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Photo of the Day/Week, with Archive
« Reply #17 on: November 16, 2006, 05:19:00 am »

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

Fitzkilt

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Photo of the Day/Week, with Archive
« Reply #18 on: November 16, 2006, 05:37:43 am »

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

Senator

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: Photo of the Day/Week, with Archive
« Reply #19 on: November 16, 2006, 08:55:02 pm »

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.

Logged
Pages: [1] 2 3 4   Go Up
 

Page created in 0.023 seconds with 22 queries.