forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Paver on October 03, 2006, 08:14:30 am

Title: Photo of the Day/Week, with Archive
Post by: Paver on October 03, 2006, 08:14:30 am
This plugin is a conversion of the popular mod/hack by Casper (forum thread (http://forum.coppermine-gallery.net/index.php?topic=14600.0)).

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
Title: Re: Photo of the Day/Week, with Archive
Post by: Paver 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: Paver 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: DustyNine on October 05, 2006, 10:16:45 pm
You, my friend, are a god-send. Thanks so much for the work on this.
Title: Re: Photo of the Day/Week, with Archive
Post by: Sami on October 08, 2006, 12:40:48 pm
@cavallino: spiliting your post from this thread to  here (http://forum.coppermine-gallery.net/index.php?topic=37092.0)
Title: Re: Photo of the Day/Week, with Archive
Post by: Davide Renda 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!)
Title: Re: Photo of the Day/Week, with Archive
Post by: fovsports 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: Paver 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: angeldevil 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: Senator 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.???
Title: Re: Photo of the Day/Week, with Archive
Post by: Davide Renda 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?
Title: Re: Photo of the Day/Week, with Archive
Post by: Hein Traag 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
Title: Re: Photo of the Day/Week, with Archive
Post by: Senator 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.

Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: Fitzkilt 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?
Title: Re: Photo of the Day/Week, with Archive
Post by: Paver 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
Title: Re: Photo of the Day/Week, with Archive
Post by: Fitzkilt 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).
Title: Re: Photo of the Day/Week, with Archive
Post by: Fitzkilt on November 16, 2006, 05:19:00 am
I added potd to the content of the main page but still no settings available... ???
Title: Re: Photo of the Day/Week, with Archive
Post by: Fitzkilt 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.
Title: Re: Photo of the Day/Week, with Archive
Post by: Senator 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.

Title: Re: Photo of the Day/Week, with Archive
Post by: Paver on November 16, 2006, 10:22:54 pm
@Senator: You didn't report the same problem until now.  Your last post above is about a different problem (uploading the plugin to the plugins folder).  You received support for that issue, but haven't responded with your results.

As for Fitzkilt, he posted 3 posts last night within 40 minutes.  I haven't had time yet to check things out.

All responses here will be useful for me to investigate issues with the beta release.  There *is* support here, but don't expect me to check the thread every hour and drop everything to investigate an issue.  I will do what I can, when I can.  I do want this plugin to progress into a useful plugin (for my own and others' uses).
Title: Re: Photo of the Day/Week, with Archive
Post by: Senator on November 16, 2006, 10:28:48 pm
sorry paver if you understand me wrong, but i really thougt the is minimal support on beta-versions.

i had earlier post the quote downunder, tha i can select the POTW/POTD, but where is it vissable?

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


Title: Re: Photo of the Day/Week, with Archive
Post by: Fitzkilt on November 18, 2006, 03:49:49 am
Paver,

I hope you're not offended that I uninstalled your plugin...I did so because I'm trying to figure out why, since installing the POTD plugin, I keep getting a blank page every time I change any of my configuration settings. That's why I said I'd just let it be (or, not use it). If I figure it out, I'll post back here (if it's the appropriate place). Thanks. :)
Title: Re: Photo of the Day/Week, with Archive
Post by: angeldevil on December 09, 2006, 07:37:55 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?

Hi, I've tryed to move up and down the POTW plugin in my plugin manager page, like your suggestion, but doesn't fix the problem

No items like "Set at POTW" or "Set at POTD" or "MOVE TO POTW ARCHIVE" ecc appear in album list page (edit file mode)

I've modified the functions.inc.php like your suggestion and I've created a table like this:

`CPG_plugin_potd` (
 `pid` INT(11) NOT NULL,
  `potd` TINYINT(3) DEFAULT '0' NOT NULL,
  `potd_date`  varchar(14) NOT NULL,
  `potw` TINYINT(3) DEFAULT '0' NOT NULL,
  `potw_date`  varchar(14) NOT NULL,
PRIMARY KEY  (`pid`)
);


Beyond to this, when I've installed POTW plugin and I logged in admin mode, I can't edit the  pictures data in my gallery (title, descriptions, ecc), becouse after the edit operation a white page with this error message appear:

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

