Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Placing ads to left/right side of page


moses54

Recommended Posts

Hi,

This is all new to me. I've spent the last three days searching and reading trying to work out how to place ads etc to the left or right side of web page and wether it is placed through the cpanel or through admin and I'm no better off then when I first started looking. :blush: :'(

 

Could someone please give me some advise or point me in the right direction.

 

Greatly appreciated.

 

Tony

Link to comment
Share on other sites

How many and where exactly should the ads been placed? Do you want them to appear in the left and right column or to the left and right of them?

 

Hi,

Thanks for your reply.

I was looking at placing logo/s, banners, or links such as Google Adsense etc on the left side page sort off in the middle under my Category list and Paypal link.

 

I'm not too sure if this is right but do you go to your

Admin Panel then to Localization/Languages/English/ Click on details/ Click on Filemanager/ Click on Includes folder and then edit - Coilumn_left.php

 

But when I go there I'm unable to do anything and get an error message such as -

( Error: I can not write to this file. Please set the right user permissions on: /home2/Username/public_html//includes/column_left.php)????????????

 

Or

 

Do I go through

CPanel/File Manager/Public_html/includes/ and edit either column_left.php/column_right.php and then place the script in there??????????????????

 

As I said it's all new to me.

 

Tony

Link to comment
Share on other sites

The file manager that comes in Oscommerce is not recommended at all. It can mess up your code.

go through

CPanel/File Manager/Public_html/includes/ and edit either column_left.php/column_right.php and then place the script in there.

 

Be sure to code the script so they do not show on your SSL pages or you will get a 'secure/non secure' warning when viewing them.

 

Tim

Link to comment
Share on other sites

The file manager that comes in Oscommerce is not recommended at all. It can mess up your code.

go through

CPanel/File Manager/Public_html/includes/ and edit either column_left.php/column_right.php and then place the script in there.

 

Be sure to code the script so they do not show on your SSL pages or you will get a 'secure/non secure' warning when viewing them.

 

Tim

 

Hi Tim,

I'm not too sure what you mean about coding the script. Also what would I need to do if I wanted to display on a secured page.

 

I did try to copy and paste a script through cpanel but nothing happened. Listed below is what I have in my column_left.php. I also tried to remove the script potion of the file but nothing happened.

 

Thanks for your help

Tony

 

 

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

?>

 

<script type="text/javascript"><!--

google_ad_client = "pub-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _";

google_ad_width = 120;

google_ad_height = 240;

google_ad_format = "120x240_as";

google_ad_type = "text_image";

google_ad_channel = "";

google_color_border = ["FFFFFF","336699","000000","6699CC"];

google_color_bg = ["FFFFFF","FFFFFF","F0F0F0","003366"];

google_color_link = ["0000FF","0000FF","0000FF","FFFFFF"];

google_color_text = ["000000","000000","000000","AECCEB"];

google_color_url = ["008000","008000","008000","AECCEB"];

google_ui_features = "rc:0";

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...