Topic: add google adsense
hello how i can add google ad sense in my board? 1.3
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → add google adsense
hello how i can add google ad sense in my board? 1.3
You find the best place to put it and use a hook
You need to make an extension, just for general stuff. Look in header.php for the hooks i think
oh my god, i not know how make a hook please help me
Read: http://fluxbb.org/wiki/developing_extensions
If you look at 1.3 code there are tons of:
($hook = get_hook('es_essentials')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null;
They are hooks. And when you make an extension and insert that hook it will replace the hook with your code.
ok i try it
it's very hard
It will be.
ConnerHD made some example ones, look http://punbb.org/download/example_extensions.zip
thanks for info but i have resolved with e simply div in main.tpl
<div align="center">google adsense code</div>
I think for the tpl you can edit them yourself.
oh yes
thanks for info but i have resolved with e simply div in main.tpl
<div align="center">google adsense code</div>
XHTML strict doesn't support the align attribute. You should use CSS.
i must add a class?
dont have to, style="text-align=centre" I think... But im not 100% sure it supports inline styles
style="text-align=centre"
I'm not sure CSS supports centre, you should user center.
Use this code
<div style="text-align: center">google adsense code</div>
Utchin wrote:style="text-align=centre"
I'm not sure CSS supports centre, you should user center.
Use this code<div style="text-align: center">google adsense code</div>
thanks strofanto
I am still confused how to add addsense to my PunBB Forum, as it is very necessory for my site.
Have you tried this?
thanks for info but i have resolved with e simply div in main.tpl
<div align="center">google adsense code</div>
PunBB Forums → PunBB 1.3 troubleshooting → add google adsense
Powered by PunBB, supported by Informer Technologies, Inc.