Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 02:20 pm EDT

Geeklog Forums

What is a good example plugin?


Status: offline

rav

Forum User
Chatty
Registered: 01/14/03
Posts: 37
I was wondering which plugin would be a good \"example\" plugin, that I could look at, and try to understand how the API is implemented. I\'ve read the plugin docs, but find them lacking (mostly due to my own limitations). I\'d like to pick apart a plugin that is fairly simple, yet would give me some insight as to how the API works. I want to make a plugin, or a series of plugins that work togeather to help IT shops manage their hardware. To cover asset management, change management, trouble tickets, etc, all built around the geeklog user & security systems. I\'ve done some php work, so I\'m not a total n00b, yet I am still unsure of how best to implement such a system with geeklog. I had considered just starting from scratch, but really, the geeklog security system from what I\'ve seen is perfect for my needs, so no sense re-inventing the wheel. Appreciate any advice anyone can offer. Rav
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
There is the Universal Plugin. or the staticpages plugin.
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Maybe you can list some of your questions. I think you will find a lot of similarities between the various plugin functions.inc file - which is where the plugin code that is called from the API functions that are embedded in the core GL code. The CORE GL code - has PLG_someAPIcall() type functions embedded in the code. Such as to create the Admin Menu Block. It will then check for the existance of a common function in each of the plugin functions.inc file - in the case of a plugin that is registered as \"myplugin\" - it would be plugin_getadminoption_myplugin() I don\'t know if that is even one of your questions but you need to start with some core code for the app and you can then add the plugin functions to integrate some of the API\'s. The user and group integration is really not a API integration but a matter of using some of the common variables and functions.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

rav

Forum User
Chatty
Registered: 01/14/03
Posts: 37
brainy
As suggested, I took a look at the plugin toolkit, and will definetly play around with this some more (thanks for the link). Hopefully I\'m not biting off more than I can chew. Smile I guess my biggest question will be someting along the lines of \"How can my plugin participate in the GL security on a per item basis?\" Sorta like how each story post works. For example, if I have an asset manager, how would each asset participate in the group security model, I only want certain people in certain groups to see certain assets, and maybe a subset of those users to be able to actually modify them. A good example of what I mean I suppose would be your own forum plugin blaine. I can create groups in GL, then assign those groups access to different parts of the forum. Are these API functions or common fuctions? heh, the more I think about this, the more I begin to wonder if I am even capable of it. Smile
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Your asset record is going to need a field where you can assign that item to a GL Group. Then when you are displaying the records, you would only show records for which the user is a group member. Using SEC_inGroup is one way to check the record. for each audit record .... if (SEC_inGroup($grp_id)) { display audit record }
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

wlparks

Forum User
Junior
Registered: 02/21/03
Posts: 24
I used the chatterblock a lot as an example.

eak

 Quote

All times are EDT. The time is now 02:20 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content