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: Passing a <hr> as an array variable?  (Read 3759 times)

0 Members and 1 Guest are viewing this topic.

joeyhavlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Passing a <hr> as an array variable?
« on: July 21, 2007, 12:28:48 am »

Hi Folks,
Can someone tell me how to include a Horizontal Line <hr> html code in as part of my array, I have a vertical image listing and I want to have line after the last field in the display to separate the pics.

I thought it might be something like this, but it does not seem to work.

"hline" => "<hr>"

Thanks much!!
Joey
« Last Edit: July 24, 2007, 05:51:14 am by vuud »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Passing a <hr> as an array variable?
« Reply #1 on: July 23, 2007, 09:02:35 am »

Post the code you are using.
Logged

joeyhavlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Passing a <hr> as an array variable?
« Reply #2 on: July 23, 2007, 07:51:15 pm »

Hey, I got this one to work finally with no problem, here's my code;
Code: [Select]
  <?php
  
include_once "../../coppermine/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("../../coppermine/cpmfetch/cpmfetch_config.php"); 
  
$options = array("windowtarget" => "_top""Subtitle" => "Views: {{pHits}} Votes: {{pVotes}} <br><hr>""imagewidth" => "140""imagesize" => "large" );
  
$objCpm->cpm_viewRandomMediaFrom("cat=31,35,39,40,36,33,34,30,32",51$options);
  
$objCpm->cpm_close(); 
?>


This puts a space as well as a horizontal line between my vertical images and makes it much easier to tell what text (hits, votes) goes with each image.  Otherwise when you scroll down the list it becomes hard to tell whether the text above or below the images goes with it.

« Last Edit: July 25, 2007, 08:08:36 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Passing a <hr> as an array variable?
« Reply #3 on: July 25, 2007, 08:11:37 am »

Thank you for returning and posting your solution. Marking thread accordingly. I edited your above posting (using the [ c o d e ]-tag) to make it more readable.
Side-note: you should use <hr /> and <br /> instead of <hr> and <br> for reasons of validity.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.052 seconds with 19 queries.