• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wordpress "shortcodes" like library for Codeigniter

#1
[eluser]Unknown[/eluser]
Hi,

I just made a lib that i want to share here.
This library ( "posts_parser") parse specific code and arguments in string and call a function that replace this string with what you want. Just like Wordpress shortcodes function does.

It's mainly useful for backend posts management, through any WYSIWYG editor.

This library as two files:
"Posts_parser" (the core),
"Tags_functions" (child class, automatically callled by posts_parser, where you write parsing functions).

I decide to use 2 files to separate core and specific site functions, but you can merge them in a single file if you prefer.

syntax handled is like this:
Code:
[function arg1="value" arg2="value" ..etc]

In the archive, you'll find a example controller and view that show how the lib works.

Hope it's help.


Messages In This Thread
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 09-01-2010, 09:15 AM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 09-01-2010, 09:57 PM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 02-26-2011, 10:32 AM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 06-15-2011, 02:47 AM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 04-30-2012, 05:05 PM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 04-30-2012, 08:15 PM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 05-01-2012, 07:58 PM
Wordpress "shortcodes" like library for Codeigniter - by El Forum - 05-06-2012, 08:47 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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