I would like to customize mine like they did on this gallery, with the picture, and information under it.
EXAMPLE:
http://www.hurricanegame.us/gallery/ (http://www.hurricanegame.us/gallery/)
Quote from: PvtPulse on February 28, 2007, 10:26:04 AM
I would like to customize mine like they did on this gallery, with the picture, and information under it.
EXAMPLE:
http://www.hurricanegame.us/gallery/ (http://www.hurricanegame.us/gallery/)
You want to use "subtitles". Look in the documentation for further instructions.
I'm new at this, so wat am i doing wrong, this is what i have:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
cpm_viewLastAddedMedia (1, 4, [array $options = array( 'subtitle' => '%a');
$objCpm->cpm_close();
?>
OK, I figured out what I was doing wrong. NOW I wanna know whats the code to get the latest "5" albums instead of the latest media
Quote from: PvtPulse on February 28, 2007, 07:53:52 PM
OK, I figured out what I was doing wrong. NOW I wanna know whats the code to get the latest "5" albums instead of the latest media
A simple thank you for showing you the documentation would suffice.
NOW I am gonna go make some lunch
I was going to say thank you, but i was waiting until after I finished the thread. Thats why I asked what I would use instead of ViewlatestAddedMedia in order to get albums instead of the files
Quote from: PvtPulse on February 28, 2007, 08:37:07 PM
I was going to say thank you, but i was waiting until after I finished the thread. Thats why I asked what I would use instead of ViewlatestAddedMedia in order to get albums instead of the files
Its the demanding sense of entitlement that gets people.
If your using the stable version its in the docs under gallery level images. If you are using the dev version search the releasenotes for cpm_viewLastUpdatedAlbumsFrom
I used:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$options = array( 'subtitle' => '%a');
$source = "";
$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);
$objCpm->cpm_close();
?>
and got this error:
Fatal error: Call to undefined function: cpm_viewlastupdatedalbumsfrom() in /home/cbrown/domains/chrisbrown-online.net/public_html/testpage.php on line 6
Can you please give me the full code of how to do this? I am trying everything I can think of and coming up with nothing. I don't see that code anywhere in the docs or release notes, and I've searched through every page.
Quote from: PvtPulse on February 28, 2007, 09:02:44 PM
I used:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$options = array( 'subtitle' => '%a');
$source = "";
$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);
$objCpm->cpm_close();
?>
and got this error:
Fatal error: Call to undefined function: cpm_viewlastupdatedalbumsfrom() in /home/cbrown/domains/chrisbrown-online.net/public_html/testpage.php on line 6
Seems like you are mixing the stable version and the development version. Like I mentioned before, if you are on the stable version, then you need to check the documentation.
Since its this confused at this point, upgrade cpmfetch to dev release 1.9.11. Follow the installation instructions in the releasenotes.
This line will need to change:
$objCpm = new cpm('/gallery');
the '/gallery' will be different depending on your installation.
$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);
This line, they syntax is wrong: Should be
$objCpm->cpm_viewLastUpdatedAlbumsFrom ($source,2,4,$options);
Quote* Mmmm... cpm_viewLastUpdatedAlbumsFrom($source, $rows, $columns, $options) - which may or may not work, depending... test before use.
Heh, does not sound like I was to sure of it there eh? Well the $source="" I definately tested...