Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 04:33 pm EDT

Geeklog Forums

Walk through to create own plugins example


Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
Hi Admins,

Do you guys have any walk through tutorial or articles to create own plugins example, I am really having hard-time to create my own pluginns. My main problem is that I do not know whether I need a mysql database (quries_) connection or not. Since my moulde is wrote in using oralce database. I am really confused, please someone help me on this. I could post the code here but i do not want to take the space here, if some one could offfer me one on one help, i would really appereciate. MSN or IRC is the best for one on one help. I need this for my job, my manager is creaming on me....so I need this get done by tommorrow.

thanks

Suresh
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Have you looked at the Plugin Developers Guide - link in the top left block?
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
Hey Dirk,

I did, it doesn't have what I want. What I want is that, I want to create an admin plugins only, i do not want any public_html files, unless I give them permission to view it, plus i do not know what to with mysql queries on function.inc, install.php, config.php. the only thing that's bothering me is that those database table names. Do not know what to do with those.



Suresh
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Err - I'm not Dirk He's a nice guy and all but we don't look alike and his German is a lot better then mine. I speak Canadian better eh!

Regarding your plugin. It depends on what you are trying to do and it's possible you are not creating a plugin at all but just wrapping a mini-app inside Geeklog.

Without it being a plugin - you can still do the include of lib-common and call the functions to check if the user is a member of an admin group and if not exit for example. You can still call any common GL function - don't need to be a plugin to do that.

You will want it to be a plugin if you want to access any of the Plugin Specific API's. These are routines that are called if your component is registered as a plugin ( as a record in the plugins table) and has a matching plugin function.

So for example when the Admin Memu is created - it calls all registered and enabled plugins and checks of there is a plugin_getadminoption_myplugin where "myplugin" is the name of your plugin. If that function exists - then it returns an admin menuitem to be included.

Thus - it depends on what you want to do. Do you want to have new Site Permissions created that can be assigned via the group editor such as myplugin.user and myplugin.admin - which are then checked and used in your code to control access to features.

Review the list of plugin API's and determine if your need this level of integration.

I believe the Plugin Installers Guide explains that - it was more then a year ago that I last updated it. Another thing on my list.

Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
Thank you for your fast reply, geeklog Admins are really i never seen any site who does these kind of fast services.
Thanks again. I would be living on geeklog for at least another two years, unless i changed my career. heheheheh


Hey Blaine, I am sorry that I was kind of confused with the name. Hey, I live in canada, Waterloo too, I work at Research In motion. Hey, is it possible i could have ur MSN or IRC. I really don't have anyone to help on anythin..Everthing is on my own.


Quote: "Do you want to have new Site Permissions created that can be assigned via the group editor such as myplugin.user and myplugin.admin - which are then checked and used in your code to control access to features."

Hey that is what I want exactly, as you described above on the quote. Any hints, where should I go from here would be appreciated.

Thanks

Suresh
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
You can often find us in IRC in the #geeklog channel
Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EDT. The time is now 04:33 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