Previous Thread
Next Thread
Print Thread
Hop To
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
SD Offline
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:
PHP Code
$cat[$i]['title'] = $ctitle; 
2b. replace:
PHP Code
$cat[$i]['title'] = htmlspecialchars($ctitle); 

2c

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Wouldn't it be better to just use htmlspecialchars?


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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
edit: i like giz' idea.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
A simple "no" would have been sufficient lol...


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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
You might wanna try just putting in "


[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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) smile

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

giz 1, sd 0 wink

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by Gizmo
A simple "no" would have been sufficient lol...


then i get dinged for < 15 :neener:

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Sirdude
yah blaaskaak, that works with no change, so call that option 3 (maybe should even be 1) smile

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.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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...


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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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
SD Offline
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)..

2c

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
To type &quot; you have to type &amp;quot;

[edit: wow I got it right the first time ;)]


[Linked Image from siemons.org]
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
UBB.threads Developer
UBB.threads Developer
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...


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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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 wink

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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...


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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Jun 2006
Posts: 196
I
enthusiast
enthusiast
I Offline
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by Ian Spence
of course it didn't catch it, it was laughing too hard
[Linked Image from sirdude.com]

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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
*poof* fixed


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (DennyP, 1 invisible), 969 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)