Wordpress-like Shortcodes using CI

how do we create a shortcodes using CI?

I want to make something like this:

[list type=plus]
-list 1
-list 2
-list 3

so the view will display a list with a 'plus sign' as a bullet(yeah the plus sign will be use css for sure)

but if use shortcode like this:

[list type=yes]
-list 1
-list 2
-list 3

this will display a list with 'yes/right' sign..

anyone know how to do this?

this implementation just like a wordpress shortcode

I've found a great library that implement the basic thing using shortcodes


but my problem is I don't know how to alter the library to allow me to use an opening and closing tags, and have something within the tags, just like my example above

anyone can help?

Hi hope this library can help you to solve your problem you can download from this link


you can read documentation for decode from here


if have ported decoda for CI

hey umefarooq! thanks for that! will try those now

thanks a lot!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.