Hi Webmama
I presume you are using an infobox called 'Resources' too. I've not had much time to look at it, but try using this as the complete code for your column_left.php script (remember to rename and save your original column_left.php for safekeeping!):
| Code: |
<?php
//catalog/includes/column_left.php
$boxes = array();
$boxes[] = DIR_WS_BOXES . 'categories.php';
$boxes[] = DIR_WS_BOXES . 'manufacturers.php';
$boxes[] = DIR_WS_BOXES . 'whats_new.php';
$boxes[] = DIR_WS_BOXES . 'search.php';
$boxes[] = DIR_WS_BOXES . 'resources.php';
$boxes[] = DIR_WS_BOXES . 'information.php';
include_once(DIR_WS_FUNCTIONS . 'adsense_cc.php');
$ads = get_adsense_info(ACC_LEFT_COLUMN);
$placements = getPlacements($ads);
$displayed_placements = array();
$placement_counter = 0;
$order_counter = 0;
for($i=0;$i < count($boxes);$i++) {
if(count($placements) > 0) {
if(($placements[$placement_counter] == $order_counter) && (!in_array($placements[$placement_counter],$displayed_placements))) {
create_ad($placements[$placement_counter], $ads);
$displayed_placements[] = $placements[$placement_counter];
if($placement_counter < (count($placements)- 1)) $placement_counter++;
}
}
if(($boxes[$i] == DIR_WS_BOXES . 'categories.php')||($boxes[$i] == DIR_WS_BOXES . 'manufacturers.php')) {
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
include($boxes[$i]);
}
} else {
require($boxes[$i]);
}
$order_counter++;
}
if(count($placements) > 0) {
while(!in_array($placements[$placement_counter],$displayed_placements)){
create_ad($placements[$placement_counter], $ads);
$displayed_placements[] = $placements[$placement_counter];
if($placement_counter < (count($placements)- 1)) $placement_counter++;
}
}
?>
|
I noticed form your code you wanted to check for SSL before displaying the Adsense ad unit. I haven't added this as a feature of ACC yet, but if you know which pages will run over SSL, you should avoid putting those script names in the 'Pages' field of your ad unit setup.
Regarding the Croatian translation, if you have created the proper languages/croatian/adsense_cc.php files and have included translations of ALL the definitions, then we would love to have a copy of them to add to the distribution. Thank you so much!!
Kind Regards
Hanuman