Jump to content
MakeWebGames

Help Apply BBCODE


michaelbraden

Recommended Posts

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']).'';
Link to comment
Share on other sites

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]?

Link to comment
Share on other sites

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 by lucky3809
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...