|
Joined: Jun 2006
Posts: 996 Likes: 24
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 996 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?
|
|
|
|
Joined: Dec 2003
Posts: 6,621 Likes: 84
|
Joined: Dec 2003
Posts: 6,621 Likes: 84 |
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,348 Likes: 124
|
Joined: Jun 2006
Posts: 16,348 Likes: 124 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 996 Likes: 24
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 996 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.
|
|
|
|
Joined: Apr 2004
Posts: 1,972 Likes: 154
|
Joined: Apr 2004
Posts: 1,972 Likes: 154 |
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> ---
|
|
|
|
Joined: Dec 2003
Posts: 6,621 Likes: 84
|
Joined: Dec 2003
Posts: 6,621 Likes: 84 |
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: 996 Likes: 24
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 996 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):<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.
|
|
|
|
Joined: Apr 2004
Posts: 1,972 Likes: 154
|
Joined: Apr 2004
Posts: 1,972 Likes: 154 |
<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.
|
|
|
|
Joined: Jun 2006
Posts: 996 Likes: 24
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 996 Likes: 24 |
I changed it all thanks I am grateful.
Cheers Morgan
|
|
|
3 members (Unixspot, Ravenfreak, 1 invisible),
455
guests, and
118
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|