When I uninstall this plugin this error message not appears

How to fix it?
Many tnx in advance

Sorry for my poor english
Title: Re: Photo of the Day/Week, with Archive
Post by: Farina on December 22, 2006, 09:32:21 pm
Same problem.
No items like "set at POTW" etc....
And if I change some picture data the screen show me "Critical error Script called without the required parameter(s)"
In debug mode I can see "File: C:\Inetpub\vhosts\qtp.it\httpdocs\Gallery\plugins\potd\codebase.php - Line: 126 " if this can help someone.

bye
Title: Re: Photo of the Day/Week, with Archive
Post by: MaverickLal101 on December 29, 2006, 11:01:13 pm
Just wanted to say thank you very very much for this plugin. :-*

I am a newbie at all of this but followed your instructions and everything works. :-*

You can see it here: http://www.shwetatiwari.net/gallery/
Both the POTW and POTD coded and appears on the front page.
No problems so far.

Thank you once again :D ;D ;D
Title: Re: Photo of the Day/Week, with Archive
Post by: golio on January 11, 2007, 05:15:14 am
It worked for 2-3 days and then I dont know what happend, it just dosent work anymore!!!

it looks like the link in the potd box in the main page is not correct and it shows nothing! just a wrong url icon (or missed pic) for pics (you know?).
I can select and move pictures as POTD but the potd in main page still dosent work!
uninstalling and reinstalling the plugin didnt work, and pics in the POTDarch are there forever!
Title: Re: Photo of the Day/Week, with Archive
Post by: Jason kiDD on January 22, 2007, 03:05:24 am
Okay after messing with this thing I can probably make it easy to understand for everyone involved...

When trying to used the potd/potw edit options you go thru ablum properties, then edit files. Do not try to click on one picture then edit files because you will NOT see the potd/potw check boxes there...

Concurrently if you are recieving a red X once you have everything up and running its because you (like myself) do not use intermediate pictures. You have to go thru each and everyone of the .php files in your plugin folder and edit out the follow lines so that your picture will show. After that you should be up and running.. Enjoy...

Quote
$img = "<img src=\"albums/{$picture['filepath']}normal_{$picture['filename']}\"  border=\"0\">";
Currently what you should be looking for in all your .php files...

Quote
$img = "<img src=\"albums/{$picture['filepath']}{$picture['filename']}\"  border=\"0\">";
What you should paste in place removing the "normal_" since you are no longer using these types of files. Save your work and reupload into your plugins folder and your straight..

If you want to see the plugin in action feel free to visit my site, you will have to register however to view the gallery..
http://www.phatjamzent.com
Title: Re: Photo of the Day/Week, with Archive
Post by: MarkP on January 30, 2007, 06:01:46 am
Ok I have the same problem with the blank white pages from Show e-cards, details on picture views, details on votes, replace file, admin config when done with settings and returning to main page. Edit files. Just a blank page no error.

I am removing plugin for now...I do like its function though and look forward to using it when out of Beta or the white pages problem gets fixed.
Title: Re: Photo of the Day/Week, with Archive
Post by: Davide Renda on February 14, 2007, 12:12:51 pm
One of my users have deleted one of his images, and it was the one chosen as pic of the week.
Now the "POW" field is empty (no pic shown) and I can't add a new one. How can I work around this problem? I've tried checking the mySQL database, but can't find where to remove the "phantom" pic....
Title: Re: Photo of the Day/Week, with Archive
Post by: AlexL on February 16, 2007, 02:29:58 pm
German Lang File and German Readme.txt -> Liesmich.txt attached

In Readme.txt the "Now, installation is complete." maybe suggests it's all needed to hack the functions.inc.php.
The normal PlugIn Installation is needed too - I think.

Integrated on my on my Galerie - the same issue occur like describe before.
Hack-ok
Install -ok
Like this says
Quote
To display it on the gallery index page, simply enter your config admin page, and add 'potd' or 'potw' (or both) to the 'Contents of main page'.
After this step the admin.php trys to reload and a blank screen is shown.
Then I'm going to Index-Page and it's show all korrect.
Im deaktivate the potd Entry - an the same blank screen
After every Save on Settingspage the same Problem
After new login to galery too.

A new error appear after manual add a keyword "the script was called without paramenters"

