Passing a <hr> as an array variable? Passing a <hr> as an array variable?
 

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]

Main Menu

Passing a <hr> as an array variable?

Started by joeyhavlock, July 21, 2007, 12:28:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

joeyhavlock

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

Joachim Müller


joeyhavlock

#2
Hey, I got this one to work finally with no problem, here's my code;

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


Joachim Müller

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