obey-robots.txt
July 22 2017 21:39:13
Navigation
Your ad can be here below
Facebook Like
Portfolio
BetterClimate.Net
ComplaintSupport.Com
Daily-Breaking-News.Com
Kidiot.Org
Php-Fusion.Asia
Php-Fusion.Cn
Php-Fusion.Fr
Php-Fusion.In
Php-Fusion.Start-Pages.Com
Rain-Radar.Com
Speed-Testing.Net
Start-Pages.Com
WebhostingTrouble.Com
WebmasterTrouble.Com
View Thread
Do you have a nice horizontal or vertical panel in use? Share your code to all PHP-Fusion users.
 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&amp;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.029 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 <!--forum_thread_prepost_2--> (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.026 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!
 
Ad-Bot
 
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&amp;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.<br />Tutorial <a href="http://php-fusion.org/forum/viewthread.php?thread_id=6&amp;pid=11#post_11" title="Insert an advertisement panel between forum posts">Insert an advertisement panel between forum posts</a><br /><br />';
  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 "<br />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.031 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
Gebruik BBcode of HTML om naar; 'Insert an advertisement panel between forum posts', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Thread Forum Replies Last Post
Trio panel with latest threads, news and articles Panels/infusions (add ons) 23 15-07-2015 13:56
Add edit message to Quickreply panel Modifications to viewthread.php 1 19-01-2015 07:47
Navigation panel without CSS Panels/infusions (add ons) 1 14-09-2014 16:23
Add Jump to Forum dropdownlist in forum index.php Modifications to forum index.php 1 19-08-2014 11:34
Improved Last seen users panel Panels/infusions (add ons) 3 17-12-2013 05:47
Users Online
Guests Online: 1

Members Online: 0

Total Members: 51
Newest Member: SprDave
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Last Seen Users
Fusioneer 1 day
Language Switcher
Theme Switcher
Shoutbox
You must login to post a message.

No messages have been posted.
Member Poll
PHP-Fusion, I might try it.

Yes
Member Poll: PHP-Fusion, I might try it. Yes 100% [5 Votes]
100% [5 Votes]

No
Member Poll: PHP-Fusion, I might try it. No 0% [0 Votes]
0% [0 Votes]

Maybe
Member Poll: PHP-Fusion, I might try it. Maybe 0% [0 Votes]
0% [0 Votes]

Votes: 5
You must login to vote.
Started: 20-10-2011
Latest Articles
No Articles available
673,078 unique visits