And a little question after first use:
I dont have other Users, therefore I dont want to show the line "from our member" - how is the correct way to disable this?
I've deleted this in the potw.php - but is there no way to configure this from admin menu?

If I activate the potw on the main page this potw is shown on this main page but on the next pages after open a categorie it's shown too. How to disable this behavior?
Title: Re: Photo of the Day/Week, with Archive
Post by: lonely24 on March 15, 2007, 12:32:31 pm
Nice plugins .

I got no error . But I want to ask one questions .

Is it manually to set photo of the day , photo of the week ?

I want to be like , that's autmoatically set to photo of the day , photo of the week by hits / votes .

Is it feature available in that plugin ?

Thanks.
Title: Re: Photo of the Day/Week, with Archive
Post by: AlexL on March 16, 2007, 09:10:24 am
At this time it is a manual job to deselect the old One and select the new One.
But maybe anybody can modify this, because the most view / best voted function is standard in cpg and maybe a coder can combine it with this plugin.
Title: Re: Photo of the Day/Week, with Archive
Post by: fatmcgav on March 16, 2007, 04:28:45 pm
Is there anotehr way of adding this into a theme? As the iframe seems a little messy.

Basically, i want to put it in the right hand column, but not sure how to do it cleanly... I want it to look like boxes down the side, so i can add other content aswell...

www.fatmcgav.me.uk/paintball for reference.

Any ideas ppl?

Ta
Title: Re: Photo of the Day/Week, with Archive
Post by: kushti on April 16, 2007, 04:09:36 pm
I use Tinyportal - does anyone else.....and if so how would I make a block to display the POTD.

Stuart
Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller on April 16, 2007, 05:38:55 pm
This is a coppermine plugin that can not be used outside of coppermine. There used to be a POTD mod as well that you can try. Best option though would be to use cpmFetch, because that particular mod was designed to do what you're up to: display coppermine-content on non-coppermine pages. TinyPortal definitely qualifies as non-coppermine page.
Title: Re: Photo of the Day/Week, with Archive
Post by: Avonlea22 on June 10, 2007, 09:20:24 pm
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.

Any other fix to this issue yet?
Title: Re: Photo of the Day/Week, with Archive
Post by: rubenix on July 03, 2007, 11:28:04 am
German Lang File and German Readme.txt -> Liesmich.txt attached

In Readme.txt the "Now, installation is complete." maybe suggests it's all needed to hack the functions.inc.php.
The normal PlugIn Installation is needed too - I think.

Integrated on my on my Galerie - the same issue occur like describe before.
Hack-ok
Install -ok
Like this saysAfter this step the admin.php trys to reload and a blank screen is shown.
Then I'm going to Index-Page and it's show all korrect.
Im deaktivate the potd Entry - an the same blank screen
After every Save on Settingspage the same Problem
After new login to galery too.

A new error appear after manual add a keyword "the script was called without paramenters"

And a little question after first use:
I dont have other Users, therefore I dont want to show the line "from our member" - how is the correct way to disable this?
I've deleted this in the potw.php - but is there no way to configure this from admin menu?

If I activate the potw on the main page this potw is shown on this main page but on the next pages after open a categorie it's shown too. How to disable this behavior?


Any word to this issue?? I cannot make it working without gettin a blank page.... help please!!
Title: Re: Photo of the Day/Week, with Archive
Post by: quangbao on July 19, 2007, 05:28:21 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.

I am newbie, I don't know fix this problem and I don't understand your guide. Please, help me step by step. Thank you so much.
My site: saigonphoto.net or direct: saigonphoto.net/gallery
Title: Re: Photo of the Day/Week, with Archive
Post by: DaBe on January 18, 2008, 08:59:46 pm
hello

Can I include this in the anycontent with php instead a html iframe?

thx
Title: Re: Photo of the Day/Week, with Archive
Post by: nointerest on February 01, 2008, 04:26:49 am
I have translated the Plug-In into German.
As this plugin requires a hack I have also translated the README-file into German. I add both files to my post.

