Topic: add google adsense

hello how i can add google ad sense in my board? 1.3

Re: add google adsense

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

Sorry. Unactive due to personal life.

3

Re: add google adsense

sorry, but what is a hook?

Re: add google adsense

oh my god, i not know how make a hook please help me

Re: add google adsense

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.

Sorry. Unactive due to personal life.

Re: add google adsense

ok i try it

Re: add google adsense

it's very hard sad

8 (edited by Utchin 2008-09-07 13:11)

Re: add google adsense

It will be.

ConnerHD made some example ones, look http://punbb.org/download/example_extensions.zip

Sorry. Unactive due to personal life.

Re: add google adsense

thanks for info but i have resolved with e simply div in main.tpl

<div align="center">google adsense code</div>

10

Re: add google adsense

I think for the tpl you can edit them yourself.

Sorry. Unactive due to personal life.

Re: add google adsense

oh yes

Re: add google adsense

fantasma wrote:

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.

Re: add google adsense

i must add a class?

14

Re: add google adsense

dont have to, style="text-align=centre" I think... But im not 100% sure it supports inline styles

Sorry. Unactive due to personal life.

Re: add google adsense

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>

Re: add google adsense

Strofanto wrote:
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

Re: add google adsense

I am still confused how to add addsense to my PunBB Forum, as it is very necessory for my site.  hmm

18

Re: add google adsense

Have you tried this?

fantasma wrote:

thanks for info but i have resolved with e simply div in main.tpl

<div align="center">google adsense code</div>