forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: François Keller on November 05, 2006, 11:55:56 am

Title: Update History
Post by: François Keller on November 05, 2006, 11:55:56 am
UPDATE HISTORY: Display an update history block on main page
curent stable version 1.1
curent developpement version 2.0.1.beta
original MOD by Nibbler: http://forum.coppermine-gallery.net/index.php?topic=9540.0 (http://forum.coppermine-gallery.net/index.php?topic=9540.0)
Adapted for CPG 1.4.* by deejaymoni: http://forum.coppermine-gallery.net/index.php?topic=26629.0 (http://forum.coppermine-gallery.net/index.php?topic=26629.0)

Install:
- unzip package to plugins folder and use plugin manager to install it
- after installation add updatehistory to :
    config => Album list view => The content of the main page
Version 1.0
config:
- Intitialy the plugin is configured to start update history 4 days ago, you can change this setting by editing plugins/update_history/codebase.php and change the $day value on line 68.
- if you want to show this stat to admin only , open up plugins/update_history/codebase.php and replace (around line 63)
this

Code: [Select]
if($matches[1] != 'updatehistory') {
with this
Code: [Select]
if($matches[1] != 'updatehistory' || !GALLERY_ADMIN_MODE) {

- if you want to show this stat to Registered user only , open up plugins/update_history/codebase.php and replace (around line 63)
this

Code: [Select]
if($matches[1] != 'updatehistory') {
with this

Code: [Select]
if($matches[1] != 'updatehistory' || !USER_ID) {
LANGUAGE:
english.php, italian.php (thank's Lontano)and french.php are avaible in the package. You can translate in your language
New
german.php added (thank's farnsi)
possibility in codebase.php to show uploader name only for registred users (see comments in the code)
New version 1.1
see this post for détails http://forum.coppermine-gallery.net/index.php?topic=38148.msg196311#msg196311 (http://forum.coppermine-gallery.net/index.php?topic=38148.msg196311#msg196311)
*Dutch lang file added (thank's HEIN)
*German lang file added (Thank's AlexL)
*little modif in the code to solve typo proble (thank's AlexL for report)
New version 2.0
See this post for more details
language files avaible:
*english.php
*french.php
*dutch.php (thank' Hein)
*italian.php (thank's Lontano)
http://forum.coppermine-gallery.net/index.php?topic=38148.msg203782#new (http://forum.coppermine-gallery.net/index.php?topic=38148.msg203782#new)
Title: Re: Update History
Post by: Davide Renda on November 05, 2006, 01:53:41 pm
italian translation attached  ;)
good work Frantz!
Title: Re: Update History
Post by: François Keller on November 05, 2006, 02:01:37 pm
Thak's Lontano for your contribution.
I'll add your file in the pack
Title: Re: Update History
Post by: Hein Traag on November 06, 2006, 11:46:55 am
Goodmorning,

installed this neat little plugin to my CPG.

I added the changed files for the dutch lang version to this post.
The file dutch.php contains the translations. Codebase.php needs some editing as wel.
Change:
Code: [Select]
echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new_files'].(($number > 1) ? 's' : '').$lang_plugin_update_history['update_file']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>".$lang_plugin_update_history['by'] ;
Into:
Code: [Select]
[code] echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new_files'].(($number > 1) ? '(en)' : '').$lang_plugin_update_history['update_file']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>".$lang_plugin_update_history['by'] ;[/code]

It changes the s which is used to add to the word file so it spells files into (en) which is used to add to bestand so it spells bestand(en).

I do get to see the catlist twice now. Any idea why that is ? I think it has something to do with the order in which the plugins are loaded into CPG. I will try something out in the sort list of the plugins and let you know.
**UPDATE** I had the same dual catlist when i installed the Onlinestats plugin. I placed that one on top of the plugin list and the Updates plugin underneath it. Now i see 1 catlist as usual. Problem solved.

Cheers!
Hein
Title: Re: Update History
Post by: François Keller on November 06, 2006, 11:52:59 am
Your right, for language who don't use  the "s" for the plural you must change the code in codebase.php
Title: Re: Update History
Post by: Hein Traag on November 06, 2006, 03:48:49 pm
Frantz,

the plugin provides a way to show the updates to registered or admins only.
But is it also possible to show the updates to guest users but then without the information of which user uploaded the new pictures ? So guest users only get to see the added updates to the CPG.

Cheers!
Hein
Title: Re: Update History
Post by: François Keller on November 06, 2006, 04:13:57 pm
Hein,

Yes it' seems to be possible. I'll look at this when i find  time.
Thank's for your contribution foe dutch lang file (will be added to the pack)
Title: Re: Update History
Post by: Hein Traag on November 06, 2006, 04:56:18 pm
Hein,

Yes it' seems to be possible. I'll look at this when i find  time.
Thank's for your contribution foe dutch lang file (will be added to the pack)

i know it has something to do with this line
Code: [Select]
if ($u > 0) $links[] = "<a href=\"profile.php?uid=$u\">". get_username($u) ."</a>";
Somewhere in that line USER_ID has to be added. I tried adding it a couple of times but can not find the right way to insert it. If do, by a stroke of luck, get it done i'll post here (unless you are faster  ;D )

Cheers!
Hein
Title: Re: Update History
Post by: François Keller on November 06, 2006, 05:54:40 pm
Hein,

Try with the codebase.php attached
Title: Re: Update History
Post by: Hein Traag on November 07, 2006, 08:37:56 am
Frantz,

thanks for the new codebase. It worked! I attached the dutch version of codebase.php for registered users on this post.

Kind regards,
Hein
Title: Re: Update History
Post by: capecodgal on November 16, 2006, 07:54:09 pm
Got 2 quick questions relating to this mod and I hope it is ok to post them here-

#1 how to change the description on the box? It states "Recent Update" and I want it to say "Recent Gallery Updates" since there is more than one update or something to that effect-

#2 how can I remove the user protion of the code? So it will not say 20 files into album by user (I just want to drop the "by user" because it comes up on the second line since my table is not 100% and it would look nicer if I could drop that and keep it on 1 single line)
Title: Re: Update History
Post by: François Keller on November 17, 2006, 07:20:42 am
question 1: make the change in the lang/english.php file

question 2: in codebase.php search this code and comment it
Quote
if ($u > 0) $links[] = $lang_plugin_update_history['by']."<a href=\"profile.php?uid=$u\">". get_username($u) ."</a>";
Title: Re: Update History
Post by: Farnsi on November 27, 2006, 12:35:38 pm
Thanks for this plugin, it is really great!
I attached the a german version of the files, with the activated option "for registered users".

I have one question, is there a chance to change the mod in that way, that it is only shown on the index page?
Title: Re: Update History
Post by: François Keller on November 27, 2006, 03:52:56 pm
Thank's for your contribution. Your langage file will be added in the orignal pack as soon as possible.done
Quote
I have one question, is there a chance to change the mod in that way, that it is only shown on the index page?
I don't understant what you mean. The update history box is only shown on the index page.  ???
Title: Re: Update History
Post by: Farnsi on November 28, 2006, 11:08:24 am
unfortunately not, the box is also shown inside the categories. and i would prefer to have it shown only on the mainpage.
to my gallery

Title: Re: Update History
Post by: Joachim Müller on November 28, 2006, 11:19:56 am
The category pages are being displayed using index.php as well. You'll have to add a switch the checks if $cat==0 if you want it to only show on the root category page.
Title: Re: Update History
Post by: Farnsi on November 28, 2006, 11:35:02 am
sounds logical, thanks, but unfortunatly i'm not a good coder so could you tell me how and where to put this switch?
or should i post this question in a new thread?  :-\
Title: Re: Update History
Post by: François Keller on November 29, 2006, 10:55:56 am
try this:
in codebase.php find
Code: [Select]
GLOBAL $CONFIG, $matches;replace with
Code: [Select]
GLOBAL $CONFIG, $matches,$cat;
Code: [Select]
if($matches[1] != 'updatehistory'{replace with
Code: [Select]
if($matches[1] != 'updatehistory'|| !$cat==0 ) {
Title: Re: Update History
Post by: Farnsi on November 29, 2006, 12:34:06 pm
thanks a lot! works perfect!
Title: Re: Update History
Post by: Hein Traag on November 30, 2006, 09:18:47 pm
Frantz,

i am using, trying to, the plugin on my personal CPG. It's using the MorpheusX Blue theme from DaMysterious.
When i try to install the Update History plugin it comes back with this:
Code: [Select]
Parse error: syntax error, unexpected T_STRING in /kill-9.be/users/hop/public_html/cpg/plugins/update_history/codebase.php on line 101
Any idea what might be causing that ?

Hein
Title: Re: Update History
Post by: François Keller on November 30, 2006, 10:08:18 pm
Hein,

attach your codebase.php file
Title: Re: Update History
Post by: Hein Traag on November 30, 2006, 11:19:15 pm
Hein,

attach your codebase.php file

Done  ;)
Title: Re: Update History
Post by: François Keller on December 01, 2006, 07:52:55 am
Hein,

its this line who make problem:
Code: [Select]
if ($u > 0) $links[] = ".(USER_ID ? "<a href=\"profile.php?uid=$u\">" : '') . get_username($u) .(USER_ID ? "</a>" : '');what do you want to display with this ? I don't understant your code  :-\
normal code is
Code: [Select]
if ($u > 0) $links[] = $lang_plugin_update_history['by']."<a href=\"profile.php?uid=$u\">". get_username($u) ."</a>";
Title: Re: Update History
Post by: Hein Traag on December 01, 2006, 11:35:47 am
It's the codebase you adjusted so only registered users could click on a username to see the profile details.  ;D
Title: Re: Update History
Post by: François Keller on December 01, 2006, 11:44:56 am
replace in your codebase.php file this code
Code: [Select]
foreach ($counter as $day) {
foreach ($day as $album => $number) {
$date = $test[$i];
$album_info = $info[$date][$album];
echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new_files'].(($number > 1) ? '(en)' : '').$lang_plugin_update_history['update_file']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>".$lang_plugin_update_history['by'] ;
$links = array();
foreach ($users[$date][$album] as $u) {
if ($u > 0) $links[] = ".(USER_ID ? "<a href=\"profile.php?uid=$u\">" : '') . get_username($u) .(USER_ID ? "</a>" : '');
}
$out = array_unique($links);
echo implode(', ',$out);
echo "</td></tr>";
}
$i++;
}
with
Code: [Select]
foreach ($counter as $day) {
foreach ($day as $album => $number) {
$date = $test[$i];
$album_info = $info[$date][$album];
echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new_files'].(($number > 1) ? 's' : '').$lang_plugin_update_history['update_file']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>" ;
$links = array();

foreach ($users[$date][$album] as $u) {
//if (USER_ID){ //uncoment this line if you don't want to show uploader name to unregistred users
if ($u > 0) $links[] = $lang_plugin_update_history['by']."<a href=\"profile.php?uid=$u\">". get_username($u) ."</a>";
}
//}//uncoment this line if you don't want to show uploader name to unregistred users
$out = array_unique($links);
echo implode(', ',$out);
echo "</td></tr>";
}
$i++;
}
Title: Re: Update History
Post by: Hein Traag on December 01, 2006, 01:03:29 pm
For a stone carver you do know what to code to make it work Frantz  ;D

Works on both fototest.scouting.nl and rondvierkant.nl (my personal CPG)

Thanks
Hein
Title: Re: Update History
Post by: Hein Traag on February 12, 2007, 11:23:42 am
Frantz,

just a idea but would it be possible to add a "Archive" function in this plugin which can be seen by clicking on the Archive button or link in the table cel. Which can be set to be viewed by everybody, only registered or only admin.

Ciao
Hein
Title: Re: Update History
Post by: François Keller on February 12, 2007, 11:56:44 am
Hein,

it's surely possible. I look for thi sfeature if i find time  ;)
Title: Re: Update History
Post by: François Keller on February 18, 2007, 07:24:05 pm
New version (V.1.1)

Asked by Hein, this new version show a button to go to an archive page if you're logged as admin.
On this archive page you can set the number of days ago to start history.
The button can be shown for registred users or for all users by modify the codebase.php (see comments on the code)
Caution: the langage files are modified. Only english and french files in the pack are modified.
Pack attached on the very first post from thisthread
Title: Re: Update History
Post by: Hein Traag on February 19, 2007, 09:09:24 am
 ;D Thanks Frantz, it's exactly like i wanted it. Hopefully others will see it as a benefit as wel.

New dutch.php zipped and attached to this post.

Hein
Title: Re: Update History
Post by: François Keller on February 19, 2007, 09:43:50 am
;D Thanks Frantz, it's exactly like i wanted it. Hopefully others will see it as a benefit as wel.

New dutch.php zipped and attached to this post.

Hein
:D
Your language file is added in the pack thank's
Title: Re: Update History
Post by: AlexL on February 19, 2007, 10:29:38 am
Hallo Frantz

Another nice PlugIn from you - my German Lang File attached.
But the translatet line  'configure' =>'... dont work on my site - This line after installation is shown in english although I've translatet this line.
The from... is shown doubly on my site "von von Username" There is only one "von" in the lang file. The other come from Coppermine self.

Furthermore I have any moding wishes for the PlugIn too. ;D
1st On the Mainpage of Galerie to show more than a 4 day historie as default - to configure for admin in a settings dialog for the PlugIn. Instead of editing the codebase.php ;)
The Archive-Button to adjust this temporary works fine for me - but not every day I upload new pictures - so that I wish to set it to the last 30 days for example. Maybe to adjust it with the last numbers the Admin has used with the Archive Button?
Alternate a setting to adjust the lines that are shown - for example the last 5 updates instead a 4 day history. Maybe this is the best way because the layout for the Mainpage is so set and fix.
2nd The line:
Date: new Files added to album ... from ...
This line I need in an other modus
Date: new Files added to categorie,subcategorie,subcategorie,album.
I need this because the album-name in my Galerie is not meaningfully it's only the date and place - the band-name is in the categorie.
The from user... I don't want to show, because there is only one user - it's me.

You can see this work on my page www.velvet-photos.de
Title: Re: Update History
Post by: François Keller on February 19, 2007, 11:41:33 am
AlexL,
Quote
The from... is shown doubly on my site "von von Username" There is only one "von" in the lang file. The other come from Coppermine self.
Ok, it's a typo error (I made a modif in the code and the 'by' was shown twice) :-\
modif added in the pack
Change this code
Code: [Select]
if ($number == 1) {
                echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>".$lang_plugin_update_history['by'] ;
} else {
                echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['news']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>" ;
}
with
Code: [Select]
if ($number == 1) {
                echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>" ;
} else {
                echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['news']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>" ;
}
Quote
1st On the Mainpage of Galerie to show more than a 4 day historie as default - to configure for admin in a settings dialog for the PlugIn. Instead of editing the codebase.php
even asked by Jujuv on the french board. It's on my todo list (but need a deep modif in this plugin by adding a database table to store the settings)
for the other changes, i'll see what is possible to so  ;)
Title: Re: Update History
Post by: AlexL on February 19, 2007, 12:14:11 pm
Quote
the last 5 updates instead a 4 day history
The more I think about - so I think this is the best way. Because in the hole world are thousands coppermine gallerys and any of this has hundred users - this makes many entries only on one day - this breack open every layout. And instead to have a dynamic list with hundreds entries, it's nice to have this 5 or 10 entries,and the layout is under control.
It's an nice informativ way to show the users what's new - I love this idea  :-*
The only you have to mod is to read out the history as before and than short the list to the last 5 lines.
I m not the coder - but I hope this is a little job ;)
In this case you don't need a table  - set the numbers of lines as a variable and do this in a set.php file.
Everybody that's able to upload a PlugIn is able to edit this one line in a file too.
Title: Re: Update History
Post by: François Keller on February 19, 2007, 12:56:17 pm
Yes, your proposition to put the settings in a file is a quick solution. But, i think it can be usefull to have a really admin config page to set the preference:
* upload for the last x days or x last upload on the main page
* who can access to the archive page
* what is to display on the archive page

.... (for the 2.0 version  :D)

P.S. The modifs from my previous post must also be made on the history_admin.php file
Title: Re: Update History
Post by: AlexL on February 19, 2007, 02:37:36 pm
Quote
what is to display on the archive page
and what is to display on the main page
Quote
a quick solution... it can be usefull...
Yes, of cource!
You try to be perfect  ::)
Quote
for the 2.0 version
I can already smell it  ;D - you too?
Title: Re: Update History
Post by: Hein Traag on February 19, 2007, 02:44:25 pm
<offtopic>
Oh good.. i thought it was my laptop cpu overheating  ;D
</offtopic>
Title: Re: Update History
Post by: François Keller on February 19, 2007, 05:20:59 pm
 :D :D :D
version 2.0 will come asp  ;)
Title: Re: Update History
Post by: AlexL on February 19, 2007, 07:29:09 pm
I know - because I've smell it ;D :D ;D
Title: Re: Update History
Post by: Megachip on March 11, 2007, 08:28:58 pm
Update History shows all albums, even the albums which aren't visible for the user... e.g. no one is loged on, but he can see all albums with new pictures...

in the orginal mod by nibbler, the user see only updates to albums which are visible 4 him

P.S. It seems that $FORBIDDEN_SET not initialized (add it as global???)

Title: Re: Update History
Post by: François Keller on March 11, 2007, 08:46:02 pm
I must have a look for this. I have not changed Nibbler original code, only adapted for making a plugin.

Version 2.0 in work  ;)
Title: Re: Update History
Post by: Nibbler on March 11, 2007, 08:49:41 pm
$FORBIDDEN_SET needs to be added to the globals
Title: Re: Update History
Post by: AlexL on March 23, 2007, 02:32:29 pm
Quote
Version 2.0 in work
@ Frantz - If you need changed german.php and liesmich.txt feel free to PM me
Title: Re: Update History
Post by: François Keller on March 23, 2007, 02:36:11 pm
$FORBIDDEN_SET needs to be added to the globals
Ok i'll note this thank's
Quote
If you need changed german.php and liesmich.txt feel free to PM me
Ok, i PM you before posting the 2.0 version  ;)
Title: Re: Update History
Post by: Hein Traag on March 23, 2007, 11:50:21 pm
 ;D do i need to say more ?
Title: Re: Update History
Post by: ash_sk8s on March 30, 2007, 09:27:01 pm
Okay I made sound totally stupid but I'm new to Coppermine and this is the first plug-in that I'm attempting to install so I really need help. I basically have no idea how to install the plug in. I unzipped the folder to my plugins folder but when I go to my plug-in manager and I have to select a file to upload or whatever, I have no idea what to do. Help! :)
Title: Re: Update History
Post by: Nibbler on March 30, 2007, 09:49:36 pm
Installing plugins is explained in the manual.
Title: Re: Update History
Post by: ash_sk8s on March 30, 2007, 10:47:19 pm
Figured it out. Thanks. :)

Title: Re: Update History
Post by: JohannM on April 05, 2007, 12:37:39 am
Is there a way to add a little thumbnail before the text parts ?

Thanx for the great work, keep it up !
Title: Re: Update History
Post by: François Keller on April 05, 2007, 07:38:25 am
Quote
Is there a way to add a little thumbnail before the text parts ?
what do you mean ?
Title: Re: Update History
Post by: Hein Traag on April 05, 2007, 08:32:42 am
I think he means that the update history displays like this:

Thumbnail - Mar 22, 2007: 11 new files added to the album
or
Mar 22, 2007: 11 new files added to the album - Thumbnail

Displaying the last image in the newly added album or maybe even a chosen thumbnail.

Which would make it a good replacement for the lastup section :)

Hein
Title: Re: Update History
Post by: François Keller on April 05, 2007, 08:40:05 am
Ok,
 
Quote
Which would make it a good replacement for the lastup section
Yes but not sure that will be usefull  :-\
On the moment not planed for the 2.0 version
Title: Re: Update History
Post by: François Keller on April 06, 2007, 09:57:52 pm
Hey all,

attached the new version 2.0 for test

New features:
*config panel to setup the plugin for each usergroup
*Possibility to choose between two way to show last updates:
 - N last updates
 - last updates in the N last days

Known issue, plugin uninstalling feature don't work correctly

Thank's for testing this new version (Hein, AlexL... ;))
Title: Re: Update History
Post by: Hein Traag on April 06, 2007, 10:30:34 pm
 ;) at your service

