Previous Thread
Next Thread
Print Thread
Hop To
#265367 06/25/2022 11:11 AM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Looking at this to try.
It requires two code snippets.
I goto html includes
One in the head tag which is obvious.
The second script is supposed to be placed just after the body tag.

Would that be body on load?
Or what.

Or do I need to edit a template.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Default header loads after the body tag; body on load is literally a part of the body tag and it's generally for JavaScript


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Yes they are both javascript..
One in the head tag and the second script in the body tag
That is my question.
Google says that it needs to load first in the body tag after the header script.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
No, the body onload is for a javascript micro snippet such as "clearMenus(event);" and is not designed for anything else.

You're still going to be adding to the default header, which again is after the body tag and not in the header.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Body Onload Event Attributes
This function will be put in the body onload event tag and must be valid JavaScript. Normally this is left blank. However, if you have a special case that requires this, you can specify it here.

Example:
Code
<body onload="myFunction()">
An explanation of the HTML onload event attribute can be found here
https://www.w3schools.com/jsref/event_onload.asp



Header Insert For All Pages
Use for meta tags, JavaScript, analytics code, etc. This will always be inserted in the <head> section.

Example Code:
Code
<meta name="robots" content="follow">
<meta name="keywords" content="forum,community">
<!-- ANALYTICS/ADS CODE - Global site tag -->
<script>...</script>
Description meta tags should be placed within the section below.



Header Insert When Not Displaying a Topic
This will be the default description used for any page that is not a topic.

Example Code:
Code
<meta name="description" content="Our members enjoy discussing things. Come see what all the talk is about.">
For SEO purposes, topic pages automatically generate their own description meta tags.



Default Header
This is shown at the top of every page. It is displayed when the <body> element begins. HTML and PHP allowed.

Example Code:
Code
<!-- HEADER START -->
<img src="https://www.example.com/images/logo.png" alt="Example Name" title="Our Slogan">
<!-- HEADER END -->
<!-- AD BANNER CODE FOR HEADER -->



Default Footer
This is shown at the bottom of every page. It is displayed just before the closing </body> element. HTML and PHP allowed.

Example Code:
Code
<!-- AD BANNER CODE FOR FOOTER -->
<!-- FOOTER START -->
<center>Copyright by Example Website Name</center>
<!-- FOOTER END --> 


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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)