coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: vuud on January 14, 2007, 06:57:25 AM

Title: TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7
Post by: vuud on January 14, 2007, 06:57:25 AM
If anyone is interested, please test the feature added to dev 1.9.7

$objCpm->cpm_viewLastUpdatedAlbumsFrom($source,$rows,$columns,$styleguide);

1.9.7 also fixes some other issues with pictures not ever being selected.  I have a feeling this problem has been haunting us for a long time and accounts for some strange issues.

Anyway, this new function will show you the last (row * col) count of albums that have been updated.  It will display the last photo added to it.

$source can be either  ""   or something like   "cat=7"

I've implemented it in test like so:

Quote<?php

$styleguide = array(
      "subtitle" => "{{aTitle}}",
      "imagesize" => 'thumb'
         );

$objCpm->cpm_viewLastUpdatedAlbumsFrom("",4,1,$styleguide);

?>


The SQL got a bit wierd on that one, but it looks okay here... if anyone can test and post if it worked or not (for you) I'd be greatful.

Vuud




The differences between 1.9.6 and 1.9.7 are:

* Bugfix:  A large number of % tags were fixed.

* Bugfix:  Problem that would eliminate anonymous (owner_id = 0) photos from selections

* Relinked User and Photo tables via LEFT JOIN

* Code Beautification: Captialized all SQL keywords in queries (AS, WHERE, FROM, Etc...)

* Mmmm...  cpm_viewLastUpdatedAlbumsFrom($source, $rows, $columns, $options="") - which may or may not work, depending... test before use.





Title: Re: TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7
Post by: tyio on January 14, 2007, 01:24:20 PM
hi ;)


i'm testing it, just a little problem that is doesn't matter the styleguide option :)


http://tyio.3dvf.net/index.php

see on the side, i can't use this command :

$styleguide = array( 'imageheight' => '100', 'imagewidth' => '200');
Title: Re: TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7
Post by: vuud on January 14, 2007, 03:15:19 PM
Quote from: tyio on January 14, 2007, 01:24:20 PM
hi ;)


i'm testing it, just a little problem that is doesn't matter the styleguide option :)


http://tyio.3dvf.net/index.php

see on the side, i can't use this command :

$styleguide = array( 'imageheight' => '100', 'imagewidth' => '200');


What you did just sets the variable $styleguide.  Its like writing a letter to someone, but never mailing it.

See my example from above below:


$styleguide = array( 'imageheight' => '100', 'imagewidth' => '200'); // this was your line
$objCpm->cpm_viewLastUpdatedAlbumsFrom("",4,1,$styleguide);


or

$objCpm->cpm_viewLastUpdatedAlbumsFrom("",4,1,array( 'imageheight' => '100', 'imagewidth' => '200'));

I prefer the former, but its personal preference

Title: Re: TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7
Post by: tyio on January 14, 2007, 05:47:37 PM
Yop ;)


when i post the $styleguide code, of course, i use it in the option ;)





now, i sucess but a lot of work for me who don't really know php ^^

http://tyio.3dvf.net/