I installed 2.0 after having translated the lang file first (attached it to this post). I set different settings for the user groups. All worked well. Have not tried uninstalling yet. So far it is looking good Frantz. Although a thumbnail added like suggested by JohannM stil sounds very slick  ;D

Title: Re: Update History
Post by: François Keller on April 07, 2007, 09:01:02 am
Thank's Hein for your test and your translation.
 
Quote
Although a thumbnail added like suggested by JohannM stil sounds very slick  Grima&ccedil;ant
Ok, Ok, wy not a popup thumbnail on mouse over ?  ;)
I'll work on the uninstall feature now.
Title: Re: Update History
Post by: François Keller on April 07, 2007, 06:53:28 pm
Hey all,

version 2.0 work's now correctly.
uninstall feature work's well, but the text appears only in english (i don't find why  :-\ )
Hein's dutch translation is added in the pack.

New features:
*config panel to setup the plugin for each usergroup:
 - settings are stored in a new table in the database
*Possibility to choose between two way to show last updates:
 - N last updates
 - last updates in the N last days
The pack is attached on the very fist post from this thread here http://forum.coppermine-gallery.net/index.php?topic=38148.0 (http://forum.coppermine-gallery.net/index.php?topic=38148.0)
Title: Re: Update History
Post by: Hein Traag on April 08, 2007, 08:53:43 am
Good work Frantz! Looking forward to other improvements  ;D
Title: Re: Update History
Post by: François Keller on April 09, 2007, 03:57:10 pm
Bug with the plugin update history

