Wordpress-like Shortcodes using CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Wordpress-like Shortcodes using CI (/showthread.php?tid=40244) |
Wordpress-like Shortcodes using CI - El Forum - 04-03-2011 [eluser]Mantero[/eluser] how do we create a shortcodes using CI? I want to make something like this: [list type=plus] -list 1 -list 2 -list 3 [/list] 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 [/list] this will display a list with 'yes/right' sign.. anyone know how to do this? this implementation just like a wordpress shortcode Wordpress-like Shortcodes using CI - El Forum - 04-03-2011 [eluser]Mantero[/eluser] I've found a great library that implement the basic thing using shortcodes http://ellislab.com/forums/viewthread/166197/#862175 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 Wordpress-like Shortcodes using CI - El Forum - 04-05-2011 [eluser]Mantero[/eluser] anyone can help? Wordpress-like Shortcodes using CI - El Forum - 04-05-2011 [eluser]umefarooq[/eluser] Hi hope this library can help you to solve your problem you can download from this link https://github.com/umefarooq/codeigniter-decoda you can read documentation for decode from here http://milesj.me/resources/script/decoda if have ported decoda for CI Wordpress-like Shortcodes using CI - El Forum - 04-05-2011 [eluser]Mantero[/eluser] hey umefarooq! thanks for that! will try those now thanks a lot! |