Close Menu
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook X (Twitter) Instagram
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
My SiteMy Site
Home»General»How to place Adsense in first post on SMF
General

How to place Adsense in first post on SMF

Oscar FrankBy Oscar Frank1 Min Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

This is a step by step guide to place adsense code below first post in each topic on SMF to increase your earnings. Google Adsense is the best approach when it comes to getting steady income from your Forum.

placing adsense in smf post

Here are the steps below.

1. Log Into Your Control panel (i mean where your files are hosted not the admin panel)

2. Navigate and click on the Themes Folder .

3. Then Click on Default folder.

4. Then click and Edit your Display.template.php file.

After you’ve opened that section, Locate this code (press Ctrl+F then type the code)

[pastacode lang=”php” manual=”%3Cdiv%20id%3D%22msg_’%2C%20%24message%5B’id’%5D%2C%20’%22%3E’%2C%24message%5B’body’%5D%2C%20’%3C%26%2347div%3E” message=”” highlight=”” provider=”manual”/]

After you’v found that, then replace the entire code with this:

[pastacode lang=”php” manual=”%3Cdiv%20id%3D%22msg_’%2C%20%24message%5B’id’%5D%2C%20’%22’%2C%20’%3E’%3B%0Aif%20(%24message%5B’id’%5D%20%3D%3D%20%24context%5B’first_message’%5D)%0Aecho%20’%3Cdiv%20style%3D%22float%3Aright%3B%20width%3A270px%3B%22%3E%3Cscript%20type%3D%22text%2Fjavascript%22%3E%3C!–google_ad_client%20%3D%20%22pub-xxxxxxxxxxxxxxx%22%3B%2F*%20250×250%2C%20created%209%2F07%2F11%20myforum%20post%20ads%20*%2Fgoogle_ad_slot%20%3D%20%22xxxxxxxxxxxx%22%3Bgoogle_ad_width%20%3D%20250%3Bgoogle_ad_height%20%3D%20250%3B%2F%2F–%3E%3C%2Fscript%3E%0A%3Cscript%20type%3D%22text%2Fjavascript%22src%3D%22http%3A%2F%2Fpagead2.googlesyndication.com%2Fpagead%2Fshow_ads.js%22%3E%3C%2Fscript%3E%3C%2Fdiv%3E’%3B%0Aecho%20”%2C%20%24message%5B’body’%5D%2C%20’%3C%2Fdiv%3E” message=”” highlight=”” provider=”manual”/]

Then save your file.
Remember to change the “pub-xxxxxxxxxxxxxxx ” to your publisher ID on adsense.

And that’s it. View your SMF forum’s full site. And all topics first post would have adsense embeded.

Smf Tips

Related Posts

AfriGo, Nigeria’s First National Payment Card

February 2, 2023

Samsung Galaxy Unpacked 2023 to Hold February 1st

January 14, 2023

Nigeria and Rwanda Signs NASA Artemis Accord

December 20, 2022
View 2 Comments

2 Comments

  1. Cecil on August 18, 2012 8:09 am

    However, both teens and children will not think it intrusive to have their mother and father buy them smartphones, like BlackBerries or iPhones. Since these phones legally belong to their parents, who paid for them, the mother and father are free if they wish to install a mobile telephone spy software program on them, and so be able to know where their children are at all times using Google Maps, a feature that the software provides.

    Reply
  2. samex4rill on September 18, 2012 4:44 am

    nice one think i will add it to this very nice forum http://www.gurusconnect.com

    Reply
Leave A Reply Cancel Reply

Recent Posts
  • 6 Sports Apps You Must Have On Your Phone
  • Valencia Travel Guide: All You Need to Know About This Spanish Gem
  • TikTok Faces Unexpected Ban in Senegal, Sparks Global Curiosity
  • The Apple GPT & Apple’s Chatbot Mysterious Debut
  • Triller Takes on TikTok: Filing for Public Listing
Get Exclusive Tech Insights!
My Site
Facebook X (Twitter) Instagram YouTube
© 2025 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.