if you already installed this plugin and that you wish a to install another, the new installation doesn't work correctly.
Uninstall and  reinstall update history so that all goes back in the order.

If someone has an idea, he is the welcome...  :)
Title: Re: Update History
Post by: AlexL on April 10, 2007, 02:36:24 pm
I've uninstall the V1.1 - delete the files from webserver, upload the V2, install V2, Shows all OK Message
But no Config button to found in Admin Toolbar for update history
After uninstall with or without save settingstable - is there no way to reinstall the V2
Quote
Uninstall and  reinstall update history so that all goes back in the order.
How to do this?
I've restore my db-backup and the v1.1 files on the server - and this is now ok.
But the V2 ???

Title: Re: Update History
Post by: François Keller on April 10, 2007, 06:22:57 pm
Quote
But no Config button to found in Admin Toolbar for update history
It's normal, admin button is diplayed in the block title from the plugin when logged as admin. (see screeshot attached)
Quote
After uninstall with or without save settingstable - is there no way to reinstall the V2
in the plugin table from the database, erase the updatehistory entry
Title: Re: Update History
Post by: AlexL on April 10, 2007, 06:43:58 pm
Quote
After uninstall with or without save settingstable - is there no way to reinstall the V2
in the plugin table from the database, erase the updatehistory entry
OK I'll try this - but you should fix it in V2 Final

