Icy Phoenix

     
 


Tags And Keywordsguestbook, plugin

Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Guestbook Plugin Released For Debugging And Show Off 
 
Hi all,
I have added to SVN (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:
  • adm: 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!)
  • docs: contains all files related to instructions or documentations
  • includes: contains plugin specific functions and classes
  • install: contains install/update/uninstall instructions which will be automatically managed in ACP
  • language: contains plugin specific languages
  • templates: contains plugin specific templates files


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:
Guestbooks List
Stand Alone Guestbook
Guestbook Block In CMS Page

Feedbacks are really welcome.

Thanks.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty Gorgon - View user's profileSend private messageVisit poster's websitePersonal Gallery 
Back to topPage bottom
Thanks for the useful Topic Mighty Gorgon:
KugeLSichA (08 May), Gianni PB (08 May), ThE KuKa (25 May), raphael10 (25 January) 
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Guestbook Plugin Released For Debugging And Show Off 
 
Fantastic first chance i get I will try it out...

great work

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWho - View user's profileSend private messageVisit poster's websitePersonal Gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guestbook Plugin Released For Debugging And Show Off 
 
Nice idea. I'll give you some feedbacks as I just tried it but, before, I'd like to know the main purpose behind this mod because actually what I see is a kind of article writing by anyone in a specific page with specific com's etc ... So, what's the purpose ?

By the way, these are some ideas around it to improve the plugin : 1st) being able to post the books from our profile (make a new part in the profile to do it). 2) being able to manage it (from ACP for main options/settings and from profile for cats / subsections).

I think yet it's just a release to implement and try out the plugin system but these are still some interesting ideas that may be worth to be checked out

Just a point about plugin system : when you put the plugin in the directory and check your ACP, you see that you can " install " the mod and " enable " it. But both options does the same. It would be a good idea to make the difference like that :
- install : install the tables and part required
- enable : as it say ... just enable it to use it
- disable : NOT UNININSTALL ! It only disable the mod as it would do for FTR or some over global vars.
- uninstall : remove completely the mod by removing the parts of the BDD
(- delete : delete the files of the mod from the server ?)

Why ? Because, as I checked it, actually enable means install and disable means unininstall. But sometimes we may would like to simply disable it because we don't need it for some times or we'd like to check few things around it WITHOUT loosing the parts of the bdd linked to the plugin.

I hope it will help you Regards,
 



 
Yros - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guestbook Plugin Released For Debugging And Show Off 
 
should be easy to add a switch to the modules ACP. Since ACP isĀ“nt working for this mod still.

MG probably will add this option to there.
 




____________
Driving me and my PC crazy, trying to create some pluggins
Icy-Mods.com ( IP 2.0 RC-1)
 
spydie - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guestbook Plugin Released For Debugging And Show Off 
 
Yros, install, update, uninstall, enable, disable, means just what you are supposing.

  • INSTALL: installs all db tables
  • UPDATE: updates db where needed
  • UNINSTALL: removes all db entry related to the plugin
  • ENABLE: enables the plugin (once installed!)
  • DISABLE: disables the plugin (once installed!)


Regarding the Guestbook Plugin the purpose is to allow each user to have its own guestbook where other users may leave greetings or comments... it's not a blog! It is like a "per user" public shoutbox.

Finally, regarding ACP options, (as I wrote in the first post) Guestbooks plugin has just a demo ACP module with a couple of fake settings which won't affect everything. Those settings are there just to show how easy (under a developer point of view) is creating a new ACP module with the settings needed.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty Gorgon - View user's profileSend private messageVisit poster's websitePersonal Gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guestbook Plugin Released For Debugging And Show Off 
 
Yup, that's also what I thought BTW the purpose is completed =) I just wanted to know a thing as I'm not really a good coder and that I couldn't answer by myself by looking the code but ... The files you put on your root/plugins/{name_of_the_plugin} REPLACE the olds one or ADD the contained code ? Because, for example, to adapt some actual mods into plugins, how would it be possible if they require some core files editing ?
 



 
Yros - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guestbook Plugin Released For Debugging And Show Off 
 
Thanks MG for charing this great guestbook plugin  
 




____________
TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
 
TheSteffen - View user's profileSend private message 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events