Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to display Text - Categories and albums  (Read 4894 times)

0 Members and 1 Guest are viewing this topic.

freeedy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
How to display Text - Categories and albums
« on: August 14, 2007, 07:20:48 pm »

Hi everyone, I hear that this mod can display the actual text of the categories and albums, I am currently using it to display the last added media. I really think its great, although I dont know anything about php I will like for help to display the categories and albums too.

And if you have any other tip, or any other arrangemente thats looks cool please let me know.
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: How to display Text - Categories and albums
« Reply #1 on: August 14, 2007, 07:26:56 pm »

I added views and albums to mine so far

example:

www.julianmcmahonfan.com

(the side column for most viewed and all that)


You want it to be like this:

Code: [Select]
<?php 
include_once "./allery/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./gallery/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank'); 
$options = array("subtitle" => "<center> {{cName}}:  {{aTitle}}</center>", ); 
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
$objCpm->cpm_close(); 
?>
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: How to display Text - Categories and albums
« Reply #2 on: August 14, 2007, 07:30:20 pm »

Correction to the above post (can't seem to ind an edit button)

Code: [Select]
<?php 
include_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./gallery/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank'); 
$options = array("subtitle" => "<center> {{cName}}:  {{aTitle}}</center>", ); 
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
$objCpm->cpm_close(); 
?>

Logged

freeedy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: How to display Text - Categories and albums
« Reply #3 on: August 14, 2007, 09:26:41 pm »

Great site dude, you just gave me a great idea for the design of my page, thank you very much.

Just one more question, in the left part of your site you have different sections, last upload, mos viewed. Well, I want to know how did you called for several bunch of photos?? Did you use several include cpmfetch codes??
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: How to display Text - Categories and albums
« Reply #4 on: August 14, 2007, 09:43:59 pm »

yes if you go check the docs there are many functions you can call like most viewed FROM (you pick the source) and Random FROM (again you decide the source) and so on- here use this list it helped me a lot:

http://cpmfetch.fistfullofcode.com/features/index.php


then go to the user guide and read up on the $options array you can do ALOT with this one mod - it is amazing but there is so much that its hard to get it all at once. Alot of it is trial and error until you get the right combo to work for what you want it to do
Logged

freeedy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: How to display Text - Categories and albums
« Reply #5 on: August 14, 2007, 10:01:42 pm »

Really thank you for your help, I think I am close to get what I was looking for.
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: How to display Text - Categories and albums
« Reply #6 on: August 15, 2007, 01:11:13 am »

your welcome  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.