-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
157 lines (111 loc) · 4.64 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
lcOpenInviterPlugin
===================
The `lcOpenInviterPlugin` is a symfony plugin that allows users to grab their contacts from different __e-mail providers (gmail, hotmail, yahoo ...)__ and __social sites (facebook, twitter, hi5 ...)__ then send them e-mails and messages.
__The total of available providers and social sites is more than 86__
This plugin is developed by [LetsCod](http://www.letscod.com/ "Your web projects experts : Symfony, PHP, MySQL, PostgreSQL, jQuery").
Server Requirements
-------------------
* CURL extension for php
* DOM Element support for php
_If you're on windows OS, you should create an empty folder "tmp" for cookie storage. (for example, if you're using wamp, create the folder C:\tmp)_
Plugin Requirements
-------------------
Get a username and private key (both required for the installation task) by signing up in [www.openinviter.com](http://www.openinviter.com/ "Import contacts").
It's quick and easy.
Installation
------------
* Install the plugin
$ symfony plugin:install --stability=beta lcOpenInviterPlugin
* Publish the plugin assets (css and js):
$ symfony plugin:publish-assets
* Clear you cache
$ symfony cc
Configuring your plugin
-----------------------
* Configure the plugin by running the plugin task:
$ symfony open-inviter:install --username=your-username --key=your-private-key
* example:
$ symfony open-inviter:install --username=elieandraos --key=ee7968edc9580e1578c6bd7ad54fad4a
this task sets the username and private key you entered and checks your sever configuration (php version, curl
installation, DOM Element installation, cookie path ...)
if everything is okay, a log file will be written.
_make sure to enter the right username and key because it's not yet validated with openinviter servers_
* Enable the module and helper in your application `settings.yml`
[yml]
all:
.settings:
enabled_modules: [openInviter]
standard_helpers: [openInviter]
* Configure the e-mail text and providers in your application `app.yml`
[yml]
all:
lcOpenInviter:
wish-list:
providers: ["hotmail","gmail", "aol", "facebook", "flickr", "hi5","indiatimes", "operamail", "tagged", "yahoo"]
message:
subject: "is inviting you to join letscod developers"
body: "Check our recruitment page"
footer: "LetsCod"
The user wishlist
-----------------
* If the wish list is not set, a default wish list of "Gmail, hotmail and yahoo" is provided
* If the wishlist is set to `all`, it will return all the available providers
[yml]
all:
lcOpenInviter:
wish-list:
providers: [all]
Displaying the form
-------------------
[php]
<?
echo link_to("invite", "openInviterHome");
Available e-mail providers
--------------------------
* AOL
* Gmail
* Hotmail
* Indiatimes
* Operamail
* Yahoo Mail
* Doramail
* Fastmail
* inbox
* mail_com
* __and many more...__
Available social-sites
----------------------
* Facebook
* Flickr
* hi5
* Tagged
* Twitter
* Linked in
* Myspace
* Friendfeed
* Faces
* Skyrock
* Friendster
* Xanga
* __and many more...__
The Auto-updates
----------------
As each service and provider updates their url of getting contacts for their own security reasons, a task has been created
to do update the plugin's classes.
$ symfony open-inviter:auto-update
_`You can run this task manually to get the updates, but the best way would be to make a cronjob that runs this task twice a day
(every 12 hours) for the perfect balance between server load and autoupdate frequency.`_
I use it
--------
If you do like the plugin, and think it helps the community, do not hesitate to click __I use it__ , so it could be more trusted
and spreaded fast.
Feedback
--------
Feel free to send your feedbacks, bug reports or suggestions to __Elie Andraos at [email protected]__
TODO
----
* integrate the hosted solutions provided by openinviter for better performance and less load on the server
* integrate the stats: how many users have imported contacts, how many contacts were imported or how many messages were sent
* i18n forms translation
* check if the username and key are valid in the installation-task
* ajax form