Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
3 registered (Djuma, dslam, Pink Jazz), 18 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/02/08
Posts: 2
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 109
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Page 1 of 3 1 2 3 >
Topic Options
Rate This Topic
#195759 - 08/29/07 10:12 PM [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: 78
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 12:39 AM)
_________________________
A UBB system admin since November 02, 2000.

Top
#195763 - 08/29/07 11:09 PM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
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:
_________________________


Top
#195765 - 08/29/07 11:14 PM Re: Categories with double quotes not showing up in Category Settings [Re: Sirdude]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
Wouldn't it be better to just use htmlspecialchars?
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#195766 - 08/29/07 11:18 PM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
edit: i like giz' idea.
_________________________


Top
#195767 - 08/29/07 11:21 PM Re: Categories with double quotes not showing up in Category Settings [Re: Sirdude]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
A simple "no" would have been sufficient lol...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#195768 - 08/29/07 11:22 PM Re: Categories with double quotes not showing up in Category Settings [Re: Sirdude]
blaaskaak Offline

****

Registered: 08/30/06
Posts: 1299
Loc: Breda, NL
You might wanna try just putting in "
_________________________

Top
#195769 - 08/29/07 11:24 PM Re: Categories with double quotes not showing up in Category Settings [Re: blaaskaak]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
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 ;\)
_________________________


Top
#195771 - 08/29/07 11:37 PM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
 Originally Posted By: Gizmo
A simple "no" would have been sufficient lol...


then i get dinged for < 15 :neener:
_________________________


Top
#195772 - 08/29/07 11:50 PM Re: Categories with double quotes not showing up in Category Settings [Re: Sirdude]
blaaskaak Offline

****

Registered: 08/30/06
Posts: 1299
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 12:19 AM Re: Categories with double quotes not showing up in Category Settings [Re: blaaskaak]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
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...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#195812 - 08/30/07 06:14 AM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
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.
_________________________


Top
#195814 - 08/30/07 06:57 AM Re: Categories with double quotes not showing up in Category Settings [Re: Sirdude]
QSS Tim Offline
journeyman

Registered: 10/20/04
Posts: 78
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 07:00 AM)
Edit Reason: My quote tags turned into quotes
_________________________
A UBB system admin since November 02, 2000.

Top
#195815 - 08/30/07 07:12 AM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
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:
_________________________


Top
#195816 - 08/30/07 07:18 AM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
blaaskaak Offline

****

Registered: 08/30/06
Posts: 1299
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 07:22 AM Re: Categories with double quotes not showing up in Category Settings [Re: blaaskaak]
QSS Tim Offline
journeyman

Registered: 10/20/04
Posts: 78
Loc: Oroville, CA
I got the OK to change them all to single quotes.
_________________________
A UBB system admin since November 02, 2000.

Top
#195891 - 08/30/07 04:20 PM Re: Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
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...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#195893 - 08/30/07 04:24 PM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
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 ;\)
_________________________


Top
#195901 - 08/30/07 04:36 PM Re: Categories with double quotes not showing up in Category Settings [Re: Sirdude]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
'eh it didn't catch it... the suggestions where just straight bizarre... Besides, you know you love GizSpeach...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#195912 - 08/31/07 04:21 AM Re: Categories with double quotes not showing up in Category Settings [Re: Gizmo]
Ian Spence Moderator Offline


Registered: 06/04/06
Posts: 255
of course it didn't catch it, it was laughing too hard
_________________________
My UBB7 Forums

Top
#195921 - 08/31/07 08:25 AM Re: Categories with double quotes not showing up in Category Settings [Re: Ian Spence]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
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)
_________________________


Top
#200935 - 11/09/07 12:38 AM Re: [7.2.2] Categories with double quotes not showing up in Category Settings [Re: QSS Tim]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
*poof* fixed
_________________________


Top
Page 1 of 3 1 2 3 >