Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: slapshot on April 27, 2012, 11:19:07 AM

Title: I-Bay creation and event/action callback
Post by: slapshot on April 27, 2012, 11:19:07 AM
Hi all,

reading SME Admin manual - chapter 14 there is a chance to use i-bay to share documents with my customers. I found a php script to use in every ibay I created so it is simple enough for me and customers to manage too. Also, reading SME Developer manual with event/action I can automate some tasks. What I would need is at i-bay creation to copy into the same ebay a php script, a directory and erase index.html .

With actions this is possibile but I would have to know i-bay name such as parameter. Is it possible ? Or there is another simplest solution to accomplish that ?

Thanks.
Title: Re: I-Bay creation and event/action callback
Post by: Stefano on April 27, 2012, 12:46:53 PM
take a look at ibay-modify event..
you could also think about a db variable to trigger the action
something like

Code: [Select]
db accounts setprop ibayname UseMyScript yes

take also a look here: http://wiki.contribs.org/Webshare

HTH