(Improvements of the translations are always welcome. Please contact me via PN).
Title: Re: Photo of the Day/Week, with Archive
Post by: yeye_kiles on February 28, 2008, 05:46:30 am
I've had POTW installed for about 6 months and it seems to have been going well.
However:
Recently the girl forgot to move the photo back to the archive. After that she wasn't able to choose another photo for the POTW. I tried disabling the plugin then enabling it again, and I was able to select an image to display for POTW. The next day she emailed me back saying she can't get such and such photo to go. I went back to her gallery and it seemed that NO photos would go up. So I tried the disabling plugin thing again. This time however, it did not correct the issue.
Has anyone else experienced this or have any ideas?

Here is the gallery, if it helps at all:
http://gallery.mylenepelletier.com/index.php
Title: Re: Photo of the Day/Week, with Archive
Post by: yeye_kiles on February 28, 2008, 05:59:30 am
Um. I guess the vital detail is that she DELETED the file which was the current POTW and that is when the shit hit the fan.

Title: Re: Photo of the Day/Week, with Archive
Post by: yeye_kiles on February 28, 2008, 06:10:00 am
(okay I see now that Lontano also has the same issue. I'm sorry I am having problems navigating this forum, it's like a laberynth. The 1 2 3 4 on teh bottom left are pages in this topics, but the << Prev Next >> on the bottom right go to the next topic. I litterally only saw the first page of comments every single time I came here for support. I feel like a complete n00b but I swear I have been using the internet daily since like, 1996. Who would have guessed.... )
Title: Re: Photo of the Day/Week, with Archive
Post by: Pascal YAP on February 28, 2008, 01:22:02 pm
Morming,

13h15 (french time) i'm seeing all you need !

<!--Coppermine Photo Gallery 1.4.12 (stable)-->
You need to upgrade your Coppermine to the latest version (http://sourceforge.net/project/showfiles.php?group_id=89658) (with correct security)

PYAP
Title: Re: Photo of the Day/Week, with Archive
Post by: Halfhidden on March 15, 2008, 11:45:10 pm
Hi I installed the plugin to my Coppermine gallery (1.4.16) and lost the site all that was visable was this message:
Parse error: syntax error, unexpected $end in /home/picturep/public_html/include/functions.inc.php on line 2951
I replaced the function.inc.php file and got the site back.
Any ideas?
Regards,
Steff
Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller on March 15, 2008, 11:50:21 pm
A parse error is a syntax error and means that you have made an error copying and pasting the mod as instructed. Try again.
Title: Re: Photo of the Day/Week, with Archive
Post by: Halfhidden on March 16, 2008, 12:17:11 am
Yep your right. I copied an error into the code block. I have uploaded the function.inc.php file and the site is stable again. Thanks I'll be a little more careful copying code next time. I think the error occurred because I used notepad rather than phpedit. That will teach me.
Regards,
Steff
Title: Re: Photo of the Day/Week, with Archive
Post by: ib2loud on April 24, 2008, 05:10:07 am
awesome plugin! I edited it slightly to suit my needs but it works perfectly. You can see it here:
http://www.okshowpics.com/
Title: Re: Photo of the Day/Week, with Archive
Post by: mentalist3d on June 17, 2008, 05:10:51 pm
Okay after messing with this thing I can probably make it easy to understand for everyone involved...

When trying to used the potd/potw edit options you go thru ablum properties, then edit files. Do not try to click on one picture then edit files because you will NOT see the potd/potw check boxes there...

If you want to see the plugin in action feel free to visit my site, you will have to register however to view the gallery..
http://www.phatjamzent.com

That was sound advice, I was doing it the other way and couldn't see the potd options so this helped ;)

Excellent mod, I was originally using "show last uploaded image.." but this adds a more dynamic feature to the site, and so far, no probs :) Cheers

http://art.concepts.org.uk (http://art.concepts.org.uk)
Title: Re: Photo of the Day/Week, with Archive
Post by: banghatta on July 13, 2008, 05:52:54 am
I've installed this plugin potd v.1.02 beta in my photography community website www.bniper.net (I'm using CPG v.1.4.18) and it run perfectly, displaying photo of the week in the main page.
 
Can anyone help me how to modified the script, so Photo of the week feature can display 3 or 4 picture instead of 1 picture in original version, with reduced image thumbnail of POTW in main page (a little bit larger than thumbnail of most view or last additions).

Actually I'm not a programmer, I'm a banker :D :D so my knowledge in php program very limited. I hope the instructions will easier to understand for newbie like me.

