Previous Thread
Next Thread
Print Thread
Hop To
#256516 02/18/2015 6:57 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Hi
Have 7.5.9 and since a long time in.
Control Panel » General » Display Options question.

I have had tables in header and footer and today I realize I have all html head and body tags in both header and footer.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BritBike Forum</title>
</head>
<body>
<table>
xxxxxxxxxxxxxxx
</table>
</body>
</html>


Am I suppose to have <html> <head></head><body><table>in header and then to have
</table> </body> </html> in the footer?


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Well actually You have over kill.

The head tags go in:
Header Insert (common to all)
Use for meta tags, etc. and will always be inserted in the <head> section.
The rest goes in the header and footer.

But!!!
you don't paste the
<html>
<head>
<body>
or
</body>
</html>
</head>
In the box.
the software will add them where they belong.

For example:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BritBike Forum</title>
</head>

should be inserted as:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BritBike Forum</title>


That is what you place in the
Header Insert (common to all)


Then for:
Default Header/footer:

<body>
<table>
xxxxxxxxxxxxxxx
</table>
</body>

should be:

<table>
xxxxxxxxxxxxxxx
</table>

Don't bother with the <html> tags either.

If you place the code in the proper field.
It will be inserted in the head tag or body tag.

The table tags are needed but it is how the table is built if you need to split it up between the header and footer.




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
Originally Posted by Morgan
Hi
Have 7.5.9 and since a long time in.
Control Panel » General » Display Options question.

I have had tables in header and footer and today I realize I have all html head and body tags in both header and footer.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BritBike Forum</title>
</head>
<body>
<table>
xxxxxxxxxxxxxxx
</table>
</body>
</html>


Am I suppose to have <html> <head></head><body><table>in header and then to have
</table> </body> </html> in the footer?
Really looks like you don't need any of that; the UBB sets the title already, and the character set is done through the language files; the table bit would go in the HTML include, but that's really all you'd need.


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: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
OK I think I get most of it. Thanks

What I need a refresh course is about the actual header boxes what goes in where for best result.
Oh yes I need to put Google analytic code in and that should be in there too somewhere in one of the hearder boxes.
Thanks for your help.


Default Header:
HTML and PHP allowed.
Shows at the top of every page.



Header Insert (common to all):
Use for meta tags, etc. and will always be inserted in the <head> section.
If you have any description meta tag here, you should move it to the section below!



Header Insert (when not displaying a topic):
This will be the default used for any page that isn't a topic.
Otherwise, the <description> will derive from the actual topic contents for SEO purposes.


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
The following has been written in to the next release. The items have been correctly sorted, and example code is now included. This should really help out forum admins who just want to have their forums running correctly and dont care to be hard-core web developers/coders B)

---
Header Insert For All Pages
Use for meta tags, java script, analytics code, etc. This will always be inserted in the <head> section.
Example: <meta name="keywords" content="forum,community">
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: <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 your forum banner and graphics, it shows at the top of every page. HTML and PHP allowed.
Example: <img src="http://www.example.com/headers/logo.png" alt="Example Name" title="Our Slogan" />


Default Footer
Shows at the bottom of every page. HTML and PHP allowed.
Example: <center>© 2015 Example.com</center>
---


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
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Also never add tags such as
<html>
<head>
<body>

Ubb adds them already to the page


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Thanks ID242

a couple more questions.

I'm not sure I use the best meta tags its for classic british motorcycles
This is now in Header Insert (when not displaying a topic):
Quote
<meta NAME="keywords"
CONTENT="britbike, forum, forums, triumph, bsa, norton, ajs, matchless, enfield, vincent, motorcycles">
<meta NAME="description"
CONTENT=" This is your #1 British Motorcycle Forum, the best for British motorcycles, includes bulletin boards and free classified ads for BSA, Triumph, Norton and more.">
<meta name="googlebot" content="index,follow">
<meta name="msnbot" content="index,follow">

In Header Insert (common to all): I only use Google analytics code

In default header and footer I use html with table tags and i use no html/head/body tags like Rubes mention above.

I appreciate any good suggestions about meta tags and also how to get rid of the "Forums powered by UBB-Threads tab at the browsers top. I wish it to be "BritBike Forum" which is my forum name.

Loooks like I move in the right direction again.

Last edited by Morgan; 02/19/2015 4:46 PM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Code
<meta name="googlebot" content="index,follow">
<meta name="msnbot" content="index,follow">

These can be dropped from your header. If your site is open to the public, Google and Bing pretty much already see your site as something available for indexing. How nice.

Your keywords dont need spaces after the commas. You can use spaces, but they are not needed.

Your description tag is good. Meta descriptions can be any length, but search engines generally truncate snippets longer than 160 characters. It is best to keep meta descriptions between 150 and 160 characters

re "powered by" - IIRC, in admin, go to the "Languages" section and perform a search for those words. You'll find a language item where you can place your forum's slogan, if you choose.

Last edited by id242; 02/19/2015 5:00 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
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
I changed it all thanks I am grateful.

Cheers
Morgan


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php

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)