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: changing no of columns  (Read 3791 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.018 seconds with 19 queries.