A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Anyone want to help me with Adsense?
Apr 4, 2009
12:09 pm
Member
Forum Posts: 22
Member Since:
Apr 4, 2009
Offline

I know it has been posted on here once and I read the instructions but couldn't follow them well. Can anyone give me a very detailed description of how to get adsense inbetween forum posts?

Apr 4, 2009
12:17 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

read about forum hooks… rename the .txt file to php so it gets used… pick which hook you want… return your adsense code from the hook function…

Apr 4, 2009
12:23 pm
Member
Forum Posts: 22
Member Since:
Apr 4, 2009
Offline

Where can I read about them at?

Apr 4, 2009
12:34 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

in your spf online help… lots of good stuff in there…

Apr 4, 2009
12:41 pm
Member
Forum Posts: 22
Member Since:
Apr 4, 2009
Offline

Where do I edit them at?

Apr 4, 2009
12:49 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

edit what? the hook file?

as the help says, "Program hooks are defined in the file 'sf-hook-template.txt' which will need the extension re-naming to .php prior to use". Find that file (hint: its in simple-forum/forum/hooks)… rename it and edit it… edit the function/hook that you want to use…

Apr 4, 2009
1:00 pm
Member
Forum Posts: 22
Member Since:
Apr 4, 2009
Offline

Alright I've renamed it and I've got the code ready to go. Every time I insert it it's not working. How do I insert the code? Do I need to do anything special?

Apr 4, 2009
1:04 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

you have to return it – dont echo it out!

$adsense = 'put adsense stuff in here';
return $adsense
Apr 4, 2009
1:10 pm
Member
Forum Posts: 22
Member Since:
Apr 4, 2009
Offline

Added it just like that but it didn't work. Here's what I'm adding……

$adsense = ‘<script type="text/javascript"><!–
google_ad_client = "pub-9642497531158180";
/* 468x60, created 6/29/08 */
google_ad_slot = "9396562676";
google_ad_width = 468;
google_ad_height = 60;
//–>
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>’;
return $adsense

Apr 4, 2009
1:18 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

cant tell if your single quotes are correct or not… they tend to get munged up here in tinymce… make sure you type all quotes by hand…

which function did you put that in? please post the entire function…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: chaiavi, woody, steve.engelking, prasanna
85 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2625

Members: 7361

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10890

Posts: 79531

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22211), Mr Papa (23688)