Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding extra link to infobox


sigzag

Recommended Posts

Posted

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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...