Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Cutomize LAST UPDATED ALBUMS  (Read 8164 times)

0 Members and 1 Guest are viewing this topic.

PvtPulse

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Cutomize LAST UPDATED ALBUMS
« 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/
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Cutomize LAST UPDATED ALBUMS
« Reply #1 on: February 28, 2007, 06:04:24 pm »

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/

You want to use "subtitles".  Look in the documentation for further instructions.


Logged
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

PvtPulse

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Cutomize LAST UPDATED ALBUMS
« Reply #2 on: February 28, 2007, 07:28:54 pm »

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();
?>
Logged

PvtPulse

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Cutomize LAST UPDATED ALBUMS
« Reply #3 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Cutomize LAST UPDATED ALBUMS
« Reply #4 on: February 28, 2007, 08:21:27 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

Logged
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

PvtPulse

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Cutomize LAST UPDATED ALBUMS
« Reply #5 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Cutomize LAST UPDATED ALBUMS
« Reply #6 on: February 28, 2007, 08:41:44 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



Logged
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

PvtPulse

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Cutomize LAST UPDATED ALBUMS
« Reply #7 on: February 28, 2007, 09:02:44 pm »

I used:
Code: [Select]
<?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
Logged

PvtPulse

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Cutomize LAST UPDATED ALBUMS
« Reply #8 on: February 28, 2007, 09:48:04 pm »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Cutomize LAST UPDATED ALBUMS
« Reply #9 on: February 28, 2007, 10:46:00 pm »

I used:
Code: [Select]
<?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:

Code: [Select]
$objCpm = new cpm('/gallery');
the '/gallery' will be different depending on your installation.

Code: [Select]
$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);
This line, they syntax is wrong:  Should be

Code: [Select]
$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...
Logged
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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.