FreiChat related discussions
Create Own Drivers

Hello everybody,

How i can create my Own Drivers like DZCP for DeVilz Clanportal ?

What i the Basic for the drivers ?


Iam a PHP-Coder for DZCP, and i will be write a Driver for Freichat.

The Costum Inclusion i not so good..

Pleas anyone can Help me ?


Greez Stefan

Hello everybody, How i can create my Own Drivers like DZCP for DeVilz Clanportal ? What i the Basic for the drivers ? Iam a PHP-Coder for DZCP, and i will be write a Driver for Freichat. The Costum Inclusion i not so good.. Pleas anyone can Help me ? Greez Stefan

To create a driver , copy paste any existing driver like Joomla , except for base.php and Custom.php

Then , make sure name of the file should be same as name of the class .

for eg , if you filename is DZCP.php then the class name should also be DZCP .

Then , in getDBdata() , you need to edit the query o as to get the user name and user id of the current user.

Then you can over ride the following functions from the base class
get_guests()
get_users()
and write your own query to get guests+users or only users .

We will be adding detailed docs on how to create a driver soon ,

To create a driver , copy paste any existing driver like Joomla , except for base.php and Custom.php Then , make sure name of the file should be same as name of the class . for eg , if you filename is DZCP.php then the class name should also be DZCP . Then , in getDBdata() , you need to edit the query o as to get the user name and user id of the current user. Then you can over ride the following functions from the base class get_guests() get_users() and write your own query to get guests+users or only users . We will be adding detailed docs on how to create a driver soon ,
Necessity is the mother of all inventions!
146
4
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft