Comments (7)
Which server manager are you trying to implement?
from boxbilling.
ISPCP. (NOT ISPConfig). It does not have an official API yet. What directory do I manage event processing against? Do you have any code examples to look at?
from boxbilling.
This guide will help you develop your own server manager extension.
Server manager extension consists of one php class. Your server manager class has to extend Server_Manger
abstract class. To find out what methods must be implemented in your new extension examine Server_Manager
class located at bb-library/Server/Manager.php
file
Almost all class methods receives Server_Account
parameter. Examine bb-library/Server/Account.php
file to see what methods are available for the Server_Account
object.
This code https://gist.github.com/1801871 will help you understand the concept of server manager class. Read methods comments for detailed description.
from boxbilling.
What directory do i put event listeners in?
from boxbilling.
when using hooks what functions/events can I use? The documentation refers to old events for the previous release. What are the new naming standards for this release?
from boxbilling.
Can you provide a example hook to email admin when a new client signs up, please?
from boxbilling.
These are the new hook events. Just copied from upcoming documentation. Currently without descriptions, but should be self explanatory.
onAfterAdminCloseTicket
onAfterAdminInvoiceDelete
onAfterAdminInvoiceRefund
onAfterAdminInvoiceUpdate
onAfterAdminLogin
onAfterAdminOpenTicket
onAfterAdminPublicTicketClose
onAfterAdminPublicTicketOpen
onAfterAdminPublicTicketReply
onAfterAdminReplyTicket
onAfterAdminSubscriptionCreate
onAfterAdminSubscriptionDelete
onAfterClientCloseTicket
onAfterClientCreateForumTopic
onAfterClientLogin
onAfterClientOpenTicket
onAfterClientPasswordResetConfirm
onAfterClientPasswordResetRequest
onAfterClientProfileUpdate
onAfterClientPublicTicketClose
onAfterClientPublicTicketOpen
onAfterClientPublicTicketReply
onAfterClientReplyTicket
onAfterClientSignUp
onBeforeAdminClientDelete
onBeforeAdminClientPasswordChange
onBeforeAdminClientUpdate
onBeforeAdminDeleteCurrency
onBeforeAdminInvoiceApprove
onBeforeAdminInvoiceDelete
onBeforeAdminInvoiceRefund
onBeforeAdminInvoiceSendReminders
onBeforeAdminInvoiceUpdate
onBeforeAdminOpenTicket
onBeforeAdminPublicTicketOpen
onBeforeAdminSettingsUpdate
onBeforeAdminStaffApiKeyChange
onBeforeAdminStaffCreate
onBeforeAdminStaffDelete
onBeforeAdminStaffPasswordChange
onBeforeAdminStaffProfilePasswordChange
onBeforeAdminStaffProfileUpdate
onBeforeAdminStaffUpdate
onBeforeClientCheckout
onBeforeClientOpenTicket
onBeforeClientProfilePasswordChange
onBeforeClientProfileUpdate
onBeforeClientPublicTicketOpen
onBeforeClientSignUp
Your hook to email admin when client signs up could look like this:
<?php
class Hook_Bpadmin
{
public static function onAfterClientSignUp(Box_Event $event)
{
mail('[email protected]', 'New client signed up', 'I have received new client signup');
}
}
Place it to bb-library/Hook/Bpadmin.php
from boxbilling.
Related Issues (20)
- Auto login for cpanel users[Feature Request]
- Indian Billing GST Tax Rules[Feature Request] HOT 2
- admin Login page not found and 404 error after first install HOT 14
- APC or OPcache?
- [Feature Request] Pterodactyl panel compatibility
- [Feature Request]
- [Bug] Could not connect to database. Please check database details. You might need to create database first. HOT 3
- Unable to use after successful installation HOT 8
- [Bug] Admin url not work it gives 404 error HOT 1
- [Bug] HOT 1
- [Bug] HOT 1
- [Bug] Order link not working when using https: version of my site HOT 1
- Update the readme.md file. HOT 2
- Nobody should use BoxBilling, please stop giving it false development activity HOT 1
- [Bug]
- [Bug]
- [Task]
- [Bug]
- [Bug]
- [Feature Request]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boxbilling.