Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (mmkk), 60 guests, and 379 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Ruben
Ruben
Lutz,FL
Posts: 5,827
Joined: December 2003
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 12
M4TT 9
Ruben 8
mmkk 4
isaac 3
FREAK 3
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Header and footer question #256516
02/18/15 05:57 PM
02/18/15 05:57 PM
Joined: Jun 2006
Posts: 518
Sweden
Morgan Offline OP
addict
Morgan  Offline OP
addict
Joined: Jun 2006
Posts: 518
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
Joined: Dec 2003
Posts: 5,827
Lutz,FL
Ruben Offline

Ruben  Offline


Joined: Dec 2003
Posts: 5,827
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
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
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.
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
Joined: Jun 2006
Posts: 518
Sweden
Morgan Offline OP
addict
Morgan  Offline OP
addict
Joined: Jun 2006
Posts: 518
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
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
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>
---

Re: Header and footer question [Re: Morgan] #256530
02/19/15 03:31 PM
02/19/15 03:31 PM
Joined: Dec 2003
Posts: 5,827
Lutz,FL
Ruben Offline

Ruben  Offline


Joined: Dec 2003
Posts: 5,827
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
Joined: Jun 2006
Posts: 518
Sweden
Morgan Offline OP
addict
Morgan  Offline OP
addict
Joined: Jun 2006
Posts: 518
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
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
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.
Re: Header and footer question [Re: Morgan] #256533
02/19/15 04:13 PM
02/19/15 04:13 PM
Joined: Jun 2006
Posts: 518
Sweden
Morgan Offline OP
addict
Morgan  Offline OP
addict
Joined: Jun 2006
Posts: 518
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
Users Unable to Upload Avatar [Not a Bug]
by M4TT. 12/13/17 08:51 AM
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
Forum Statistics
Forums36
Topics35,015
Posts190,544
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)