obey-robots.txt
View Thread
(2 times) determines where the ad is shown. In this example it is shown directly under the first post, so it is the number 2 post.
If it works, and it should, remove "If you can read this your code works" and add your own code.

Here is a hint for google adsense code.

Download source  GeSHi: PHP
  1. echo '<script type="text/javascript">
  2. //--></script>
  3. <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
Parsed in 0.018 seconds, using GeSHi 1.0.8.10


Join Ad-Vertise.nl
Especially for php-fusion users i have created a free text ads exchange system.

How does it work?
Register, select "Ads English PHP-Fusion" and create your own text advertisement. Choose an ad size, adjust colors and integrate html code on your site.
Now your advertisements are shown on all participating sites who also choose "Ads English PHP-Fusion".
Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 Print Thread
Insert an advertisement panel between forum posts
Fusioneer
Would you like to insert an advertisment panel between forum posts for higher revenue?
Then paste the code below in an horizontal panel.

Go to your "Admin Panel" --> System Admin --> Panels
Create a new "Upper Center" panel.
Give the panel a name, for example "Ad"
Keep panel filename the default value "None"
Remove all panel content and replace with the code below.

Download source  GeSHi: PHP
  1. if (FUSION_SELF == "viewthread.php") {
  2. echo "<tr><td colspan='2' class='tbl1 forum_thread_post_space' style='height:10px'></td></tr>";
  3. echo "<tr><td class='tbl2 forum_thread_user_name' style='width: 140px;'><!--forum_thread_user_name--><a href='http://php-fusion.org/forum/viewthread.php?thread_id=6&pid=11#post_11' title='php-fusion.org Ad Bot tutorial and code source'>Ad-Bot</a></td><td class='tbl2 forum_thread_post_date'><div class='small'>Advertisement</div></td></tr>";
  4. echo "<tr><td class='tbl2'>&nbsp;</td>";
  5. echo "<td class='tbl1'><center>";
  6. echo 'If you can read this your code works';
  7. echo "</center></td></tr>";
  8. $ob_get_contents = ob_get_contents();
  9. $ob_get_contents = str_replace("'", "\'", $ob_get_contents);
  10. replace_in_output("<!--forum_thread_prepost_2-->", "<!--forum_thread_prepost_2-->\n".$ob_get_contents);
  11. }
Parsed in 0.014 seconds, using GeSHi 1.0.8.10


Panel restriction should be "include in these pages" and leave the field blank.
Panel access should be public.
Check the checkbox for "Display panel on all pages".
Save the panel and enable it.

Before adding your own ad code to it just try it and check if you see this sentence; "If you can read this your code works". The code
Ad-Bot
Advertisement
 
If you can read this your code works.
Tutorial Insert an advertisement panel between forum posts


Join Ad-Vertise.nl Especially for php-fusion users i have created a free text ads exchange system. How does it work? Register, select "Ads English PHP-Fusion" and create your own text advertisement. Choose an ad size, adjust colors and integrate html code on your site. Now your advertisements are shown on all participating sites who also choose "Ads English PHP-Fusion".
 
Ad-Bot
Advertisement
 
If you can read this your code works.
Tutorial Insert an advertisement panel between forum posts


Join Ad-Vertise.nl Especially for php-fusion users i have created a free text ads exchange system. How does it work? Register, select "Ads English PHP-Fusion" and create your own text advertisement. Choose an ad size, adjust colors and integrate html code on your site. Now your advertisements are shown on all participating sites who also choose "Ads English PHP-Fusion".
Fusioneer
Here is the code I use on this site. Remember to check the option "show on all pages".

Download source  GeSHi: PHP
  1. if (FUSION_SELF == "viewthread.php") {
  2. ob_start();
  3. echo "<tr><td colspan='2' class='tbl1 forum_thread_post_space' style='height:10px'></td></tr>";
  4. echo "<tr><td class='tbl2 forum_thread_user_name' style='width: 140px;'><!--forum_thread_user_name--><a href='http://php-fusion.org/forum/viewthread.php?thread_id=6&pid=11#post_11' title='php-fusion.org Ad Bot tutorial and code source'>Ad-Bot</a></td><td class='tbl2 forum_thread_post_date'><div class='small'>Advertisement</div></td></tr>";
  5. echo "<tr><td class='tbl2'>&nbsp;</td>";
  6. echo "<td class='tbl1'><center>";
  7.  
  8. echo 'If you can read this your code works.Tutorial <a href="http://php-fusion.org/forum/viewthread.php?thread_id=6&pid=11#post_11" title="Insert an advertisement panel between forum posts">Insert an advertisement panel between forum posts</a>';
  9. ?><div style="text-align:center;">
  10. <script type="text/javascript"><!--
  11. user = "181";
  12. size = "6";
  13. shape = "1";
  14. c = "";
  15. c_border = "b0e0e6";
  16. c_background = "ffffff";
  17. page_background = "ffffff";
  18. c_text1 = "333333";
  19. c_text2 = "000000";
  20. c_text3 = "336699";
  21. c_text4 = "333333";
  22. c_text5 = "333333";
  23. url = "http://ad-vertise.nl/";
  24. //--></script>
  25. <script type="text/javascript" src="http://ad-vertise.nl/show_ads.js"></script>
  26. </div><?php
  27. echo "Join Ad-Vertise.nl
  28. Especially for php-fusion users i have created a free text ads exchange system.
  29.  
  30. How does it work?
  31. <a href='http://ad-vertise.nl/user_join.php' title='register' target='_blank'><b>Register</b></a>, select \"Ads English PHP-Fusion\" and create your own text advertisement. Choose an ad size, adjust colors and integrate html code on your site.
  32. Now your advertisements are shown on all participating sites who also choose \"Ads English PHP-Fusion\".";
  33.  
  34. echo "</center></td></tr>";
  35. $ob_get_contents = ob_get_contents();
  36. $ob_get_contents = str_replace("'", "\'", $ob_get_contents);
  37. replace_in_output("<!--forum_thread_prepost_2-->", "<!--forum_thread_prepost_2-->\n".$ob_get_contents);
  38. }
Parsed in 0.012 seconds, using GeSHi 1.0.8.10

Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum
New Thread Post Reply
Use BBcode or HTML to refer to; 'Insert an advertisement panel between forum posts'
BBcode:
HTML:
Simular threads
Subject Discussion Forum         Last Post
Trio panel with latest threads, news and articles Panels/infusions (add ons) : 23 15-07-2015
Add edit message to Quickreply panel Modifications to viewthread.php : 1 19-01-2015
Navigation panel without CSS Panels/infusions (add ons) : 1 14-09-2014
Add Jump to Forum dropdownlist in forum index.php Modifications to forum index.php : 1 19-08-2014
Improved Last seen users panel Panels/infusions (add ons) : 3 17-12-2013