Click to See Complete Forum and Search --> : Percent Char. not rendering correctly
tirna
08-05-2010, 09:50 PM
On 2 occasions I have noticed that when I use the percent character in either expressing css widths as a percentage or using it as the "remainder" operator in php code that it does not always render correctly on the screen after I submit my post.
It appeares to be random. Most of the time it renders correctly and the percent char. appears in the post but occasionly in place of the percent char I see what appears to be the html notation for the percent special character.
Should we be using the special char. notation for special characters in our posts or should the code tags take care of rendering special chars. correctly?
This is not a big issue but it would be nice to know why the percent char. is sometimes not rendered correctly and most of the time it is.
I would say it would probably be caused by either your setup or a bug in the forum software. Either way, I doubt there is much we can do about it. Unless you feel like pursuing it with the vBulletin guys. :p
I myself have never had this problem. So, I can't really tell from experience...
Maybe a screenshot showing the issue or something?
tirna
08-08-2010, 01:08 AM
Thank you for your reply.
I have attached a screen dump of my post where I noticed this issue. It comes from this thread (http://www.webdeveloper.com/forum/showthread.php?p=1106748#post1106748) (post #8).
You can see in the line beginning
if($totRows......
a string of characters - ampersand,hash,37; - which should be a percentage character because I am checking what the remainder is in a division.
Further down in the code, not shown in the screen dump, the percentage character renders correctly.
Please don't misunderstand me. This is not a big issue. I am enquiring out of curiosity as to why this is happening, albeit randomly and rarely.
I have checked to make sure I have no embeded characters in my code.
Hmm... Now that I see it, I'd say it's definitely a bug in the forum software. That IS very odd... :confused:
tirna
08-08-2010, 04:03 AM
ok, thanks :)
tirna
08-20-2010, 11:00 PM
Hmm... Now that I see it, I'd say it's definitely a bug in the forum software. That IS very odd... :confused:
Looks like it's a bug with the PHP Code Tags.
Earlier today I posted some PHP code at
http://www.webdeveloper.com/forum/showthread.php?p=1109874#post1109874 (post#5) and wrapped it in php code tags and again the percentage character didn't render correctly in the post.
I removed the php code tags and replace them with the plain vanilla code tags (using the # button) and the percentage character rendered correctly.
The guys at vBulletin can sort it out "in the fullness of time" :)