Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stylesheet does work with Tell A Friend Box


Guest

Recommended Posts

I am not sure what happened, but my Tell A friend Box is not conforming to my stylesheet. I am guessing that there is an error in how the stylesheet is named for that box, however I am to new to the world of Osc to Understand where to change it without messing everything up. Can someone please take a look and help me out with this. Thank You!

 

includes/boxes/tellafriend.php

<!-- tell_a_friend //-->
	  <tr>
		<td>
<?php
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_TELL_A_FRIEND);

if(!$HTTP_GET_VARS['products_id'])
  {//ADDED AS PART OF TELL EVEN WITHOUT PRODUCT MOD.  MIGHT WANT TO ADD YOUR NAME WHERE 'us' IS.
  $tellFriendWhat = BOX_TELL_A_FRIEND_TEXT2; 
  $myProductId = false;
 }
 else
 {
  $tellFriendWhat = BOX_TELL_A_FRIEND_TEXT;
$myProductId = $HTTP_GET_VARS['products_id'];
 }

 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'),
						   'align' => 'center',
						   'text' => tep_draw_input_field('to_email_address', '', 'size="15"') . ' ' . '<br>' .tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $myProductId) . tep_hide_session_id() . '<br>' . $tellFriendWhat);

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- tell_a_friend_eof //-->

 

 

stylesheet.css

.TellAFriendBox {
 background: #433DBF;
}
TD.TellAFriendBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 background: #433DBF;
 color: #ffffff;
}
.TellAFriendBoxContents {
 background: #D2D0F0;
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...