|
Joined: Oct 2004
Posts: 86
journeyman
|
journeyman
Joined: Oct 2004
Posts: 86 |
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
Last edited by Sirdude; 11/09/2007 4:39 AM.
UBB Since November 07, 2000.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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: $cat[$i]['title'] = $ctitle;
2b. replace: $cat[$i]['title'] = htmlspecialchars($ctitle);
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Wouldn't it be better to just use htmlspecialchars?
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
A simple "no" would have been sufficient lol...
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
You might wanna try just putting in "
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
A simple "no" would have been sufficient lol... then i get dinged for < 15 :neener:
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
yah blaaskaak, that works with no change, so call that option 3 (maybe should even be 1) I used & to get my catagories xhtml valid. With just an & it gave a warning. and giz, the more i think about it.. you are right... i prefer htmlspecialchars.. Me too, makes the whole page more xhtml valid.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
<< 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...
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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.
|
|
|
|
Joined: Oct 2004
Posts: 86
journeyman
|
journeyman
Joined: Oct 2004
Posts: 86 |
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!
Last edited by QSS Tim; 08/30/2007 10:00 AM. Reason: My quote tags turned into quotes
UBB Since November 07, 2000.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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)..
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
To type " you have to type &quot;
[edit: wow I got it right the first time ;)]
|
|
|
|
Joined: Oct 2004
Posts: 86
journeyman
|
journeyman
Joined: Oct 2004
Posts: 86 |
I got the OK to change them all to single quotes.
UBB Since November 07, 2000.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
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...
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
/me bashes giz over the head with the BUILT IN firefox spell checker.. astranaught ? you are slowly creating a new language daily
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
'eh it didn't catch it... the suggestions where just straight bizarre... Besides, you know you love GizSpeach...
|
|
|
|
Joined: Jun 2006
Posts: 196
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 196 |
of course it didn't catch it, it was laughing too hard
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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)
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Ruben),
1,248
guests, and
268
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|