mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #270] Contacts Module #233
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bet0x on GitHub (May 13, 2018).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/270
Originally assigned to: @jasonmunro on GitHub.
Hello, i want to implement a contact module to be shared with another application using a database. i'm kinda lost with the Gmail or Ldap ones... they are quite complicated to understand! Any tips on a simple contact structure?
@jasonmunro commented on GitHub (May 14, 2018):
Thanks for the feedback, I will put something together with some comments to explain how the code works.
@bet0x commented on GitHub (May 14, 2018):
Thank you @jasonmunro i truly want to integrate contacts with database but kinda not possible because the code is quite complicated and still, you did a Ldap, Google, Local but no DB or API to access the local one.
@jasonmunro commented on GitHub (Jun 27, 2018):
db_contacts.zip
Attached is a boiler plate module set for adding db_contacts. It includes 2 files:
To enable this module set, do the following
Cypht has a built in DB wrapper you can use from modules to interact with a database. The code is in lib/db.php. From inside a handler module you need only do something like the following:
This way you can use the same database and database connection Cypht is already using (assuming you have database support enabled in your config).
Hope that helps get you started. Happy to answer any questions you come up with!
@bet0x commented on GitHub (Jun 27, 2018):
Thank you @jasonmunro i will start to work on my stuff now!