i made a theme based upon adaptivetheme, implemented as subtheme. i tried 6.1 (with injection of described code into template.php) and 6.1-dev, clean-installs every time. ads not showing up, because admanager-javascript is nowhere to find in resulting sourcecode of the page...

installation of 6.1 (with code-injection) on another site (no subtheme) works as expected (ads showing up, javascript is visible in sourcecode of page).

is it possible that there is an issue with sub-themes? - if, is there a workaround?

CommentFileSizeAuthor
#6 themes.zip26.59 KBjoeshock

Comments

jcisio’s picture

Subtheme is not a problem in general. Check if there is print $scripts; in the theme?

frank pfabigan’s picture

yes, this line "print $scripts" is there and works. other javascripts are included and show up in the source code.
i didn't mention it, but of course i flushed caches everytime.

i still haven't found out why google-ad-manager doesn't work on this specific site. meanwhile i added the gam-code manually. as we are rolling out a content-ad-network for approx. 100 websites, i will try to solve it with google-ad-manager module and will report back if i have news under which circumstances it doesn't work...

jcisio’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Have you found anything new?

joeshock’s picture

I'm having the same issue. Using a subtheme, my issue is that the instructions say to place specific code in template.php, however with my subtheme I have multiple themes enabled and working from eachother and there is a template.php file in each theme folder. I tried placing the code in each of these individually and no dice. The error I get when I view the Firebug Error Console is:
Error: GA_googleFillSlot is not defined

Basically somewhere the call to add the JavaScript to the scripts variable in the page is not happening. Checked all of my page.tpl.php's and the scripts variable is definitely being output.

I'm beginning to think I might have to hard-code this into the page template maybe if it works. I would rather not have to though.

-joeshock

jcisio’s picture

Title: ad-blocks not showing... (subtheme issue?) » Google Admanager script is not inserted with certain subtheme
Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Postponed (maintainer needs more info) » Active

Move to the latest 6.x branch. And this issue only is related to a few subthemes.

Since the version coming december 2009 you don't have to add any code into your template. I think your theme filters or overrides the "scripts" variable.

May I have a copy of your theme? Maybe only two files template.php and page.tpl.php is enough.

joeshock’s picture

Version: 6.x-2.x-dev » 6.x-1.0
StatusFileSize
new26.59 KB

I'll get you some info ASAP. Thanks for the quick response jcisio.
Just a quick note and I apologize for not having this correct before.

The version of the module I have is 6.x-1.0 not the dev version. Zip file attached with original template structure and requested files. My active theme is the one labeled _custom per the subtheming instructions provided with this template. Here is the theme I'm using. http://www.facesinthenews.com built by http://www.cmsquickstart.com

See attached. Thanks again.

-joeshock

jcisio’s picture

Version: 6.x-1.0 » 6.x-2.x-dev

The OP said about issue in dev version in May 2010, which doesn't need to manually insert code. What you are saying is a separate issue, I think you should open a new one. However, since the instruction for 1.0 is no longer valid for new version, no fix will happen in any new version.

I suggest you trying the new version in this mean time. I'll look at your theme, but only with 2.x (changes only happen in this branch).

jcisio’s picture

To clarify the question you asked in PM: the 2.x branch is considered stable, you should test it. Now there is no known critical issue, and I'm planning for an official 2.0 release soon (#870160: Planning for 2.0 update). That's why I asked you to try 2.x branch.

joeshock’s picture

Awesome! I will give it a go and let you know how it performs. Thanks again for all the quick feedback!

-joeshock

joeshock’s picture

Worked like a charm jcisio! Great feedback and results. Thanks again for the quick response. The 2.x branch is working great for me so far!

-joeshock

jcisio’s picture

Status: Active » Fixed

Glad to hear it.

Marking this as fixed then. Has seoscout or anyone this problem, feel free to reopen it.

Status: Fixed » Closed (fixed)

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