Welcome to Geeklog, Anonymous Sunday, March 26 2023 @ 10:47 am EDT
Geeklog Forums
Integrating greeklog with other stuff
Mick
Anonymous
I have a pen friend script that I would like to integrate into greeklog, so that when a user registers to greeklog at the same time they also register into the penfriend script.
Is this easy to do?
Is this easy to do?
3
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hard to tell without knowing that other script. It might be easy, it might be hard ...
Geeklog (where did that extra 'r' come from?
) makes information on the currently logged-in user available in global variables ($_USER array). So if you need, say, the username, you could refer to $_USER['username'] and use that in the other script. You'd have to include Geeklog's lib-common.php first, which bears the risk of name collission for function names ...
bye, Dirk
Geeklog (where did that extra 'r' come from?

bye, Dirk
4
4
Quote
All times are EDT. The time is now 10:47 am.
- 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