Previous Thread
Next Thread
Print Thread
Rate Thread
#323647 04/05/2022 12:58 AM
Joined: Apr 2022
Posts: 25
User
User
Offline
Joined: Apr 2022
Posts: 25
Where would I put the Google Adsense code?

Sponsored Links
Aaron101 #323648 04/05/2022 11:35 AM
Joined: Jan 2000
Posts: 5,829
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,829
Likes: 20
The only areas you can enter 3rd party code is:
- Header Include (inserts code above the navigation bar)
- Footer Include (inserts code below the footer)
- Sidebars
- Custom Island Insert

The includes can be found in the Control Panel at Display -> General -> HTML Includes

The Ad Insert and Sidebar islands utilize the Custom Islands in the Control Panel Portal & Islands -> Custom Islands. Sidebar islands are defined via Portal & Islands -> Column Layout

The Custom Island Insert is the box you see between the original post in a thread (or the first post of adjoining pages) and the second post, this is set in each forum's details page at Content -> Forums -> Details under "Custom Inserts"


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
1 member likes this: Aaron101
Aaron101 #323649 04/05/2022 3:11 PM
Joined: Apr 2022
Posts: 25
User
User
Offline
Joined: Apr 2022
Posts: 25
Thanks!

Okay, so the Google Adsense code cannot be added for the whole forum? Would that go in the header include?

Aaron101 #323650 04/05/2022 4:18 PM
Joined: Jul 2001
Posts: 1,157
Likes: 81
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 81
Originally Posted by Aaron101
Okay, so the Google Adsense code cannot be added for the whole forum? Would that go in the header include?

The items listed by Gizmo generally cover your whole forum:
- Header Include (inserts code above the navigation bar)
- Footer Include (inserts code below the footer)
- Sidebars
- Custom Island Insert

You can also use a unique Header/Footer for each forum. This is setup in the "Custom Inserts" tab per forum.

While there, the Custom Island Inserts can be used. These will show up between the 1st and 2nd post of a topic. Usually the most effective place to put ads.

As for Google Adsense, you can insert just a single piece of code from google in to your Header Inserts, which will allow Google to place their ads around your pages wherever they feel is best. I am currently using this, and it seems to work out really well for me on the sites where I use it.

Additional reading on Google Auto Ads here
https://support.google.com/adsense/answer/9261805?hl=en#auto_ads


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Aaron101 #323651 04/05/2022 5:35 PM
Joined: Apr 2022
Posts: 25
User
User
Offline
Joined: Apr 2022
Posts: 25
Okay, and by header inserts do you mean the custom header for each forum or the Header Includes section?

Sorry, slowly grasping all this!:)

Sponsored Links
Aaron101 #323653 04/05/2022 5:49 PM
Joined: Jul 2001
Posts: 1,157
Likes: 81
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 81
Originally Posted by isaac
As for Google Adsense, you can insert just a single piece of code from google in to your Header Inserts, which will allow Google to place their ads around your pages wherever they feel is best. I am currently using this, and it seems to work out really well for me on the sites where I use it.

Originally Posted by Aaron101
Okay, and by header inserts do you mean the custom header for each forum or the Header Includes section?

The "Header Insert For All Pages" section

For example, this is how you would add google ads tracking code to all pages:

[Linked Image]
note: use your own code where I have inserted XXX at

Last edited by isaac; 04/05/2022 5:52 PM.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Aaron101
Aaron101 #323654 04/05/2022 6:00 PM
Joined: Jul 2001
Posts: 1,157
Likes: 81
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 81
The above post is where you would put the modern Google Auto Ads code.
Here is a temple for if f you wanted to manually set Google Ads sizes/types.

It also gives more assistance on where you could put other types of information if youre using it

[Linked Image]


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Gizmo
Aaron101 #323655 04/05/2022 6:03 PM
Joined: Apr 2022
Posts: 25
User
User
Offline
Joined: Apr 2022
Posts: 25
That’s super helpful! Thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,570
Posts293,915
Members13,848
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,829
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 81
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2022 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221129)