Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add This Contribution 6884


Recommended Posts

hi,

 

I would like to install the Add This Contribution 6884

 

to the bottom of the Tell A Friend Box which is in my right column.

 

I have attempted a few times and it just ends up as text at the top of the right column and I dont know enough where to add it.

 

According to the contribution I need to add

/*BOF Add This Contribution*/
include (DIR_WS_MODULES . FILENAME_ADD_THIS);
/*EOF Add This Contribution*/

 

I would like to add this to the bottom of my Tell A Friend Box - this is my existing tell_a_friend.php code :

 

<?php
/*
 $Id: tell_a_friend.php,v 1.16 2003/06/10 18:26:33 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- tell_a_friend //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);

 new infoBoxHeading($info_box_contents, false, false, false, $column_location);

 $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="10"') . ' ' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);

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

 

If someone could advise how I would be able to add this code, or if perhaps it is not possible - would really appreciate it.

Link to comment
Share on other sites

I have changed my mind - I would like to add the Add This button to column right and have it sit at the bottom right after the info boxes.

 

I have been able to get the button appear but only at the top of the column and I fear that I havent done it correctly.

 

If someone could please help and advise me on where in the code in column right would be the correct place to add this button and code and any code I need to make this addition correctly. (so I dont break something else)

Edited by sheepiedog
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...