And I make the german asp - ok
Title: Re: Update History
Post by: François Keller on April 11, 2007, 07:31:26 am
I try to find why this happend, but no chance at this moment  :-\
Title: Re: Update History
Post by: AlexL on April 11, 2007, 11:31:57 am
Don't Panik  ;D
Title: Re: Update History
Post by: AlexL on April 11, 2007, 11:44:48 am
Is this the range to delete from sql?

Code: [Select]
DROP TABLE IF EXISTS `cpg132_update_history_config`;
CREATE TABLE `cpg132_update_history_config` (   `Group_Id` varchar(40) NOT NULL default '',   `bloc` varchar(255) NOT NULL default '',   `archive` varchar(255) NOT NULL default '',   `uploader_name` varchar(255) NOT NULL default '',   `days` varchar(255) NOT NULL default '',   `number` varchar(255) NOT NULL default '',   PRIMARY KEY  (`Group_Id`) ) TYPE=MyISAM;
INSERT INTO `cpg132_update_history_config` VALUES('1','1','1','1','1','4');
INSERT INTO `cpg132_update_history_config` VALUES('2','1','1','1','1','4');
INSERT INTO `cpg132_update_history_config` VALUES('3','1','0','0','1','4');
INSERT INTO `cpg132_update_history_config` VALUES('4','0','0','0','1','4');
Title: Re: Update History
Post by: AlexL on April 11, 2007, 11:51:22 am
Sorry - delete this from sql and reinstall V2 doesn't work  :'(

Now I have found a way - I restore the DB with installed V1.1 and replace the PlugIn with ftp in background without using the PlugIns-Manager.
After this in PlugInsManager the Version is shown as V2 and it works as V2 - on Indexpage the Configbutton is shown also.

In my first tests it works fine - but I miss a third funtion
you have integrated the two ways to show :
first: Uploads from last 4 days - grouped as in this example
Quote
Februar 24, 2007: 21 new files added to the album Folklorum 2003
Februar 24, 2007: 2 new files added to the album 10.09.1998 Steeg
second:last 4 uploaded files
Quote
Februar 24, 2007: PICT0502.jpg added in the album Folklorum 2003
Februar 24, 2007: PICT0496.jpg added in the album Folklorum 2003
And I miss the
third:the last X Uploads grouped for albums and not every file separately
Quote
Februar 24, 2007: 21 new files added to the album Folklorum 2003
Februar 24, 2007: 2 new files added to the album 10.09.1998 Steeg

Please add this to my wishlist for V2 final
Title: Re: Update History
Post by: Hein Traag on April 11, 2007, 11:57:28 am
I redid my install. Ran into the same problem. I emptied the update_history_config table and then installed v2 again. No problems after this.
Title: Re: Update History
Post by: AlexL on April 11, 2007, 12:17:34 pm
Quote
I emptied the update_history_config table
How to do this? silly question?
Title: Re: Update History
Post by: François Keller on April 11, 2007, 01:25:25 pm
AlexL,

Quote
first: Uploads from last 4 days - grouped as in this example
Citation
Februar 24, 2007: 21 new files added to the album Folklorum 2003
Februar 24, 2007: 2 new files added to the album 10.09.1998 Steeg
second:last 4 uploaded files
Citation
Februar 24, 2007: PICT0502.jpg added in the album Folklorum 2003
Februar 24, 2007: PICT0496.jpg added in the album Folklorum 2003
And I miss the
third:the last X Uploads grouped for albums and not every file separately
Citation
Februar 24, 2007: 21 new files added to the album Folklorum 2003
Februar 24, 2007: 2 new files added to the album 10.09.1998 Steeg
What's the difference between first and third  way ? I don't understant what you mean  :-\
Title: Re: Update History
Post by: Hein Traag on April 11, 2007, 01:33:52 pm
How to do this? silly question?

With phpMyAdmin. You login to the DB and select the update_history_config table and select to empty that table. I don't have a screenshot here but if you need one i can make one for you.
Title: Re: Update History
Post by: AlexL on April 11, 2007, 02:03:49 pm
@FRANTZ
Quote
What's the difference between first and third way
OK OK OK - I have cheat to show this first. Have a look at the Date - it's from February - if I take the variant First and take the last 5 days - then the report is empty. That's why i take 100 days. This is the Problem - I need a grouped variant - but not from last X days - because of no need to adjust the days to a valid value.
I want to have a version which displays like the first but it shows a adjustable number of rows. Now all confused?

@Hein
I must have a talk with my hoster - at this time he is the only one with the ability for PhpMyAdmin. In moment I can only backup and restore the Database with the PlugIn from Frantz.
Title: Re: Update History
Post by: AlexL on April 11, 2007, 02:33:35 pm
Now I have make me a nice own goal. I have tested the V2 and take any adjustments - and now I config the not show the bloc for Admin. It's nice - the bloc is'nt shown longer - but now there is no config button to restore the setting - fine ;D >:( ;D - But no problem - I take the back Button from my browser and correct this ;D
Title: Re: Update History
Post by: AlexL on April 11, 2007, 03:18:19 pm
Now a new error found - sorry it's not my intention. :'(
After diverse tests and config is all ok - I'll take a backup from my DB with your Backup-PlugIn - but the button is disappear.
I take a look at the PlugIns Manager and the PlugIn is not to see - not at installed and not at not installet section.

I have hear about problems with the sequencing of plugins - that's why I try to arranged the UpdateHistory PlugIn from lower to upper. And with every click another PlugIn disappears. Till the Updatehistory is alone - then I deinstalled it and now all others are back.
But I cant reinstall it without PhpMyAdmin - It's high time that I get access to it.

But to encourage you - the german.php
Title: Re: Update History
Post by: François Keller on April 11, 2007, 03:36:55 pm
Thank's for report.

This bug is the same i i'have found in my test. I'm working to find the problem.

Quote
But I cant reinstall it without PhpMyAdmin - It's high time that I get access to it.
Yes i think so  ;)

Thank's for the german translation.
Title: Re: Update History
Post by: AlexL on April 11, 2007, 03:57:20 pm
Now I have it -  ;D - and now it was no problem to empty table, reinstall and after config the other PlugIns now are present - till I increase the position of update history

Do you have the same effekt like I in this Screenshot?

Title: Re: Update History
Post by: François Keller on April 11, 2007, 04:18:17 pm
Quote
Do you have the same effekt like I in this Screenshot?

Yes, i haven't see this (another little bug in this version)
Title: Re: Update History
Post by: AlexL on April 11, 2007, 04:24:35 pm
Have you understand my First Third difference?
Title: Re: Update History
Post by: François Keller on April 11, 2007, 04:28:36 pm
euh! not sure  :-\ can you give an exemple ?
Title: Re: Update History
Post by: AlexL on April 11, 2007, 05:12:41 pm
Ok I'll try with step by step

The two ways you have realized are correct. But the per file way is only usefull for galleries with many users. This users upload single files and if you take the setting to 15 Files then the indexpage shows a heterochromatic list of files. In my case I'm the one and only user for my gallerie. I upload 50 files to a new album and then 30 to an other. If I take the setting 15 Files it's a boringly list of File1 File2 File3 ...

If I take the last 100 days setting it shows a heterochromatic list of updated albums with the amount of new files, but the list is to long. But if i take the last 5 days the list is empty. My job at this time is to find the optimum amount of days to display an interesting list for my visitors, but the list has to be not to long.

My wish is you calculate so: all updated albums and how many files are updated in this albums and crop the first 5 entrys from this list. The resulting representation is nearly the same output like if I take 57 days.

I hope now I descript it understandably?
Title: Re: Update History
Post by: François Keller on April 11, 2007, 05:29:11 pm
Ok understand now  ;D
I'll first fix the two bugs from the plugin before coding this (it's not so simple  :-\  ;) :-\)
Title: Re: Update History
Post by: AlexL on April 11, 2007, 10:18:53 pm
You ask - if I can help!
Title: Re: Update History
Post by: JohannM on April 13, 2007, 01:00:56 am
Hi there Hein / Frantz

