https://www.icyphoenix.com/viewtopic.php?f=1&t=7143&p=48880#p48880
-----------------------------------
Mighty Gorgon
Sat 08 May, 2010 11:07

Guestbook Plugin Released For Debugging And Show Off
-----------------------------------
Hi all,
I have added to SVN ([url=http://www.assembla.com/code/icy_phoenix/subversion/nodes/extras/trunk/guestbooks]SVN Guestbook) a new plugin which I have developed for my own use, but I want to share with you to share the powerful of the new plugins engine which I have coded and will be included in next Icy Phoenix.

Installing this plugin is really easy, you just need to copy all files to your Icy Phoenix root and then install it from ACP => Plugins.

After you have installed it you can create a new guestbook from guestbooks.php and then manage it through guestbook.php. How it works is really straightforward.

I have also created a CMS block to allow it's usage from a CMS page.

New plugins folders and files structure should be really similar to the current Guestbook plugin, so you can get an idea on how a new plugin should be coded. I will create a small tutorial when I'm almost sure that the structure is stable and won't change.

In the meantime just consider this as a draft:
[list][*][b]adm[/b]: admin modules and settings (Guestbook plugin doesn't have working ACP modules yet... but you can see a demo of a couple of settings there just to show you how it works!)
[*][b]docs[/b]: contains all files related to instructions or documentations
[*][b]includes[/b]: contains plugin specific functions and classes
[*][b]install[/b]: contains install/update/uninstall instructions which will be automatically managed in ACP
[*][b]language[/b]: contains plugin specific languages
[*][b]templates[/b]: contains plugin specific templates files[/list]

If you have a bit of confidence with PHP you will see how easy is to add ACP modules, specific settings and installation instructions. Everything is working as stand alone using common classes and functions already present in Icy Phoenix (which I'm debugging from a lot of time...). You will only need to integrate special switches if your plugin should integrate with already present features... but I'm working on this aspect trying to create specific hooks to be used for special common features which may requires plugins (such as forums and topics).

Here is a demo of the Guestbook plugin on a live website:
[url=http://www.annuncidimatrimonio.com/guestbooks.php]Guestbooks List
[url=http://www.annuncidimatrimonio.com/guestbook.php?gid=1]Stand Alone Guestbook
[url=http://www.annuncidimatrimonio.com/users/lisaegiovanni/index.php?page=6]Guestbook Block In CMS Page

Feedbacks are really welcome.

Thanks.


