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: changing no of columns  (Read 3908 times)

0 Members and 1 Guest are viewing this topic.

earpit

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
changing no of columns
« on: November 04, 2006, 10:02:31 am »

I use this to disply images on a html page(shtml) ,

i get table with just two columns, and many rows,
i want to increase the no of columns, how?
« Last Edit: November 06, 2006, 07:07:45 pm by vuud »
Logged

earpit

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: changing no of columns
« Reply #1 on: November 05, 2006, 10:50:04 am »

nothing?  ???

well please see:
http://www.dharmpal.com

there you will see the images are shown in 2X4 bolcks(table)

i want it in 5X4 blocks, ie. i want 5 columns instead of just 2 , how to do this?
Logged

strog

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: changing no of columns
« Reply #2 on: November 05, 2006, 11:33:25 am »

My friend,

Read the manual PLEASE.

It says explicitly in the quickstart guide what to include on your page to get desired results:

<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?> 

For example, go to your cftest page and locate the following line:

$objCpm->cpm_viewRandomMedia(2,3,$styleguide);

This line controls how many rows/columns you get on the cftest page.

Cheers
Strog
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.