Loaded Commerce Community

Banner


Board index » Web Design and Development » Designers Workshop

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Image in information info box
PostPosted: Mon Dec 22, 2008 7:20 pm 
Offline
CRE Talented
User avatar

Joined: Wed Jun 07, 2006 12:00 am
Posts: 537
Location: Springfield, MO
What is the correct way to put an image in the information info box? I would like to put a small image next to the contact us site map area of the pic below.

Image

I'm guessing that I would put it in the templates\mytemplate\boxes\information_table.php somewhere in this area of that file:

Code:
<?php
require(DIR_WS_LANGUAGES . $language . '/informationbox.php');

  $info_box_contents = array();
    $info_box_contents[] = array('text'  => BOX_HEADING_INFORMATION_TABLE);
  new infoBoxHeading($info_box_contents, false, false, false);

  // Retrieve information from Info table
   $informationString = "";

// joles
   $sql_query = tep_db_query("SELECT information_id, languages_id, info_title FROM " . TABLE_INFORMATION . " WHERE visible= '1' and languages_id ='" . (int)$languages_id . "' ORDER BY v_order");
   while ($row = tep_db_fetch_array($sql_query)){
   $informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION,  'info_id=' . $row['information_id'] ) . '">' . $row['info_title'] . '</a><br>';
   }

   $info_box_contents = array();

if (tep_session_is_registered('customer_id')) {
   $info_box_contents[] = array('text' =>  $informationString .
                                          '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a><br>' .
                                          '<a href="' . tep_href_link(FILENAME_SITEMAP) . '"> ' . BOX_INFORMATION_SITEMAP . '</a><br>' . 
                     //Commented out Links'<a href="' . tep_href_link(FILENAME_LINKS) . '"> ' . BOX_INFORMATION_LINKS . '</a><br>' .
                                          '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>' [b]. '   <img border="0" src="'. DIR_WS_TEMPLATE_IMAGES . 'az_iformation_bg.gif">[/b]');

} else if ((tep_session_is_registered('customer_id')) && (MODULE_ORDER_TOTAL_GV_STATUS == 'true')) {
   $info_box_contents[] = array('text' =>  $informationString .
                                          '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a><br>' .
                                          '<a href="' . tep_href_link(FILENAME_SITEMAP) . '"> ' . BOX_INFORMATION_SITEMAP . '</a><br>' .
                     //Commented out Links'<a href="' . tep_href_link(FILENAME_LINKS) . '"> ' . BOX_INFORMATION_LINKS . '</a><br>' .
                                          '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>');
} else {
   $info_box_contents[] = array('text' =>  $informationString .
                                          '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a><br>' .
                                          '<a href="' . tep_href_link(FILENAME_SITEMAP) . '"> ' . BOX_INFORMATION_SITEMAP . '</a><br>' .
                     //Commented out Links'<a href="' . tep_href_link(FILENAME_LINKS) . '"> ' . BOX_INFORMATION_LINKS . '</a><br>' .
                                          '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>');
}

  new $infobox_template($info_box_contents, $column_location);
?>


I am unable to get the code correct.

_________________
Store Warrior!


Top
 Profile  
 
 Post subject: Re: Image in information info box
PostPosted: Fri Nov 12, 2010 3:50 am 
Offline
CRE Newbie

Joined: Fri Nov 12, 2010 3:47 am
Posts: 2
Hey guys, been working on this for hours and FINALLY got it. So basically you gotta introduce some info but the after all the crap its just some simple html, here it is:

<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => '<font color="' . $font_color . '">' . "Buy Now" . '</font>');
new infoBoxHeading_1($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
'text' => ' <a href="http://store.globalthegame.com/product_info.php?products_id=1">
<img src="images/button_create_account.gif" />
</a> ');
new infoBox_1($info_box_contents);

$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => tep_draw_separator('pixel_trans.gif', '100%', '1')
);

?>


Basically, your introducing the functions info_box_contents but within the ' and the ' is where the html comes in namely:

<a href="http://store.globalthegame.com/product_info.php?products_id=1">
<img src="images/button_create_account.gif" />
</a>

Hope this works for you guys!

Joey S.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Board index » Web Design and Development » Designers Workshop

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Thu May 24, 2012 6:29 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy