In the code:
echo "<CENTER>";
include_once ("./Gallery/cpmfetch/cpmfetch.php");
$objCpm = new cpm("./Gallery/cpmfetch/cpmfetch_config.php");
$options = array('align' => 'center', "subtitle" => 'album {{aAid}}' );
$objCpm-> cpm_viewMostVotedMediaFrom ("album=39,40,41,34,44,50", 1, 6, $options);
the output is:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg502.imageshack.us%2Fimg502%2F6384%2Faldc7.jpg&hash=8dd1b70d4dff930764ac82a9c9b5339d6147a145)
The point is that:
1. the line (40, 50, 41, 34, 41, 39) is not the one that I want (39, 40, 41, 34, 44, 50)
2. they appear two pictures from the album 41 and no one from the album 44
If i split the classes to 6 differents, like this:
$objCpm-> cpm_viewMostVotedMediaFrom ("album=39", 1, 1, $options),
...............................................................................................
$objCpm-> cpm_viewMostVotedMediaFrom ("album=40", 1, 1, $options);
etc
i will receive 6 diferrents rows, something that i don't want.
How can i write the code for 1 row, 6 differents categorys and one output of cpm_viewMostVotedMediaFrom from each one of them?
Also, can you tell me please, if theres is a format parameter for insert the number of comments in a picture, in a subtitle string?
I don't need the cpm_viewLastCommentedImages.
Thanks a lot.
Quote from: Nefeli on May 28, 2007, 06:32:20 PM
In the code:
echo "<CENTER>";
include_once ("./Gallery/cpmfetch/cpmfetch.php");
$objCpm = new cpm("./Gallery/cpmfetch/cpmfetch_config.php");
$options = array('align' => 'center', "subtitle" => 'album {{aAid}}' );
$objCpm-> cpm_viewMostVotedMediaFrom ("album=39,40,41,34,44,50", 1, 6, $options);
the output is:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg502.imageshack.us%2Fimg502%2F6384%2Faldc7.jpg&hash=8dd1b70d4dff930764ac82a9c9b5339d6147a145)
The point is that:
1. the line (40, 50, 41, 34, 41, 39) is not the one that I want (39, 40, 41, 34, 44, 50)
2. they appear two pictures from the album 41 and no one from the album 44
If i split the classes to 6 differents, like this:
$objCpm-> cpm_viewMostVotedMediaFrom ("album=39", 1, 1, $options),
...............................................................................................
$objCpm-> cpm_viewMostVotedMediaFrom ("album=40", 1, 1, $options);
etc
i will receive 6 diferrents rows, something that i don't want.
How can i write the code for 1 row, 6 differents categorys and one output of cpm_viewMostVotedMediaFrom from each one of them?
Also, can you tell me please, if theres is a format parameter for insert the number of comments in a picture, in a subtitle string?
I don't need the cpm_viewLastCommentedImages.
Thanks a lot.
There is no direct way to do what you want.
If I had to do it for myself, I would use the resultset return code to get back arrays instead of tables. Then make the call six times (once for each category), then either invoke the table constructor manually, or use PHP in my pages to make the table I want.
For the last question, I do not believe I put anything in to show a sum of comments.
Thanks for the answer vuud! :)
I will try and, if i have a good result, i will informe you!