Yes, this is what I ment.

It would be great to have a "thumb" before or after the update line.  It's not usefull, but can be nice since the visitors to the site are drawn by the image thumb.  Is it that hard to add some code to incorporate it ?  I'm still stupid if it comes to php !

Keep up the good work !
Title: Re: Update History
Post by: François Keller on April 15, 2007, 03:13:43 pm
Ok, I've fixed one of the issue reported by AlexL http://forum.coppermine-gallery.net/index.php?topic=38148.msg204225#msg204225 (http://forum.coppermine-gallery.net/index.php?topic=38148.msg204225#msg204225)
I've added a thumbnail before the update line when dispalying the X last uploaded files.
German.php added in the pack (thank's AlexL)
Installation issue is not fixed. I can't find why this problem happend (help needed if some better coder can have a look at this  ;))
Title: Re: Update History
Post by: AlexL on April 15, 2007, 09:59:34 pm
Hello Frantz

thanks for your work.
The duplicate error is fixed fine.
The thumbnail works correct for the file-mode. (But a blue outline is shown - mismatch to my design - would be better without an outline)
In the mode last days no thumb is shown - if you planed to integrate this (or for the third mode ;)) then you can take the chosen album-thumbnail for this.
To workaround the install-problem - I've delete the folder updatehistory on my server (was V 2.0) and upload the V2.0.1 updatehistory folder on the same position without deinstalling/installing the PlugIn. It works fine for me. (@Frantz - Is this ok? - or you predict problems with this way because of tablechanges?)
Title: Re: Update History
Post by: François Keller on April 15, 2007, 10:26:56 pm
Quote
To workaround the install-problem - I've delete the folder updatehistory on my server (was V 2.0) and upload the V2.0.1 updatehistory folder on the same position without deinstalling/installing the PlugIn. It works fine for me. (@Frantz - Is this ok? - or you predict problems with this way because of tablechanges?)
It's correct, no table change
Quote
But a blue outline is shown - mismatch to my design - would be better without an outline)
Yes, it's due by the link on the thumbnail. Look in your style.css to change this
Title: Re: Update History
Post by: Hein Traag on April 16, 2007, 09:14:03 am
Just as a precausion i emptied the table and then installed the new version 2.0.1
I do not get that thumbnail displayed in front of the line which displays how many pictures have been updated where.

