MyBB Community Forums

Full Version: Insert some code in html
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! Sorry for my English, and i'am new in mybb. Please help me with my issue.

I need to embedd google prettify (syntax highlighter) js-script into the output page. I was trying to find something about "<script>..</script>" in php files to insert my code near that. But i did't success. So how can i insert some tags in the user-side html ?

Please, - I don't want to use codehighlighters, thats come as plugins in mybb mods - there is no powerfull one.
http://mybbhacks.zingaburga.com/showthread.php?tid=464

You can use a Template Conditionals plugin like this one to allow you to put PHP code into the templates. I found this to be the easiest solutions.

Place your codes into existing templates, or even create your own custom templates.
weBex, thank for your reply. I was think about nobody understood me)
No problem, did that work out for you?
I was found greate sintax highlighter at http://alexgorbatchev.com/SyntaxHighlighter/. The mybb solution lays here http://mods.mybb.com/view/mybb-syntax-highlighter-v1-1. Thats all i needed at this moment. But thanks you anyway.