Nullified Posted August 17, 2012 Share Posted August 17, 2012 I am trying my hardest to display simple php code in my knowledge articles, but WHMCS keeps html commenting the code. I just want <?php phpinfo(); ?> to show in my article. I have tried all these: <div><?php phpinfo(); ?></div> <code><?php phpinfo(); ?></code> <div><code><?php phpinfo(); ?></code></div> <blockquote><code><?php phpinfo(); ?></code></blockquote> <blockquote><?php phpinfo(); ?></blockquote> <div><?php phpinfo(); ?></div> <code><?php phpinfo(); ?></code> <div><code><?php phpinfo(); ?></code></div> <blockquote><code><?php phpinfo(); ?></code></blockquote> <blockquote><?php phpinfo(); ?></blockquote> 0 Quote Link to comment Share on other sites More sharing options...
RebelOne Posted August 17, 2012 Share Posted August 17, 2012 Not the ideal solution I know, but you could use an image. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 17, 2012 Share Posted August 17, 2012 Give this a try, it worked for me: <pre> <?php phpinfo(); ?> </pre> 0 Quote Link to comment Share on other sites More sharing options...
lance Posted August 17, 2012 Share Posted August 17, 2012 jclarke is right, we use the <pre> code </pre> tag also and wors fine for us 0 Quote Link to comment Share on other sites More sharing options...
Nullified Posted August 17, 2012 Author Share Posted August 17, 2012 What the hell is wrong with my WHMCS? It changes even that to <pre><!--?php phpinfo(); ?--></pre> 0 Quote Link to comment Share on other sites More sharing options...
anup Posted August 20, 2012 Share Posted August 20, 2012 What the hell is wrong with my WHMCS? It changes even that to <pre><!--?php phpinfo(); ?--></pre> you must use <pre> <?php phpinfo(); ?> </pre> if you use <pre><?php phpinfo(); ?></pre> it will automatic convert to <pre><!--?php phpinfo(); ?--></pre> 0 Quote Link to comment Share on other sites More sharing options...
Nullified Posted August 20, 2012 Author Share Posted August 20, 2012 That doesn't work either. I think I have a broken WHMCS.... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted August 23, 2012 WHMCS Support Manager Share Posted August 23, 2012 Hi, Try <xmp> and </xmp> tags. That's worked for me in the past. 0 Quote Link to comment Share on other sites More sharing options...
Nullified Posted August 23, 2012 Author Share Posted August 23, 2012 Hi,Try <xmp> and </xmp> tags. That's worked for me in the past. worked like a charm, ty 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.