Previous Thread
Next Thread
Print Thread
Hop To
HTML Title Tag Missing The Post Title (Sometimes) #262365 02/18/2019 11:19 AM
Joined: Jun 2008
Posts: 81
mmem700 Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2008
Posts: 81
UBB v 7.7.1

Some posts made are missing part of the title in the html HEAD section and only including the forum title. See below for example. This is happening in 1 of every 5 posts I make.

These are posts made in Ubb/HTML mode.

It does not happen every time and I have not yet found the pattern that consistently produces this behavior, but it is definitely occurring since my upgrade from 7.5x to 7.7x. I never saw it happen with 7.5.

Example of what the HTML TITLE tag looks like when this happens. Notice the board title is there but the post title is not:

HTML
<title> - The Orbis Vitae Community</title>


Thanks and I hope this helps.

Last edited by mmem700; 02/18/2019 11:20 AM.

Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Re: HTML Title Tag Missing The Post Title (Sometimes) [Re: mmem700] #262366 02/18/2019 11:24 AM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Are you running stock forum code, or have you modified it in any way?

Can you share/post a link to a page that is producing this result, so that the cause of this can be reviewed.


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: HTML Title Tag Missing The Post Title (Sometimes) #262367 02/18/2019 11:24 AM
Joined: Jun 2008
Posts: 81
mmem700 Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2008
Posts: 81
UBB v 7.7.1

I am finding that the breadcrumbs are only showing "Home" after posts are made.

See attached image.

Thanks.

Attached Files breadcrumbs missing.png

Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Re: HTML Title Tag Missing The Post Title (Sometimes) [Re: mmem700] #262368 02/18/2019 11:53 AM
Joined: Jun 2008
Posts: 81
mmem700 Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2008
Posts: 81
Here's a link that's doing it:

http://orbisvitae.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=86012#Post86012

It may be related to quotes in the title, but not sure yet.

The posts I saw it happening in were all posted in UBB/HTML mode.


Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Re: HTML Title Tag Missing The Post Title (Sometimes) [Re: mmem700] #262371 02/18/2019 1:13 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
I've PMd you the 'bug' @isaac.

libs/html.inc.php, where it removes whitespace from InputTitle / Breadcrumbs.

If board is charset ISO, that sanitation 'breaks' titles/breadcrumbs..

2c

Re: HTML Title Tag Missing The Post Title (Sometimes) [Re: mmem700] #262381 02/20/2019 11:37 AM
Joined: Jun 2008
Posts: 81
mmem700 Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jun 2008
Posts: 81
I apologize. I apparently reported 2 different bugs in the same thread. My mistake.

1. About breadcrumbs missing.
2. About missing subject from HTML title tag.

Here is a graphic showing what is happening to the HTML title tag when non-alpha-numeric characters are present in the post title. This was posted in HTML mode, in case that makes a difference.

Thanks.



Attached Files title-tag-description.png
Last edited by mmem700; 02/20/2019 11:39 AM.

Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Re: HTML Title Tag Missing The Post Title (Sometimes) [Re: mmem700] #262384 02/20/2019 1:17 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
Its the non-UTF character in your subject (’); if your forums were in UTF8 the character would process, but you're still using the iso-8859-1 character set which has been depreciated since the ISO "Working Group" disbanded in 2004.

An example of special characters in a subject line (its not an alphanumeric (A-Z0-9) issue (which would mean a problem with standard punctuation characters)) of a UTF forum can be found attached.

Attached Files smilesubject.png

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: HTML Title Tag Missing The Post Title (Sometimes) [Re: mmem700] #262393 02/21/2019 2:30 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
short term stopgap is:

PHP Code

		//$inputTitle = preg_replace(array('/^\s\s+/', '/\s\s+$/', '/\s\s+/u'), array('', '', ' '), $inputTitle);
		//$breadcrumb = preg_replace(array('/^\s\s+/', '/\s\s+$/', '/\s\s+/u'), array('', '', ' '), $breadcrumb);
		$inputTitle = trim(preg_replace('/\s+/',' ', $inputTitle));
		$breadcrumb = trim(preg_replace('/\s+/',' ', $breadcrumb)); 


that doesn't break boards with ISO-8859-1 charset.

file: libs/html.inc.php, i left the 2 original lines in and just commented them out for now.


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
3 registered members (Daryl Fawcett, Jake, Baldeagle), 79 guests, and 445 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)