Hi,

I looked into source, and section targeting is not working as it should.

<div class="content clear-block"><!-- google_ad_section_start --><!-- google_ad_section_end --><p><strong>Jeśli chciałbyś pisać teksty, kt&oacute;re będą publikowane w popularnym serwisie internetowym, jeśli robisz zdjęcia i chciąłbyś je komuś pokazać, jeśli chciałbyś zajmować się portalem internetowym &quot;od kuchni&quot;, to mamy dla Ciebie świetną propozycję.</strong></p>

as you can see, it's opening, and it's closing. This is actually node teaser, but source was grabbed from full opened node.

Comments

hexen’s picture

Ah, I forgot: you can check it here: http://studentcafe.pl

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for the info. Indeed I can confirm that this happens in your site. It's OK in mine..

So my question is: how did you make your content have a weight > 5? Usually the main content area has a weight of 0, and this works fine.

The code that places those tags at the start and end of the content is at http://drupalcode.org/project/adsense.git/blob/refs/heads/6.x-1.x:/adsen... .

hexen’s picture

What do you mean by "weight 5"?

StuartDH’s picture

Status: Active » Postponed (maintainer needs more info)

I had a similar issue using panels, but creating a custom content pane with Full_HTML filter and content of

<!-- google_ad_section_start -->

then another pane with

<!-- google_ad_section_end -->

then place the panes in panels before and after the content that needs to be targeted. This makes it easy to create multiple areas in the panel to be targeted - body, a list of taxonomy terms, location data etc

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active

@hexen: the only way that the content is coming out like that is if your content "block" has a modified weight (usually it's 0).

@StuartDH.. I can't understand your comment, please make sure to place any code inside <code> tags.

StuartDH’s picture

Thanks, I've edited my last post to show the code in code tags

hexen’s picture

Status: Postponed (maintainer needs more info) » Active

I don't know how to change weight of content, there is no such block in "Blocks" admin panel

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

@hexen: best disable the section targetting then.. Are you using a custom theme, or did you donwload it from somewhere?

hexen’s picture

It's "Analitic" from drupal.org, but much modified by me.

jcnventura’s picture

It's not the 'Analytic' theme as I just tried it, and it works fine. It must be something else in your system..

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active

@StuartDH: Thanks for the tip.. I think a possibility would be to add a couple of blocks that can be used by the user to signal the start and end of targeted content.. Those blocks would only be active if the current section targetting setting is disabled.

hexen’s picture

I don't have any idea what's wrong. Theme is okay, other modules are okay too.

jcnventura’s picture

@hexen: Can you tell me the result of the following query in your system:

SELECT * FROM `block` WHERE `module` LIKE 'system' AND `delta` LIKE 'main'

Specifically the 'weight' value for the record for your current theme...

jcnventura’s picture

@hexen: forget my previous comment... That's only valid for Drupal 7.. In Drupal 6 there's no 'main' block

jcnventura’s picture

Status: Active » Fixed

I've just committed a possible fix for this to git... Wait a few hours and try the next dev version, please..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.