[geeklog-devtalk] Adding a couple plugin functions
Turias
geeklog at sebastiancelis.com
Tue Jun 29 14:46:50 EDT 2004
It just doesn't seem possible to accomplish what I need to do using the
current Geeklog plugin architecture.
Basically, my plugin needs to set login-related cookies for use by
applications other than the main Geeklog install. For example, I have
considered using this to write a plugin that allows you to do the
following:
1) The user logs into a Geeklog instance A
2) On login, the plugin sets login cookies for Geeklog instances B and C
3) Now the user can visit all three Geeklog instances seamlessly
without logging in three separate times.
Of course, this would only work if all Geeklog instances are located on
the same domain and would preferably require some extra user profile
synchronizations. Theoretically, this functionality could also be used
to bridge access to third party apps with minimum work.
Unfortunately, there currently isn't any way for a plugin to do this.
I could probably hack something together in the user.php and
lib-common.php files, but this doesn't seem like a good way to
distribute plugins. Having plugin functions called on login and logout
could be quite powerful for plugin developers.
Please let me know if you think there is a better way to do this. It
seems to me, though, that this would be the cleanest way of going about
things.
Thanks,
Turias
On Jun 29, 2004, at 1:13 PM, Tony Bibbs wrote:
> <snip>
> I recently began working on a plugin that needs to set and delete
> cookies when the user logs in and out of GeekLog. Unfortunately, this
> does not seem possible with the current GL code.
> </snip>
>
> Why doesn't it work exactly?
>
> --Tony
>
> Turias wrote:
>
>> No one has anything to say about this?
>>
>> - Turias
>>
>>
>> On Jun 25, 2004, at 7:48 PM, Turias wrote:
>>
>>> Hey everyone,
>>>
>>> I recently began working on a plugin that needs to set and delete
>>> cookies when the user logs in and out of GeekLog. Unfortunately,
>>> this does not seem possible with the current GL code. I would like
>>> to propose the following be added to the core:
>>>
>>> 1) The addition of the following plugin functions:
>>>
>>> plugin_login_<plugin name>
>>>
>>> and
>>>
>>> plugin_logout_<plugin name>
>>>
>>> These functions would return nothing.
>>>
>>>
>>> 2) A modification to users.php which would call the aforementioned
>>> functions when a user logs in or out of the system.
>>>
>>>
>>> I could code this up, as it would be pretty easy to do. What does
>>> everyone think? Do people see any utility in this?
>>>
>>> - Turias
>>>
>>> _______________________________________________
>>> geeklog-devtalk mailing list
>>> geeklog-devtalk at lists.geeklog.net
>>> http://lists.geeklog.net/listinfo/geeklog-devtalk
>>
>>
>> _______________________________________________
>> geeklog-devtalk mailing list
>> geeklog-devtalk at lists.geeklog.net
>> http://lists.geeklog.net/listinfo/geeklog-devtalk
>
> _______________________________________________
> geeklog-devtalk mailing list
> geeklog-devtalk at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devtalk
More information about the geeklog-devtalk
mailing list