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