And, small detail, shouldn't the plugin be named "Update History v2.0.1" in plugin manager ?
Title: Re: Update History
Post by: AlexL on April 16, 2007, 11:07:51 am
Quote
I do not get that thumbnail displayed in front of the line which displays how many pictures have been updated where.
In the mode updates from last 5 days you cannot see this - it's only (at this time) for mode last 20 files - and then you see the thumb for every file
Title: Re: Update History
Post by: Hein Traag on April 16, 2007, 01:01:22 pm
 ;) Thanks Alex. I get it now. Working as promised now. Stil would be nice if we could get this to display the last upload image for a album.
Title: Re: Update History
Post by: AlexL on April 16, 2007, 02:14:41 pm
I think it's better to take the user chosen album-thumb - not the real last uploaded pict - because the last uploaded file per album is to much randomly in my eyes
Title: Re: Update History
Post by: Hein Traag on April 16, 2007, 02:44:04 pm
You got a point there.. for large cpg's a static thumb might be better.
Title: Re: Update History
Post by: François Keller on April 16, 2007, 06:01:55 pm
Quote
And, small detail, shouldn't the plugin be named "Update History v2.0.1" in plugin manager ?
as the plugin is still in version beta, I did'nt want to change the version number.
Quote
I think it's better to take the user chosen album-thumb
Ok, ok, i'll see if i can do this  ;)
Title: Re: Update History
Post by: AlexL on April 16, 2007, 09:00:51 pm
Quote
Ok, ok, i'll see if i can do this
Davaitje boschalista :D ;D :D
Which a luck that you can only understand French and English, but not a germanized Russian  :P
Title: Re: Update History
Post by: JohannM on April 16, 2007, 09:31:34 pm
You are a star !!!

Thanx, it works fine now !!!
Title: Re: Update History
Post by: Hein Traag on April 18, 2007, 08:58:09 am
Frantz,

is it possible to have updatehistory display the newly added stuff like this:
Apr 17, 2007: 1363 new files added to the album <album name> in category <category name>

Is that possible (or already possible but i am missing something) ?  ;D
Title: Re: Update History
Post by: AlexL on April 18, 2007, 09:50:28 am
Quote
in category <category name>
Not possible at this time - but nice if in V 2.0.2 ;)
it's from my order list  ;D for V2 - look here
Quote
2nd The line:
Date: new Files added to album ... from ...
This line I need in an other modus
Date: new Files added to categorie,subcategorie,subcategorie,album.
I need this because the album-name in my Galerie is not meaningfully it's only the date and place - the band-name is in the categorie.

@Hein
Quote
1363 new files added to the album
too much files for batch add - your server is going to sleep then ;D :D ;D
Title: Re: Update History
Post by: Hein Traag on April 18, 2007, 10:06:47 am
 ;D I know.. Batch Add can't handle that. Luckily CPGMassImport can do that easily.

Sorry i did not read your post more thoroughly.
Title: Re: Update History
Post by: AlexL on April 18, 2007, 11:34:38 am
No Sorry needed - if more users ask for it, it's increases the chance that V2.0.2 can do this. :)
Title: Re: Update History
Post by: François Keller on April 18, 2007, 06:29:02 pm
No Sorry needed - if more users ask for it, it's increases the chance that V2.0.2 can do this. :)
  :D :D :D:D with so many requests, I believe that I will ask to make me pay  :D :D :D :D
Title: Re: Update History
Post by: capecodgal on July 07, 2007, 09:54:36 pm
Just wanted to say I LOVE this mod  ;D Finally Got it updated to v2 and loving it even more.

I would also like to see the ability to add the category name or have the option to use just a category or just an album or both if desired.

The thumbnail option was nice but not quite what I was looking for.... I was hoping it would be more like the thumbnail on the album and display per album not per file. But thats ok I can live without the thumbnails as I am sure that would be rather difficult.

Defiantely looking forward to version 2.2
Title: Re: Update History
Post by: AlexL on July 31, 2007, 11:14:21 am
Hello Frantz

on testing your Backup Plugin V2.2 I found back the errors from Update History
As a remember for you - PlugIns installed after the UpdateHistory are not shown at upper PlugInsManager?
To correct this it's needed to uninstall the UpdateHistory and reinstall it as last PlugIn.
But then you got the other Problem.
During uninstall the PlugIn asks for deleting the table - and I take yes to delete this - but the Table wasn't deleteed after Uninstall and this block the reinstall
I must take the phpmyadmin to delete the table - and then the Reinstall is ok.

If you find time for this - it would be nice if you can correct this two things

Thanks AlexL
Title: Re: Update History
Post by: François Keller on July 31, 2007, 11:40:31 am
Quote
on testing your Backup Plugin V2.2 I found back the errors from Update History
Yes i know
Quote
If you find time for this - it would be nice if you can correct this two things
on this moment, i did'nt find what the cause for this two errors, but it's on my todo list  ;)
Title: Re: Update History
Post by: Nibbler on July 31, 2007, 11:48:06 am
Table names are case sensitive on linux. You create the table as update_history_config but drop it as UPDATE_HISTORY_CONFIG.
Title: Re: Update History
Post by: François Keller on July 31, 2007, 11:58:22 am
Hey Nibbler

