-
How to add adsense to phpBB3
Posted on April 6th, 2009 No commentsTo download the Mod, please visit http://www.lithiumstudios.org , download the relevant zip file and follow the Install.xml Instruction file included in the download.Please backup your original files in case, the was any problem you could back up.Then Go into the Advertisement Managment module in the ACP:
ACP -> General -> Board configuration -> Advertisement ManagementCreate A New Ads > Copy & Paste the Google Adsense Code > Choose the position > Click Submit to Complete.
Please wait for about 30 – 45 minutes for Google bots to crawl your website and load the advertisement.
Once you have done as mentioned below, please wait for about 40 minutes for you.
For more details, please read the complete article below. Thanks
Good Job Done by
Author
Username:EXreaction
Email:exreaction@lithiumstudios.org
Name:Nathan Guse
WWW:http://www.lithiumstudios.org/________________________________________________________________________
Title:Advertisement ManagementDescription:Adds an easy to use Advertisement Manager to a phpBB3 forum.
Version:1.0.8
Installation Level:Easy
Installation Time:~5 minutes
Author Notes:Support by the author is only provided at http://www.lithiumstudios.org
A small fee is required for support by the author unless otherwise specified by the author in the release topic.Bug reports are accepted and, if confirmed as a bug, you will receive support for fixing the bug for free by the mod author.Author
Username:EXreaction
Email:exreaction@lithiumstudios.org
Name:Nathan Guse
WWW:http://www.lithiumstudios.org/Files to Edit
includes/functions.php,
styles/prosilver/template/overall_footer.html,
styles/prosilver/template/overall_header.html,
styles/prosilver/template/viewtopic_body.html
Included Files
root/*.*
Additional MODX Files
en template: subsilver2
en contrib: How to add positions tutorial——————————————————————————–
Disclaimer & Other Notes
For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered in our MODs database, located at: http://www.phpbb.com/mods/Before adding this MOD to your forum, you should back up all files related to this MOD.
This MOD was designed for phpBB 3.0.4 and may not function as stated on other phpBB versions. MODs for phpBB 3.0 will not work on phpBB 2.0 and vice versa.
License & English Support
This MOD has been licensed under the following license:http://opensource.org/licenses/gpl-license.php GNU General Public License v2
English support can be obtained at http://www.phpbb.com/mods/ for released MODs.
——————————————————————————–
File Copy
Copy: root/*.*
To: *.* Edits
s<>Use your keyboard to navigate the code boxes. You may also hit ‘s’ on your keyboard to go to the first code box.Open: includes/functions.php
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
// Which timezone?
$tz = ($user->data['user_id'] != ANONYMOUS) ? strval(doubleval($user->data['user_timezone'])) : strval(doubleval($config['board_timezone']));Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All
- Code: Select all
// Advertisement Management
require($phpbb_root_path . 'ads/functions.' . $phpEx);
setup_ads();
Open: styles/prosilver/template/overall_footer.html
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
</div>
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All
- Code: Select all
<!-- IF ADS_7 -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_7}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
</div>
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.Code:Select All
- Code: Select all
{ADS_8}
Open: styles/prosilver/template/overall_header.html
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
</head>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.Code:Select All
- Code: Select all
<!-- INCLUDE ads/ads.js -->
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
<div id="page-header">
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.Code:Select All
- Code: Select all
{ADS_1}
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
<a name="start_here"></a>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.Code:Select All
- Code: Select all
<!-- IF ADS_2 -->
<br />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_2}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Open: styles/prosilver/template/viewtopic_body.html
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
<div class="topic-actions">
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.Code:Select All
- Code: Select all
<!-- IF ADS_3 -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_3}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
<!-- END postrow -->
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.Code:Select All
- Code: Select all
<!-- IF (ADS_5 and postrow.S_FIRST_ROW) or (ADS_6 and not postrow.S_FIRST_ROW) -->
<div class="post bg3">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="postbody" style="width: 100%;">
<h3>{L_ADVERTISEMENT}</h3><div style=”font-size: 1.1em; margin: 0px auto; text-align: center;”>
<!– IF postrow.S_FIRST_ROW –>{ADS_5}<!– ELSE –>{ADS_6}<!– ENDIF –>
</div>
</div>
<span class=”corners-bottom”><span></span></span></div>
</div>
<!– ENDIF –>
Find
Tip: This may be a partial find and not the whole line.Code:Select All
- Code: Select all
<!-- INCLUDE jumpbox.html -->
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.Code:Select All
- Code: Select all
<!-- IF ADS_4 -->
<br />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_ADVERTISEMENT}</dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
{ADS_4}
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->
DIY Instructions
These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.Code:Select All
Visit any page on your forum in your web browser and the database sections and module will be installed automatically.——————————————————————————–
Save all files. End of MOD.
You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.To download the Mod, please visit http://www.lithiumstudios.org , download the relevant zip file and follow the Install.xml Instruction file included in the download.


