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 Related Topics
Monetize - Adsense Help
Jul 18, 2010
9:37 pm
Member
Forum Posts: 6
Member Since:
Jul 15, 2010
Offline

I have not addressed the forum because of problems with the translation, he decided to himself, because of problems with the withdrawal of functions, string values, etc. I turned to get the code that you want to insert correctly, I tried different options, but I've created a forum. Support phpBB3 has posted this code a year ago in public and no one else touched this issue. The code I quoted above, and explained that I needed. Sorry for the sharpness of my whole week trying to find the answer and not just on your forum. Once again I apologize.

Jul 19, 2010
6:53 pm
Member
Forum Posts: 6
Member Since:
Jul 15, 2010
Offline

How to insert google ads in 3 post on each page. FAQ.
open file – /simple-forum/forum/hooks/sf-hook-template.txt
search line 115
function sf_hook_post_breadcrumbs()
{
return 'insert code google adsense';
}
save as sf-hook-template.php
open file – /simple-forum/forum/sf-topic-components.php
search line 667 – $out.= '';
}
return $out;
replaced – $out.= '';
$this_page = $sfvars['page']; // text page
$need_post = 3; // ads to 3 post
$post_on_page = 20; // post on page
$this_post = $post['post_index']; // text post
if ($this_page>1) $need_post = $post_on_page*($this_page-1) + $need_post;

if ($this_post==$need_post) $out.=sf_hook_post_breadcrumbs();
}
return $out;
save file and copy to server.
add it to the wikki that nobody else was looking

May 10, 2011
10:08 am
Member
Forum Posts: 8
Member Since:
May 10, 2011
Offline

I appreciate the time everyone is taking to help. I am really liking the plugin so far. just setting the site up right now.

I also am looking to monetize the forum. I have been checking this forum and the Wiki for quite some time.

 

I am looking into the code now to work with it. A nice feature would be a simple way in the settings to add in code for adsense or banners.

 

Just a thought. Thanks for a great product!

Greg

May 10, 2011
10:03 pm

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

there already is a simple way.  use program hooks.  two steps.  rename hook file from .txt to .php.  paste your adsense code into the hook where you want it to appear. done.

I am sure with themes and plugin api coming in 5.0, this will be a easy plugin to add…

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: steve.engelking, prasanna
79 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)