Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
5 registered members (Gizmo, GliderCENTRAL, isaac, RyuLion, Ruben), 78 guests, and 218 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Steve M
Steve M
MO, USA
Posts: 71
Joined: July 2011
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 17
isaac 8
SteveS 8
Morgan 5
Ruben 4
jorb 4
JPG 1
Latest Photos
Test
Testing to drag photos
Comfortable Cats
Test
BSA photos
Previous Thread
Next Thread
Print Thread
Header and footer question #256516
02/18/15 05:57 PM
02/18/15 05:57 PM
Morgan  Offline
OP
Addict
Joined: Jun 2006
Posts: 609
Sweden
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
http://www.britbike.com/forums/ubbthreads.php?
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Header and footer question [Re: Morgan] #256517
02/18/15 06:27 PM
02/18/15 06:27 PM
R
Ruben  Online Yawn

Joined: Dec 2003
Posts: 5,952
Lutz,FL
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
Re: Header and footer question [Re: Morgan] #256518
02/18/15 08:33 PM
02/18/15 08:33 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 17,012
Portland, OR; USA
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.
Need to Upgrade?
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!
Re: Header and footer question [Re: Morgan] #256528
02/19/15 03:07 PM
02/19/15 03:07 PM
Morgan  Offline
OP
Addict
Joined: Jun 2006
Posts: 609
Sweden
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
http://www.britbike.com/forums/ubbthreads.php?
Re: Header and footer question [Re: Morgan] #256529
02/19/15 03:11 PM
02/19/15 03:11 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,236
California
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>
---


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released
Re: Header and footer question [Re: Morgan] #256530
02/19/15 03:31 PM
02/19/15 03:31 PM
R
Ruben  Online Yawn

Joined: Dec 2003
Posts: 5,952
Lutz,FL
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
Re: Header and footer question [Re: Morgan] #256531
02/19/15 03:45 PM
02/19/15 03:45 PM
Morgan  Offline
OP
Addict
Joined: Jun 2006
Posts: 609
Sweden
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/15 03:46 PM.

Morgan Johansson
BritBike Forum
http://www.britbike.com/forums/ubbthreads.php?
Re: Header and footer question [Re: Morgan] #256532
02/19/15 03:54 PM
02/19/15 03:54 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,236
California
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/15 04:00 PM.

isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released
Re: Header and footer question [Re: Morgan] #256533
02/19/15 04:13 PM
02/19/15 04:13 PM
Morgan  Offline
OP
Addict
Joined: Jun 2006
Posts: 609
Sweden
I changed it all thanks I am grateful.

Cheers
Morgan


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

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Cannot contact support
by . 12/11/18 06:43 PM
errors importing a database
by andrewjs18. 12/11/18 03:51 AM
Private Message, Opt out of conversation
by jorb. 12/04/18 10:11 PM
Disable IP display in Who's Online?
by Baldeagle. 11/29/18 09:05 PM
Permissions problem
by Baldeagle. 11/25/18 09:44 PM
Forum Statistics
Forums36
Topics35,174
Posts191,649
Members12,119
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2