Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
HTML codes not showing
Hello,
I'm running support forum for some PHP scripts and every now and then I need to post some HTML/PHP codes in messages. I was using Vanilla 1.x before and have upgraded to latest version yesterday, but suddenly my HTML codes have disappeared.
Take a look at this comment: http://forums.cubescripts.com/discussion/comment/362#Comment_362
After "1. Open comments/templates/add-comment.php and find following codes: " there is a lot of HTML code but it's not showing up in thread. However, f I choose to edit comment I can see those codes.
I don't want those HTML codes to be parsed, just to be displayed. I'm also using G_SyntaxHighlighter plugin to highlight codes, it worked when I tested it so this also needs to work
Any suggestions?
I'm running support forum for some PHP scripts and every now and then I need to post some HTML/PHP codes in messages. I was using Vanilla 1.x before and have upgraded to latest version yesterday, but suddenly my HTML codes have disappeared.
Take a look at this comment: http://forums.cubescripts.com/discussion/comment/362#Comment_362
After "1. Open comments/templates/add-comment.php and find following codes: " there is a lot of HTML code but it's not showing up in thread. However, f I choose to edit comment I can see those codes.
I don't want those HTML codes to be parsed, just to be displayed. I'm also using G_SyntaxHighlighter plugin to highlight codes, it worked when I tested it so this also needs to work
Any suggestions?
Tagged:
0
Best Answer
-
UnderDog MVPCompare in your DB the content of the discussions from Vanilla v1 (old comments) and the new comments. Focus on the field "format"
There was an error rendering this rich post.
0
Answers
Even here I had to use < and > to mimic < and > but on my forum even < and > are ignored...
http://www.kensium.com/translation-and-ocr.html
There was an error rendering this rich post.
It could be to do with htmlLawed, basic formating or the conversion. I would try some new comments first.
grep is your friend.
I've tried adding new comment and here's what I get:
<a href="http://avr.am">test html</a>
<?php echo "test php"; ?>
^ this is getting parsed (html, not php)
<pre lang="html">
<a href="http://avr.am">test html</a>
</pre>
^ this is somewhat getting parsed - <a> tag gets rel="nofollow" but code is visible and highlighted
<pre lang="php">
<?php echo "test php"; ?>
</pre>
^ works fine
<code>
<a href="http://avr.am">test html</a>
<?php echo "test php"; ?>
</code>
^ works fine but there's no code highlighting
I tried to modify G_SyntaxHighlighter plugin to include <code> tags when highlighting but I didn't manage to get it to work.
Also, on old posts (imported from vanilla 1.x) all codes are still invisible. It's like they're parsed (so, not visible) but even text outside of tags is invisible.
edit: @jspautsch wrote what I did on top of my message while I was typing my message
htmlLawed defaults doesn't like styles for security reasons. This is not becuase of any JavaScript, I turned that off an it is still a problem. The syntax highlighter plugin in addon appears to be JavaScript based in which case that is not the culprit.
grep is your friend.
grep is your friend.
grep is your friend.
There was an error rendering this rich post.
So, can I just to one update on discussions/comments tables and change format from text to html?
There was an error rendering this rich post.