Or can you refer to topic discussing this topic, I've spend hours searching similar topic.
Thanks for your help.
 
Title: Re: Photo of the Day/Week, with Archive
Post by: Dogbot on July 22, 2008, 11:42:14 am
This plugin although still in beta works well, however it does cause an error. You can go to the album and edit the pics to set or archive/potd, and that works fine. But if you go to edit just the one photo maybe to add a title or description...from the intermediate display (editOnePic.php) you will get the following error. Moving the plugin up and down has no effect on this (someone mentioned it earlier in this topic).


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

File: /home/*******/public_html/Gallery/plugins/potd/codebase.php - Line: 126


From plugins/potd/codebase.php

line 125    if (defined('EDITPICS_PHP') && count($_POST)) {
line 126      if (!is_array($_POST['pid'])) cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
line 127      $pid_array = $_POST['pid'];

From "Notices".

/plugins/potd/codebase.php

    * Notice line 126: Undefined index: pid

Hope this helps to clarify what others have said, and help to solve the issue.


Dogbot
Title: Re: Photo of the Day/Week, with Archive
Post by: Dogbot on July 22, 2008, 03:04:53 pm
Not a fix, more of an avoidance is to remove the buttons "Crop and Rotate - Edit file information - DELETE THIS FILE" from underneath the intermediate pic, that way users of your gallery will not be able to edit and cause the error.You can edit your files from the album edit properties.

Find in displayimage.php
Code: [Select]
  if ((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) {
    $picmenu .= <<<EOT
     <a href="javascript:;" onclick="return MM_openBrWindow('picEditor.php?id={$CURRENT_PIC_DATA['pid']}','Crop_Picture','scrollbars=yes,toolbar=no,status=yes,resizable=yes')" class="admin_menu" >{$lang_display_image_php['crop_pic']}</a> <a href="editOnePic.php?id={$CURRENT_PIC_DATA['pid']}&amp;what=picture"  class="admin_menu">{$lang_display_image_php['edit_pic']}</a> <a href="delete.php?id={$CURRENT_PIC_DATA['pid']}&amp;what=picture"  class="admin_menu" onclick="return confirm('{$lang_display_image_php['confirm_del']}'); return false; ">{$lang_display_image_php['del_pic']}</a>
EOT;
  }

And comment it out, like this.
Code: [Select]
/*
  if ((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) {
    $picmenu .= <<<EOT
     <a href="javascript:;" onclick="return MM_openBrWindow('picEditor.php?id={$CURRENT_PIC_DATA['pid']}','Crop_Picture','scrollbars=yes,toolbar=no,status=yes,resizable=yes')" class="admin_menu" >{$lang_display_image_php['crop_pic']}</a> <a href="editOnePic.php?id={$CURRENT_PIC_DATA['pid']}&amp;what=picture"  class="admin_menu">{$lang_display_image_php['edit_pic']}</a> <a href="delete.php?id={$CURRENT_PIC_DATA['pid']}&amp;what=picture"  class="admin_menu" onclick="return confirm('{$lang_display_image_php['confirm_del']}'); return false; ">{$lang_display_image_php['del_pic']}</a>
EOT;
  }
*/

If this is wrong to do then someone more knowledgable will come along and say so, but it seems to work okay for me.

Dogbot
Title: Re: Photo of the Day/Week, with Archive
Post by: Brane29 on September 01, 2008, 03:06:05 pm
Is there a way tu extract POTD with cpmfetch? i would like to put thumbnail on my news portal home page. I'm using joomla 1.0.5, coppermine latest version and cpmfetch 2.0.
thank you
Title: Re: Photo of the Day/Week, with Archive
Post by: dsimey on September 06, 2008, 05:16:47 pm
I've had to uninstall POTD, which is shame as it's a really useful capability.
CPG 1.4.19 - POTD 1.02beta

Firstly - the HTML needs a lot more class attributes so it can be targeted using CSS. I was planning to rewrite the HTML if I stuck with POTD; especially the FRAME include which I needed to work on a dark background.

Secondly, and the killer.
I got blank pages when logging in and saving config changes. This made the site almost unusable.
Reading around, I found this http://forum.coppermine-gallery.net/index.php/topic,37881.0.html
So I'm not alone!
Title: Re: Photo of the Day/Week, with Archive
Post by: sard on April 26, 2009, 09:32:45 am
I have the same problem like dogbot. This plugin has some collision with editing single file (editOnePic.php). Is really nice plugin, I hope someone with bigger php knowledge will fix it.  ::)
Thanx
Title: Re: Photo of the Day/Week, with Archive
Post by: claude258 on June 07, 2009, 04:37:07 pm
Is it possible to get the thumb image instead of the normal image as potd/w then to click on the thumb and get the normal image?
Thanks
Title: Re: Photo of the Day/Week, with Archive
Post by: lipa on June 19, 2009, 09:16:12 pm
I already serched the board for this problem, I found a few people who asked about it but I did not see anyone giving the answer (mayve no one know yet?) so, sorry if it was already asnwered

I installed this plugin and it worked perfectly (I couln't use the iframe in exterior pages but that's okay because I didn't need it anyway) - but me and my visitors got blank pages making the login and trying to open the "upload image" page. I couldn't save settings of the config page without going back and refresh the page, I woulnd't mind either if it was not the upload/login problem.

Has someone figured what can we change so this doesn't happen anymore? I had to desinstall the plugin :/

Thanks!
Title: Re: Photo of the Day/Week, with Archive
Post by: Nibbler on June 19, 2009, 09:54:37 pm
You can try commenting out this require line in codebase.php

Code: [Select]
// ------------------------------------------------------------------------------------------------
// Add in plugin buttons & links to appropriate pages
// ------------------------------------------------------------------------------------------------
function potd_filter_page($html)
{
  global $lang_editpics_php;
  //require ('plugins/potd/include/init.inc.php');
Title: Re: Photo of the Day/Week, with Archive
Post by: lipa on June 19, 2009, 10:23:50 pm
Thanks for the quick answer :)

It's working fine now! Thank You.
Title: Re: Photo of the Day/Week, with Archive
Post by: JaymzM on July 14, 2009, 06:18:52 am
Hello all, new to Coppermine and I must say it's awesome, thank you to everyone's hard work, Great Job.

I have been using the latest version and it works great (as long as you read all the doc's...learned the hard way)

I've been using the latest version of potw plugin, it loaded great, installed nice and loaded the first pic great.
However on the second week I went to change the potw, following the instructions closely I received this error

While executing query "REPLACE INTO babyrae_coppermine_siteplugin_potd (`pid`,`potw`,`potw_date`) VALUES ('178','1','1247542651')" on 0

mySQL error: Field 'potd_date' doesn't have a default value

File: C:\Inetpub\wwwroot\babyrae\include\functions.inc.php - Line: 250 

I went into mySQL and changed babyrae_coppermine_siteplugin_potd 'potw_date' to 'As Defined' and everything started working again.

Not sure if this will help anyone else but it worked for me, keep up the good work guys.

Jaymz  ;D
Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller on July 14, 2009, 10:10:43 am
You shouldn't be running mysql in strict mode unless you understand what that means.
To permanently fix that in your install, assign a default value to the column the error message complains about (using phpMyAdmin or similar). To permanently fix this is the plugin package, edit schema.sql, and replace the content with
Code: [Select]
CREATE TABLE IF NOT EXISTS `CPG_plugin_potd` (

  `pid` INT(11) NOT NULL,

  `potd` TINYINT(3) DEFAULT '0' NOT NULL,

  `potd_date`  varchar(14) DEFAULT '' NOT NULL,

  `potw` TINYINT(3) DEFAULT '0' NOT NULL,

  `potw_date`  varchar(14) DEFAULT '' NOT NULL,

PRIMARY KEY  (`pid`)

);
This will of course only have an impact if you uninstall and re-install the plugin.
Title: Re: Photo of the Day/Week, with Archive
Post by: jimi007 on September 12, 2009, 05:43:58 am
i also facing problem that no thumbnail shown for both potd/potw  what should i do plz help and tell how to manually add pictures to potd/potw archive thnkx i follow all step as in readme and also add hack to function file .
Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller on September 14, 2009, 04:10:44 pm
This is your ultimate and final warning: you have been told so often already about board rules that it hurts, e.g. in
Learn to respect board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) first.
You are banned from posting for a week. Next ban will be permanent if you don't play by the rules from now on.
Title: Re: Photo of the Day/Week, with Archive
Post by: tcartr on December 07, 2009, 04:33:28 pm
Please forgive me this is first post and I am very new at this, I have installed potd and I am able to select the potd and have been moving to archive as per instructions but when I try to view potd archive I receive this message

The selected album/file does not exist !  what must I do?
Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller on December 07, 2009, 06:53:04 pm
Start by reading the thread you reply to, just one posting above yours: in that posting I told another use that he needs to respect board rules. This applies to you as well. The word "board rules" in that posting are even clickable - why don't you give that a try?
Title: Re: Photo of the Day/Week, with Archive
Post by: tcartr on December 07, 2009, 08:36:01 pm
Start by reading the thread you reply to, just one posting above yours: in that posting I told another use that he needs to respect board rules. This applies to you as well. The word "board rules" in that posting are even clickable - why don't you give that a try?

For the love of all that is decent have some patience not eevryone is a freaking expert at this like you are and can be very nervous.
What board rules did I break in one simple post explaining exactly the problem? I am sure you have the answer. This is exactly why I dreaded creating an account to ask for a simple bit of help because I have seen how you reply to others. You lack the patience to be any sort of teacher whatsoeevr, please ban me if you like I do not need any help I will simply remove the plugin now have a nice day because I have no time for impatient people.
Title: Re: Photo of the Day/Week, with Archive
Post by: phill104 on December 07, 2009, 09:13:12 pm
tcatr,

The problem is that every user needs to post a link to their site. It is a simple request and we have to write it so many times per day it gets very tiresome having to ask every user who does not. It does not take any high skill levels, you do not have to be an expert. It is a simple matter of reading which you obviously can do. What is just as annoying is when people don't bother reading the thread they are responding to. Why should we put in the work for a user that is too lazy to do it themselves? The most annoying thing however is when people argue when simply requested to read the board rules and post a link. It is not hard and takes less time out of your life than I have been forced to waste of mine by typing this response.

As it takes time to ban you as requested I will not this time. If you wish support in the future please be polite and do as requested. Otherwise I will have to waste more of my time banning you.
Title: Re: Photo of the Day/Week, with Archive
Post by: tcartr on January 04, 2010, 11:34:56 pm
I hope you would both accept my apology, my knowledge here is zero I needed a photo gallery it was auto installed at my host by simply clicking a button so I am no genius.

The problem as I noted is the files go nowhere when I add to archive no error just simply no place I can see them.

I also have been getting this error when editing a single file

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

I had installed the plugin News Bulletin V2.0 also I removed News and tested with POTD and still had the problem, I removed POTD and left News and was able to single edit with no error.

Please let me know if there is a way that I can try to fix this or I will simply not run POTD.

http://www.teenstarsonline.com/tsoimages/index.php (http://www.teenstarsonline.com/tsoimages/index.php)

Thank you.
Title: Re: Photo of the Day/Week, with Archive
Post by: Joachim Müller on January 05, 2010, 07:24:12 am
We don't care for your skill level. Auto-installers go unsupported. Upgrade as we suggest in our docs.
Title: Re: Photo of the Day/Week, with Archive
Post by: tcartr on January 05, 2010, 09:39:51 pm
Thank you upgrade has been completed and I installed once more the POTD and now I have the thumbs in archive.
Title: Re: Photo of the Day/Week, with Archive
Post by: TeraS on March 06, 2010, 05:17:27 pm
Hello!

I'm having the same issue as others with an error when editing one file when using this plug-in

The error is a blank page and the error information:

Code: [Select]
Critical error
Script called without the required parameter(s).

File: /home/.ge/ti/succubus.net/gallery/plugins/potd/codebase.php - Line: 126

I tried this fix as noted earlier in the thread:


You can try commenting out this require line in codebase.php

Code: [Select]
// ------------------------------------------------------------------------------------------------
// Add in plugin buttons & links to appropriate pages
// ------------------------------------------------------------------------------------------------
function potd_filter_page($html)
{
  global $lang_editpics_php;
  //require ('plugins/potd/include/init.inc.php');

However this does not solve the issue.

I am running version 1.4.26 of Coppermine and my gallery is at:

http://www.succubus.net/gallery

Any thoughts or ideas would be welcomed!

Thank you!