Thank's for pointing this. I'll correct the plugin code asp and test it.  ;)
Title: Re: Update History
Post by: AlexL on July 31, 2007, 01:49:57 pm
Thanks Nibbler for your contribution!
But I must split the error in this case - Error 1 - you have the solution is the uninstall drops fails,
but why the reinstall fails? Why don't the install procedure work? Got this create table an error if table already exists?
Why don't this procedure tolerate this? I think the solution is to check if exist the table in the install procedure and to empty it or better to delete it - because of different fields on diferent versions of update history
Title: Re: Update History
Post by: Nibbler on July 31, 2007, 01:59:12 pm
The table creation is fine, it uses CREATE TABLE IF NOT EXISTS. The INSERTs from basic.sql will fail however because the table is already populated. Use INSERT IGNORE to avoid this.
Title: Re: Update History
Post by: AlexL on August 07, 2007, 08:50:31 am
The Update History shows on my website the history from last 200 days = 23 rows
If I take only the last 4 days = 2 rows - it's ok
But It shows
Quote
06 August 2007 : 32 Neue Dateien hinzugefügt zum Album 3.12.2006 Zwickau
06 August 2007 : 52 Neue Dateien hinzugefügt zum Album 3.12.2006 Zwickau
That's not correct - all 23 rows show the date 06 August 2007.

Weirdly because I know that this was shown correct different days in the past.

The things I have changed: I tested the Backup PlugIn V2.2 - for this reason I've deinstalled and reinstalled the Update History repeatedly (with deleting db-table per phpmyadmin) and also used your KeywordsAdd PlugIn. And I've updated to Coppermine 1.4.12 on 1.8.2007

The first I've see this error is after Update to 1.4.12, but I've think then it's from Update - because the Update.php has write to db. Therefore I think all dates was reseted to 1.8.2007 - but yesterday I upload new photos and after this the all date is 6.8.2007 - but I don't touch the other photos at this day.

Maybe the db fields changed between 1.4.10 and 1.4.12?
But the selection 4 or 200 days works correctly only the date that's displays is wrong.
Title: Re: Update History
Post by: AlexL on August 07, 2007, 10:41:30 pm
For everybody who has the same problem with deinstall and install without drop the correct table - please feel free to use my corrected codebase.php - all thanks for the tip to Nibbler

it's not the solution for the other little errors

at the thread from CAPTCHA PlugIn I read about an update to 1.8 - at the change list:
Quote
fixes:
=====
- Compatible with 1.4.12's new plugin api


Maybe your PlugIns need an update to? Maybe this is the reason for my new error with the Update-history-PlugIn date that's wrong shown?
Title: Re: Update History
Post by: François Keller on August 08, 2007, 07:36:49 am
Quote
Maybe your PlugIns need an update to? Maybe this is the reason for my new error with the Update-history-PlugIn date that's wrong shown?
Possible, but on this moment, i don't know what to update. I must look the difference between two versions of the captcha plugin...
Title: Re: Update History
Post by: AlexL on August 08, 2007, 09:02:14 am
Maybe you ask Sami or another from the devs
Title: Re: Update History
Post by: Sami on August 08, 2007, 10:50:18 am
@Frantz : There was a plugin API change/fix for CPG 1.4.12 , I'm not sure if it's applied to your plugin or not
BTW the fix is, $thisplugin is always copied by reference from now on

also I'm not sure if you could see this thread (dev only board) but it's the one that describe the fix by Donnoman
http://forum.coppermine-gallery.net/index.php?topic=40215.0

I'll check your codebase.php when ever I could ;)
Title: Re: Update History
Post by: Joachim Müller on August 08, 2007, 01:51:01 pm
As Sami suggested, the thread is dev-only. I'm quoting the relevant posting here FYI:
I Fixed (I hope) a situation in the plugin api that caused bizarre plugin behavior when plugins called underlying plugin api hooks.

Typical results were some plugins running multiple times per hook call, and some not running at all.

Changing the ordering of the plugins could alleviate the problem.

The two plugins that I definately found a problem with is minicms and cpgmark.

If cpgmark was second in the list, minicms content began being added twice, and some cpgmark actions weren't being run.

When I reversed the order minicms stopped duplicating its output, though cpgmark still didn't seem to operate completely.

I tracked it down to a situation where cpgmark was causing hooks to be executed while it's own code was executing. Thus $thisplugin was being moved around under it's nose.

The crux of the problem I found is this (summarized):

Code: [Select]
                // Reference current plugin to local scope
                $thisplugin = $CPG_PLUGINS[$plugin_id];  //PHP4 makes a copy, PHP5 would make a reference.

                if (function_exists($plugin_function)) {
                    // Pass the value to the filter's function and get a value back
                    $value = call_user_func($plugin_function,$value);

                    // if the user function calls a plugin api hook $thisplugin becomes inconsistent

                    // Copy back to global scope
                    $CPG_PLUGINS[$plugin_id] = $thisplugin;  //copying this inconsistent $thisplugin is whats creating the problem.
                }


To fix the issue I removed the copy back to the global scope and made sure $thisplugin is always copied by reference.

It fixed the issue and I haven't seen any negative effects. The fix has been committed to stable and devel.
Title: Re: Update History
Post by: lamama on August 19, 2007, 06:44:19 pm
Ehm, maybe I've overread something, but is it possible to show the history list on the start page only?

Title: Re: Update History
Post by: Fizzolo on August 23, 2007, 03:57:37 pm
The Update History shows on my website the history from last 200 days = 23 rows
If I take only the last 4 days = 2 rows - it's ok
But It shows That's not correct - all 23 rows show the date 06 August 2007.

Weirdly because I know that this was shown correct different days in the past.

The things I have changed: I tested the Backup PlugIn V2.2 - for this reason I've deinstalled and reinstalled the Update History repeatedly (with deleting db-table per phpmyadmin) and also used your KeywordsAdd PlugIn. And I've updated to Coppermine 1.4.12 on 1.8.2007

The first I've see this error is after Update to 1.4.12, but I've think then it's from Update - because the Update.php has write to db. Therefore I think all dates was reseted to 1.8.2007 - but yesterday I upload new photos and after this the all date is 6.8.2007 - but I don't touch the other photos at this day.

