View Full Version : Enable HTML Special Characters ("&" is being changed to "&")
August 22nd, 2011, 06:10 PM
If I upload an image with that contains an ampersand (&) in the title, the ampersand is translated to "&".
How can I fix this if I'm wanting it to show up as: &
August 22nd, 2011, 06:26 PM
well it displays as & as that is what is in your database I suppose.
However what eludes me is why yours would display as this because if you allow html we run an extra line like this to convert certain characters to html display
if ( $Globals['allowhtml'] == "yes" ) $desc = un_htmlspecialchars($desc);
August 22nd, 2011, 06:29 PM
Where do I "allow" HTML?
August 22nd, 2011, 06:47 PM
do you have the settings in admin options in admin to allow html set to yes?
August 23rd, 2011, 05:21 PM
I tried doing that in the "Edit Categories" section, but it didn't work.
Where do I do it?
August 23rd, 2011, 08:00 PM
the setting I am referring to is in admin options in the admin panel.
August 23rd, 2011, 08:04 PM
under "vBGallery" >> "Modify Settings"??
August 23rd, 2011, 11:39 PM
You might be a little confused. This is the Reviewpost support forum which is a totally different product.
Are you posting for Reviewpost which does allow html or vbGallery
This is a test in vbgallery
August 23rd, 2011, 11:43 PM
Yes, apparently I posted in the wrong gallery.
This is for Photopost for vbulletin 4
August 23rd, 2011, 11:54 PM
There are two gallery products which one are you using and post a url of your issue so we can see the problem.
August 24th, 2011, 12:33 AM
I'm using the product for vbulletin 4.
Here is a picture of the problem (this forum won't let me link, so here it is, broken up:
August 24th, 2011, 10:24 AM
Your using vbGallery
Maybe try editing your showimage.php file and add this line in bold
$adv_options = unserialize($image['adv_setting']);
$image['title'] = htmlspecialchars_uni['title']);
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.