Forums / Developer / Google Adsense

Google Adsense

Author Message

Virgilio Lemos

Monday 17 August 2009 8:21:54 am

What is the best way to customize ezwebin to display Google Adsense for both, below top menu and for high column, in all pages?
I will appreciate any suggestion.

Heath

Monday 17 August 2009 9:06:05 am

Hello,

It sounds like you might be able to use a custom tag to meet this need within ezxml content object content.

And it sounds like either toolbars, templates and or template operators could all be used to serve the same purpose within templates.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Virgilio Lemos

Monday 17 August 2009 11:33:22 am

Heath,

Thank you for your quick response.
Could you please tell me what are those templates?
I'm not so familiar with then.

Regards,
Virgilio

Virgilio Lemos

Tuesday 18 August 2009 2:26:15 pm

I included the Google Adsense code directly into the frontpage template and worked fine, but the same was not true for the other templates because the Google ads was displayed aside of the left menu instead of above it.

Anybody has any idea about where to put it?

Regards,

Virgilio Lemos

Thursday 20 August 2009 1:06:21 pm

I still waiting for any clue regard to this issue.

Anybody could help?

Heath

Thursday 20 August 2009 3:26:05 pm

Apologies Virgilio,

I forgot to include a related links. This should get you started in our efforts to create a custom tag.

[0] http://ezpedia.org/ez/custom_tag
[1] http://ezpedia.org/solution/inserting_inline_client_script_into_content_using_a_custom_tag

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Virgilio Lemos

Thursday 20 August 2009 8:20:55 pm

Heath,

Thank you for your attention,

As I said before, I put Google Adsense code directly into the frontpage template and worked fine, but the same was not true for the other templates like the Folder, Feedback Form and Forum, because the Google ads is being displayed aside of the left menu instead of above it.

What I need to know is what template to use to insert the google code.
Regards,

Heath

Thursday 20 August 2009 9:25:14 pm

Hello Virgilio,

Apologies for misunderstanding you. Please do strive to be as verbose as possible (like your last message. direct / succinct at the end).

Well then ... based on your last message. You need to place your google adsense javascript within your websites pagelayout.tpl template file.

http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_pagelayout

The actual file location is dynamic depending on your website configuration.

It may be found within your primary design extension templates directory.

IE: /path/to/ezpublish/extension/abc/design/abc/templates/pagelayout.tpl

You will need to find and edit this file yourself. I suggest searching by filename.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

/dev/null

Thursday 20 August 2009 11:00:04 pm

I was searching around and found this article which covers the specifics of installing google adsense javascript into a static html document / page. I hope this helps.

<i>http://www.hongkiat.com/blog/how-to-setup-google-ad-manager-on-your-blogwebsite/</i>

eZpedia community documentation project: http://ezpedia.org

Virgilio Lemos

Friday 21 August 2009 2:18:02 pm

Heath,
I put Google Adsense code directly into the pagelayout.tpl template file and worked fine for all cases.
Thank you for your help.
Next time I will do my best to be more clear.
Regards.

Heath

Saturday 22 August 2009 3:28:35 am

Your welcome. We all have unlimited opportunity to improve.

I hope this thread is useful to future users looking to achieve this goal which is in part why I spend time attempting to assist others within the ez.no forum.

Take care

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

eZ debug

Timing: Jan 30 2025 21:27:00
Script start
Timing: Jan 30 2025 21:27:00
Module start 'content'
Timing: Jan 30 2025 21:27:00
Module end 'content'
Timing: Jan 30 2025 21:27:00
Script end

Main resources:

Total runtime0.2480 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.7969370.3125
Module start 'content' 0.00740.0220 958.10941,017.4609
Module end 'content' 0.02940.2184 1,975.57033,905.5000
Script end 0.2479  5,881.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00491.9668200.0002
Check MTime0.00170.6859200.0001
Mysql Total
Database connection0.00070.264110.0007
Mysqli_queries0.116947.13281410.0008
Looping result0.00140.55591390.0000
Template Total0.217287.610.2172
Template load0.00080.314110.0008
Template processing0.216487.260110.2164
Override
Cache load0.00050.217810.0005
Sytem overhead
Fetch class attribute can translate value0.00190.771110.0019
XML
Image XML parsing0.00020.095210.0002
General
dbfile0.027110.9204200.0014
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs