Page 1 of 1
Backend Adsense
Posted: Mon Nov 10, 2008 2:58 am
by fourd5dswb
Hello. Is there a way to put Google Adsense code so that it will show up in the backend features?
Posted: Mon Nov 10, 2008 3:41 am
by Don Chambers
I do not personally use Google Adsense... Most adsense code I have seen is typically placed in a sidebar HTML nugget or directly within the appropriate smarty tpl file. What exactly do you need?
Posted: Mon Nov 10, 2008 12:36 pm
by garvinhicking
Hi!
You could create an admin/index.tpl template file (or edit the existing one from /templates/default/admin/index.tpl - or if you use bulletproof, from /templates/bulletproof/admin/index.tpl) and there insert your google adsense widget at the place you'd like it.
Just remember to replace { with {ldelim} and } with {rdelim} when you insert javascript, or it won't be valid Smarty syntax.
The other option would be to use a PHP event plugin that listens on the backend_frontpage_display event hook and puts his output into the $eventData['more'] variable.
Regards,
Garvin
reply
Posted: Mon Nov 10, 2008 3:05 pm
by fourd5dswb
What I am trying to do is show Adsense in the backend so that when users of my site log in, they see adsense. It would just give another way to maybe get some clicks.
Posted: Mon Nov 10, 2008 5:14 pm
by Don Chambers
That's exactly what Garvin explained how to do... the admin template has a left sidebar, but the only way to add anything to it is by hard coding it at the point you want it to appear.... there is no backend equivalent of a sidebar html nugget.
Is it really worth it? I'd be shocked if you could raise more than a few pennies originating on the backend ... to me, if would be more of an annoyance... but that is my PERSONAL opinion.

Reply
Posted: Mon Nov 10, 2008 6:30 pm
by fourd5dswb
You're probably right Don.
I appreciate the help.