View Single Post
Old December 4th, 2008, 05:05 PM   #3 (permalink)
Luciano
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Well for me it didnt.. checked all cached stuff..
the problem is users usually only edit the title right after upload..
so it can happen quite often..

i'm just testing a fix.. maybe you could test it also.. because I never use category 3 level only have level 1 and 2 installed.. AND I never use member categories.
Just added a 3rd level and it works.. but who knows.

ok.. here we go:
2 changes in editimage:
first the query:
added the images.title
AND
added a left join categories.. but with lastimageid=imageid
so we only get lastimagetitle and parentlist IF image is last image...

in editimage find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
then, a bit lower after the normal update we add our update:
find:
Code:
Content visible to verified customers only.
and above add:
Code:
Content visible to verified customers only.
thats it.

Luc

PS: we should sooner or later replace all the addslashes(htmlspecialchars($image['title'])) with $db->escape_string(htmlspecialchars_uni($image['title']))
which I think is more appropriate and vbulletin standard.

I did it on a testinstall for all title and description database operations and it works fine with many special characters...

Last edited by Luciano; December 7th, 2008 at 07:36 AM. Reason: CODE UPDATED
Luciano is offline   Reply With Quote