CodeIgniter Forums
Wordpress "shortcodes" like library for Codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: Wordpress "shortcodes" like library for Codeigniter (/thread-33599.html)



Wordpress "shortcodes" like library for Codeigniter - El Forum - 09-01-2010

[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.


Wordpress "shortcodes" like library for Codeigniter - El Forum - 09-01-2010

[eluser]Shanto[/eluser]
Looks interesting. i will share my experience after using this library. Thanks for Sharing.


Wordpress "shortcodes" like library for Codeigniter - El Forum - 02-26-2011

[eluser]Unknown[/eluser]
That's what I'm looking for. Few days ago I'm install wordpress, add some contact form plug-in and simple short code past in page and boom form is here. I don't like joomla or wordpress I like codeigniter and just start looking for peace of code which can do same.

I didn't test your code but it's look fantastic.

I don't post on forums becouse I don't think my english isn't good and sometimes I don't know how to write something but when I saw that is only one reply for your code I register my account and wrote this.

Thanks for share this nice peace of code with us.


Wordpress "shortcodes" like library for Codeigniter - El Forum - 06-15-2011

[eluser]tanero[/eluser]
Bravo.. I have tested and worked like a charm. thanks.


Wordpress "shortcodes" like library for Codeigniter - El Forum - 04-30-2012

[eluser]Kevin Phillips[/eluser]
Link goes to an empty page ?


Wordpress "shortcodes" like library for Codeigniter - El Forum - 04-30-2012

[eluser]codeninja[/eluser]
I am having the same issue.


Wordpress "shortcodes" like library for Codeigniter - El Forum - 05-01-2012

[eluser]codeninja[/eluser]
Can you upload the file again?


Wordpress "shortcodes" like library for Codeigniter - El Forum - 05-06-2012

[eluser]memVN[/eluser]
I can't download. You can upload again. Thanks