Google ads and twitter

alt=
@emdiamond
8 years ago
104 posts
I just upgraded my system core and modules to the latest versions. All updated.
I am using the Elastic theme 1.4.0 for the main site.

I have code installed in the index.tpl for google adsense and a twitter feed.
It has been working fine for months up untill this update.

The google adsense banners and twitter feed stopped showing on my main page.
I cleared all cache several times.

Any ideas? Has the location for my code changed.
It used to be working in the /home/musicrus/musicrush.com/skins/jrElastic-release-1.4.0/index.tpl
updated by @emdiamond: 04/30/17 06:24:22PM
paul
@paul
8 years ago
4,326 posts
How did you modify your skin templates to include the adsense and twitter scripts? If you modified the Elastic skin templates directly the chances are they have been overwritten by the update. Template mods. should be done either in a 'cloned' skin or by using the ACP template editors.


--
Paul Asher - JR Developer and System Import Specialist
alt=
@emdiamond
8 years ago
104 posts
Yes, they were overwritten. However, I reinserted the code. It just won't show up anymore. I have been doing this for awhile. This is the first time the code stopped working. The only change was this last update. I also made sure the code was in all previous versions.

I have tried clearing the cache several times. The code is in the same place in the updated as well as all previous versions.

Even cleared cache manually on server.

It's kind of weird. Not sure if it's a caching issue, but the same code that it in the same location in the index.tpl file stopped working.
michael
@michael
8 years ago
7,714 posts
What paul is asking is the method you used to insert the code, there are a few ways to do it and which way you did it will help figure out the reason for it happening.

Code could be added:
* via the template editor
* via the file system
* via site builder

And if it disappeared the reason would be different for each.

--
Related docs:

Doc: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor

Doc: "Site Builder"
https://www.jamroom.net/the-jamroom-network/documentation/site-builder/3507/widget-template-code

Doc: "Ways to alter your templates"
https://www.jamroom.net/the-jamroom-network/documentation/skin-customization/839/creating-your-own-skin#ways-to-alter-your-templates
alt=
@emdiamond
8 years ago
104 posts
Mike, Thanks but I have inserted the code in all methods. That is, template editor, ftp, site builder. Still no show. Just plain strange.
michael
@michael
8 years ago
7,714 posts
Did you wrap it in {literal}{/literal}?

What are you seeing instead?

Does it come out in the source code of the page when you hit ctrl+u (view html source)?

First step is to make sure its coming out in the source, then figure out whats wrong.

try clearing caches if what you expect to come out doesn't, then make sure you're editing the right file by adding IS THIS THE RIGHT FILE??? WHERE AM I???? to the .tpl file then check to make sure you are editing the place you think you are.
alt=
@emdiamond
8 years ago
104 posts
Mike, Thanks this should help.

Yes the literal wraps are there.

The ctrl+u helps allot. The code is not showing so I think it must be a cache issue. I cleared the cache several times. Must be missing something.

I'm going to try your suggestion to see if I'm in the right .tpl file again.
michael
@michael
8 years ago
7,714 posts
If its not the right template, and you want to know what the right template is, turn on "template name in source"
ACP -> MODULES -> DEVELOPER -> DEVELOPER TOOLS -> GLOBAL CONFIG -> Run in developer mode
and
ACP -> MODULES -> DEVELOPER -> DEVELOPER TOOLS -> GLOBAL CONFIG -> Template name in source.

Then use ctrl+u and you will see the names of the skin templates in the HTML source.
alt=
duke
@musamensa
7 years ago
253 posts
I just tried it and it works with the literal tag but when you copy the 'responsive' ad codes it just shows a blank spce.
michael
@michael
7 years ago
7,714 posts
If the blank space is there, it sounds like the setup is correct on the jamroom side.

Tags