Open Source Services

Development Services and Products for Open Source e-Commerce Sites

 
Welcome, Guest
Please Login or Register.    Lost Password?
Log in to post your support questions and comments for this contribution.
Go to bottomPage: 1
TOPIC: Welcome
#22
Welcome 4 Years, 2 Months ago  
Hi there

If you have downloaded Adsense Control Center and have any comments or support questions, please feel free to start a new thread in this forum.

I regularly check the forum for messages so your query/suggestion should be answered pretty quickly.

You will have to create an account and log in (less than 5 minutes) to be able to post a message.

Thanks a lot and I hope you get the most out of Adsense Control Center!

Hanuman
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24
Re:Welcome 4 Years, 2 Months ago  
Hi, I've tried to instal it, but in left column instead of manufacturers I have 2x categories. What I should change?
Webmama
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Smib.net
The administrator has disabled public write access.
 
#26
need a but more info about your problem 4 Years, 2 Months ago  
Hi Webmama and thanks for your enquiry.

I haven't been able to replicate your problem on my version of osCommerce. I wonder if you are using a 'vanilla' installation of osC or if you are using a contribution such as Infobox Admin.

Either way, the best way I can help you is if you send me a copy of your catalog/includes/column_left.php file (attach it to your reply) so I can see exactly what the problem is.

Thanks a lot.

H.
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#28
Re:need a but more info about your problem 4 Years, 2 Months ago  
<?php
/*
$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

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

Copyright (c) 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');
if (ADSENSE_SHOW == 'true')
{ if ($request_type == NONSSL)
{ /* only show adsense in NON SSL else it causes warning */
include(DIR_WS_BOXES . 'resources.php');
}
}
require(DIR_WS_BOXES . 'information.php');
?>


Sorry Im not programmer, and my english is also not so good

but your script I like very much and it's work on right colunm in product details... as you can see here www.smib.net

Thanx
Webmama
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Smib.net
The administrator has disabled public write access.
 
#29
Re:need a but more info about your problem 4 Years, 2 Months ago  
Oh, yes, and I translated on Croatian if it is any help
Webmama
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Smib.net
The administrator has disabled public write access.
 
#30
Re:need a but more info about your problem 4 Years, 2 Months ago  
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
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#32
Re:need a but more info about your problem 4 Years, 2 Months ago  
Thanx I completely forgot, because this old one never worked
Webmama
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Smib.net
The administrator has disabled public write access.
 
Go to topPage: 1