michaelbraden Posted February 5, 2014 Share Posted February 5, 2014 I am looking for help to apply bbcode in things such as messages and news updates and such, if anyone could help me that would be amazing :) Thanks. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted February 5, 2014 Share Posted February 5, 2014 You can download this BBCODE Parser @ http://nbbc.sourceforge.net/ Then use files: nbbc.php nbbc_lex.php nbbc_lib.php (where you would change the bbcode output, if you want to custom it) nbbc_main.php nbbc_parse.php And the smileys folder in your page where you want it to show add: require_once (DIRNAME(__FILE__) . '/nbbc_main.php'); $bbcode = new BBCode; And where your text is you want to add it like this: (But adding your own $var and text field) echo ''.$bbcode->Parse($var['text']).''; Quote Link to comment Share on other sites More sharing options...
sniko Posted February 5, 2014 Share Posted February 5, 2014 You can download this BBCODE Parser @ http://nbbc.sourceforge.net/ Then use files: nbbc.php nbbc_lex.php nbbc_lib.php (where you would change the bbcode output, if you want to custom it) nbbc_main.php nbbc_parse.php And the smileys folder in your page where you want it to show add: require_once (DIRNAME(__FILE__) . '/nbbc_main.php'); $bbcode = new BBCode; And where your text is you want to add it like this: (But adding your own $var and text field) echo ''.$bbcode->Parse($var['text']).''; Hey Lucky3809, I've not used NBBC, and it seems like you have. Do you know if it validates images as real images before it applies the [noparse][/img][/noparse]? Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted February 5, 2014 Share Posted February 5, 2014 Yes, it does validate images everything is validated in the LIB file. Quote Link to comment Share on other sites More sharing options...
michaelbraden Posted February 5, 2014 Author Share Posted February 5, 2014 sadly this made no sence to me, I uploaded it to my game, and now im stuck with what to do next :/ Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted February 5, 2014 Share Posted February 5, 2014 (edited) sadly this made no sence to me, I uploaded it to my game, and now im stuck with what to do next :/ I gave real simple instructions, you don't need all the files in the zip. The only files you need is in the "src" folder, minus the email one... I took the files out of the "src" folder and put them in the main public_html directory...But you can leave them in the folder just change the required link to that directory as I stated previously... And the "smiley" folder I left in tact left the smilies in the folder... And you need the nbbc.php in the main folder.. Edited February 5, 2014 by lucky3809 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.