Maybe the db fields changed between 1.4.10 and 1.4.12?
But the selection 4 or 200 days works correctly only the date that's displays is wrong.
Same problem..i think about the 1.4.12 update.
But with another bug. Not only the date is always the same, but the link at the album is missing the number...
Like this: ".../thumbnails.php?album=". The album names are ok, only the links are wrong.
WHILE the first album, inserted today at the date displayed, have the correct link!
I think the two bugs are connected: resolving the first one, automatically the second too.
Any ideas for this great plugin??
I tried to fix modifying plugin_api.php from
Code: [Select]
// Copy back to global scope
//$CPG_PLUGINS[$plugin_id] = $thisplugin;
to
Code: [Select]
// Copy back to global scope
$CPG_PLUGINS[$plugin_id] = $thisplugin;
as Sami quoted.
But no changes at all  :(
Title: Re: Update History
Post by: AlexL on August 29, 2007, 11:16:57 am
In the codebase.php I have found the $date calculation with the $i I can go through the array and found 28.8.2007 and as the next 24.8.2007 - this was the correct days of upload
but I don't understand how the $i is used to increment the output - I hope another has more understanding for this code ...

Code: [Select]
$day = localised_date($row['ctime'],$plugin_update_history_date_fmt);
//$day = ($day, $lastup_date_fmt);
$counter[$day][$row[album_title]] += 1;
$info[$day][$row[album_title]] = $row;
$users[$day][$row[album_title]][] = $row['owner'];
}
$end = $start;
}

$i = 0;
$test = array_keys($counter);

foreach ($counter as $day) {
foreach ($day as $album => $number) {
$date = $test[$i];
$album_info = $info[$date][$album];
if ($number == 1) {
                echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['new']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>";
} else {
                echo '<tr><td class="tableb">' .$date. ": $number". $lang_plugin_update_history['news']."<a href=\"thumbnails.php?album={$album_info['aid']}\">$album</a>" ;
}
$links = array();

foreach ($users[$date][$album] as $u) {
if ($uploader_name==1){ //show the uploader name if $uploader_name set to 1
if ($u > 0) $links[] = $lang_plugin_update_history['by']."<a href=\"profile.php?uid=$u\">". get_username($u) ."</a>";
}
}
}
$out = array_unique($links);
echo implode(', ',$out);
echo "</td></tr>";
}
$i++;
}else{
//otheerway Show n last uploaded files according settings
Title: Re: Update History
Post by: AlexL on September 14, 2007, 09:30:13 am
I dont want to disturb, but with this error (all upload days shows the same day) I find this plugIn is not more useful. Has nobody an idea?
If a coder need me as tester - feel free to PM me.
Title: Re: Update History
Post by: François Keller on September 16, 2007, 11:06:05 am
@AlexL
I've looking in the code (after replicating the problem on my local install). I d'ont see why it happends.
Oddly, the dates are correct while using the archive option  :-\
I'll continue to search a solution (but that does not seem to be in bond with the changes of version)...
Title: Re: Update History
Post by: AlexL on September 18, 2007, 08:19:21 am
Quote
to be in bond with the changes of version
Have you tested with a clean 1.4.10 and a clean 1.4.12?
The update are the one I have made on 1.8.2007 - before all displays from UpdateHistory are ok - after it the problem occur. I don't change the UpdateHistoryVersion at this time.

from changelog 1.4.10-1.4.12
Quote
2007-01-14 [Bugfix] Fixed situation in plugin api that caused bizarre plugin behavior when plugins called underlying plugin api hooks {Donnoman}
2006-11-12 [Bugfix] Fixed plugin api sleep and wake actions to be scoped correctly. {Donnoman}
Maybe Donnoman has an idea...?
Title: Re: Update History
Post by: François Keller on September 18, 2007, 08:57:45 am
Quote
Have you tested with a clean 1.4.10 and a clean 1.4.12?
No, only with 1.4.12
Title: Re: Update History
Post by: dke on November 24, 2007, 12:54:09 am
i have a bug to report:

everything seems to be working just fine on my 1.4.14 gallery, however only the LATEST update "hotlink" does work.

Lets say for instance i add files to album "landscapes" the history will update that ive added picture to "landscapes" and create a link to that album. Then i add pictures to "Flowers" the script does the same thing by adding the line that i added pictures to "flowers" now however the link to "landscapes" is faulty.

The only thing that's different in the link is that the album number of the second and beyond history link is removed, just like this:

http://mygallery.com/thumbnails?=124       <-- correct link
http://mygallery.com/thumbnails?=           <-- all other links past the latest one.

I love this mod but could anyone help me solve this issue please? Link to gallery if requested, its nsfw..

EDIT:

This issue was only with the beta 2.0.1 version, the older versions i didn't get any trouble with! Awesome mod guys! :)
Title: Re: Update History
Post by: dolomites on November 27, 2007, 10:31:46 pm
Hello,

I'd like to view the updates table on  an external php page, only the table without gallery; how can I do?
Thank'you!
Title: Re: Update History
Post by: AlexL on December 22, 2007, 02:00:01 pm
Quote
have a bug to report:

everything seems to be working just fine on my 1.4.14 gallery, however only the LATEST update "hotlink" does work.
The same problem on my site (it is still 1.4.12 - I have to update I know - but no time at this time :'()
Title: Re: Update History
Post by: dke on December 25, 2007, 09:49:10 pm
This is a good plugin, however if you have a large gallery with many pictures it is NOT recommended, your load times will be high and your cpu load will peak!
Title: Re: Update History
Post by: Nibbler on February 07, 2008, 02:12:54 pm
This plugin has a bug which interferes with the plugin API code (see http://forum.coppermine-gallery.net/index.php?topic=36319.msg242274#msg242274). This line at the end of codebase.php should be just inside the last function, but it is actually just outside it.

Code: [Select]
mysql_free_result($result);

Should be moved or removed in the next version of the plugin.
Title: Re: Update History
Post by: Megachip on April 01, 2010, 04:43:24 pm
Code: [Select]
mysql_free_result($result);
Still not fixed...

Other Problem:

While uninstall without removing table from db... reinstall not possible
Title: Re: Update History
Post by: Megachip on April 01, 2010, 06:12:50 pm
- Fixed http://forum.coppermine-gallery.net/index.php/topic,38148.msg242287.html#msg242287
- Fixed http://forum.coppermine-gallery.net/index.php/topic,38148.msg223505.html#msg223505
- Added support for Categories (Only updates of the actual cat are shown)

P.S. Code is untested, so it is possible that i forgot a braked or something.