Skip to Content Skip to Menu

help with building a plugin

17 years 8 months ago #33838 by steveometer
help with building a plugin was created by steveometer
I have some code together to make a nice plugin

What would help me is if someone could provide me with the framework to make it a cd plugin

basically i need it set up to respond to:
onafterlogin
onbeforelogout
onregistration

I will give patial created credit and a link to your website in the plugin

Contact me via my website steve-o-meter.com

SoM

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 8 months ago #33841 by mikko
Replied by mikko on topic Re:help with building a plugin
See plugin api documentation at downloads. If this is not available, you can find the document posted at the forum by searching for "api"

mikko

Please Log in or Create an account to join the conversation.

  • p9939068
  • p9939068
  • OFFLINE
  • Posts: 186
  • Thanks: 0
  • Karma: 117
17 years 8 months ago #33844 by p9939068
Replied by p9939068 on topic Re:help with building a plugin
Also try the helloworld plugin if you hadn't.


Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch

Please Log in or Create an account to join the conversation.

17 years 8 months ago #33867 by steveometer
Replied by steveometer on topic Re:help with building a plugin
*slaps forehead*

sorry, so im gonna attach the plugin ive made, and im gonna pm you guys to poke it over and see what you think

its a shoutbox announcer for login/out and newuser

requires shoutbox to be installed

im just not sure i got it all right

SoM

Post edited by: steveometer, at: 2007/03/19 18:37
Attachments:

Please Log in or Create an account to join the conversation.

17 years 8 months ago #33875 by steveometer
Replied by steveometer on topic Re:help with building a plugin

Attachment shoutbox_and_announcer_files.zip not found



This is the module, component and plugin all in one, the most recent version of my code is in there, its just not actually 'shouting'

PLEASE help me

this is a simple thing, and why isnt it working, where am i missing a call i need or ect??

SoM

im gonna keep at this, but im sure im missing a global or something...........

Attachments:

Please Log in or Create an account to join the conversation.

  • TungstenX
  • TungstenX
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #63502 by TungstenX
Replied by TungstenX on topic Re:help with building a plugin
I know documentation is the bane of any developer's existence and I don't claim to be great at it either but The CBRC2b10-bb_API.pdf document needs a lot more flesh. Most of the info I get from it, I need to check with trial and error, or hunt for it on the forums.

To give an example

User session events
CB triggers two user session events u can use to authenticate users with external
services, like for example LDAP or 3PD forums.
[code:1]//Login User event
function onBeforeLogin ($username, $passwd2)
function onAfterLogin ($row, true)
//Logout User event
function onLogout ($row, true)[/code:1]


So, for e.g. onAfterLogin:
1. What is $row and true (which seems not to be a parameter or is it always true?)
2. What should be returned?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum