TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7 TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7
 

News:

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

Main Menu

TEST WANTED: cpm_viewLastUpdatedAlbumsFrom in 1.9.7

Started by vuud, January 14, 2007, 06:57:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

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.





Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tyio

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');

vuud

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

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tyio

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/