Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (FordDoctor), 50 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/13/08
Posts: 596
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 14
SteveS 14
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#195759 - 08/30/07 01:12 AM [Fixed 7.3][7.2.2] Categories with double quotes not showing up in Category Settings
QSS Tim Offline

journeyman
Registered: 10/20/04
Posts: 90
Loc: Oroville, CA
I've noticed that some of our categories are not showing up in Category Settings. They display in the Forum management screens, display on the board, but when I go to Category Settings, the Name Fields are blank. This was present this morning in 7.2.1, and is still present after upgrading to 7.2.2.

In the database, I can clearly see the expected fields in the CATEGORY_TITLE fields in the ubbt_categories table.

Thanks,
Tim


Edited by Sirdude (11/09/07 03:39 AM)
_________________________
UBB Since November 07, 2000.
Top
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."
#195763 - 08/30/07 02:09 AM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
2 ways to fix it.. 1st is workaround. 2nd is 1 line code change.

1. Change your double quotes to single.

or

2. open admin/catmanage.php
2a. find:
 PHP:
$cat[$i]['title'] = $ctitle;

2b. replace:
 PHP:
$cat[$i]['title'] = htmlspecialchars($ctitle);


:2c:
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195765 - 08/30/07 02:14 AM Re: Categories with double quotes not showing up in Category Settings [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Wouldn't it be better to just use htmlspecialchars?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#195766 - 08/30/07 02:18 AM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
edit: i like giz' idea.
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195767 - 08/30/07 02:21 AM Re: Categories with double quotes not showing up in Category Settings [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
A simple "no" would have been sufficient lol...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#195768 - 08/30/07 02:22 AM Re: Categories with double quotes not showing up in Category Settings [Re: SD]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
You might wanna try just putting in "
_________________________
Top
#195769 - 08/30/07 02:24 AM Re: Categories with double quotes not showing up in Category Settings [Re: Yarp™]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
yah blaaskaak, that works with no change, so call that option 3 (maybe should even be 1) \:\)

and giz, the more i think about it.. you are right... i prefer htmlspecialchars..

giz 1, sd 0 ;\)
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195771 - 08/30/07 02:37 AM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
 Originally Posted By: Gizmo
A simple "no" would have been sufficient lol...


then i get dinged for < 15 :neener:
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195772 - 08/30/07 02:50 AM Re: Categories with double quotes not showing up in Category Settings [Re: SD]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
 Originally Posted By: Sirdude
yah blaaskaak, that works with no change, so call that option 3 (maybe should even be 1) \:\)


I used &amp; to get my catagories xhtml valid. With just an & it gave a warning.

 Originally Posted By: SirDude
and giz, the more i think about it.. you are right... i prefer htmlspecialchars..


Me too, makes the whole page more xhtml valid.
_________________________
Top
#195776 - 08/30/07 03:19 AM Re: Categories with double quotes not showing up in Category Settings [Re: Yarp™]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
<< Validation Nazi...

go fig, he makes me feel like crap (it's truely been a very bad night) and then agrees with me; talk about being confused...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#195812 - 08/30/07 09:14 AM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
this is your once yearly -- giz.. so no need to be confused..

I'll leave you with a Jack Handy deep thought:

Friendship is like peeing your pants, everyone can see it, but only you can feel the true warmth.
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195814 - 08/30/07 09:57 AM Re: Categories with double quotes not showing up in Category Settings [Re: SD]
QSS Tim Offline

journeyman
Registered: 10/20/04
Posts: 90
Loc: Oroville, CA
I went into the database, changed them to "& quot ;" (added spaces to avoid turning into a quote). They displayed fine. But, I then got an idea and applied an update to the category management screen and they all went back to doublequotes and were invisible again in the management screen.

I'll go ahead change them back to "& quot ;" in the database for now as to avoid confusing the other admin with blank category fields (like I almost got confused and nearly deleted the "empty" ones, but thought to double-check the database out of paranoia.)

I will discuss with the powers that be the possibility of changing to single quotes though.

Thanks!


Edited by QSS Tim (08/30/07 10:00 AM)
Edit Reason: My quote tags turned into quotes
_________________________
UBB Since November 07, 2000.
Top
#195815 - 08/30/07 10:12 AM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
if you want to get back what the user typed in and have them NOT have to think "oh yah, it's a quote, so i have to do ".."

you'd just do htmlspecialchars fix (#2)..

:2c:
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195816 - 08/30/07 10:18 AM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
To type &quot; you have to type &amp;quot;

[edit: wow I got it right the first time ;)]
_________________________
Top
#195817 - 08/30/07 10:22 AM Re: Categories with double quotes not showing up in Category Settings [Re: Yarp™]
QSS Tim Offline

journeyman
Registered: 10/20/04
Posts: 90
Loc: Oroville, CA
I got the OK to change them all to single quotes.
_________________________
UBB Since November 07, 2000.
Top
#195891 - 08/30/07 07:20 PM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
with htmlspecialchars no one has to remember to type things as single or double quotes; it'll encode them on its own as it encounters them...

And I think SD just admitted to peeing his pants... I didn't know he was an astranaught...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#195893 - 08/30/07 07:24 PM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
/me bashes giz over the head with the BUILT IN firefox spell checker..

astranaught ?

you are slowly creating a new language daily ;\)
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#195901 - 08/30/07 07:36 PM Re: Categories with double quotes not showing up in Category Settings [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
'eh it didn't catch it... the suggestions where just straight bizarre... Besides, you know you love GizSpeach...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#195912 - 08/31/07 07:21 AM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
of course it didn't catch it, it was laughing too hard
Top
#195921 - 08/31/07 11:25 AM Re: Categories with double quotes not showing up in Category Settings [Re: Ian Spence]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
 Originally Posted By: Ian Spence
of course it didn't catch it, it was laughing too hard


reminds me of a friend i've had for many years. he's prolly one of the most knowledgeable process control guys out there, but when he goes to google and queries.. google just flat out say "huh? wtf do you mean?" (paraphrased of course)
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#200935 - 11/09/07 03:38 AM Re: [7.2.2] Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
*poof* fixed
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10489 Members
36 Forums
33841 Topics
181707 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image