sigzag Posted August 7, 2004 Posted August 7, 2004 I have added my own infobox for links to articles in PDF format. I have one link entered but cannot figure out how to add a second or third link in the PHP coding. A snippet is included below with the coding...so what coding should be added to make another link just below this one in the infobox. <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="images/articles/newsjuly03.pdf" target="_blank">NOW Newsletter</a>'); new infoBox($info_box_contents); ?> Thanks for any info.
Guest Posted August 7, 2004 Posted August 7, 2004 Current Code: Backup...Backup...Backup <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="images/articles/newsjuly03.pdf" target="_blank">NOW Newsletter</a>'); new infoBox($info_box_contents); ?> Change to: <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="images/articles/newsjuly03.pdf" target="_blank">NOW Newsletter</a><br>' . '<a href="images/articles/newsaug03.pdf" target="_blank">WOW Newsletter</a>'); new infoBox($info_box_contents); ?> Hope this helps.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.