OpenInviter.com library wrapper |
[eluser]designfellow[/eluser]
Hi, I am creating one like this. Thanks for the inspiration Thanks DesignFellow
[eluser]cruzanmo[/eluser]
In regard to the error message others have reported. There is a simple fix: just run the postinstall.php file in the final directory that you are saving it in, and then delete the postinstall file (per the plugin's instructions).
[eluser]steven dobbelaere[/eluser]
[quote author="hikari" date="1248798760"]Got a little problem here I used the Twisted1919 mods but I get a fatal error. any Idea what the problem is? A PHP Error was encountered Severity: Notice Message: Undefined property: OpenInviter::$plugin Filename: OpenInviter/openinviter.php Line Number: 391 Fatal error: Call to a member function isEmail() on a non-object in /home/advancg6/public_html/taiwanoutlet/ci/OpenInviter/openinviter.php on line 391[/quote] I had the same error but my stats weren't enabled in the config file. I just forgot to delete the postinstall.php file in de openinviter folder. This only became clear to me when I tried to use the example file.
[eluser]Aaron L.[/eluser]
Okay, so I'm getting a similar error. It looks like it's actually able to log-in, etc. When I print out the OI array, I get all of my contacts but I still get the errors posted below. My stats are disabled in /openinviter/config.php and I ran then deleted postinstall.php and everything looked good. Still no dice. Here are the errors: Code: A PHP Error was encountered Code: A PHP Error was encountered Code: A Database Error Occurred I run into the same errors regardless of the plugin that's being used. Anyone have any ideas? Thanks if you can help
[eluser]Firestorm Creative Studios[/eluser]
looks like the invter wrapper library doesnt call a spcific function to let the OpenInviter object know which plugins are available. just add the code at line 19(ish) and it should start working: Code: 18 $oi = new OpenInviter(); also, comment out line 30 if you don't have the database setup yet to handle the imported data: Code: 30 //$this->_store_invited(); also note, without looking to deep, if you downloaded the core from OpenInviter, it came with all the plugins. i'm not sure if the getPlugins() function loads all the plugins or not, but it might be wise to remove the ones from the plugins folder you don't need just to make sure the footprint for the OpenInviter object doesnt get too big. please disregard spelling mistakes. english is my first language.
[eluser]The Wizard[/eluser]
@Firestorm Creative Studios: it did the trick thank you!
[eluser]bondjp[/eluser]
1- So basically this will get the emails and save the array on the DB. 2- We then have to build our email and use the names on the DB or the array to send the invitation. 3- This will not send that message on openinviter/config.php : "You are invited to yourdomain.com" and " is inviting you to yourdomain.com" Is this correct? Thanks.
[eluser]Muser[/eluser]
I am really interested with this implementation It seems that there have been some changes to the class.... Can someone post a working version of it? Thank you
[eluser]Unknown[/eluser]
i am new to codeigniter. I used this code.But i am getting error. i used 'aol' as plugin name. But its giving error as 'Undefined index: aol'.. Then i entered into the function grab_contacts($plugin,$username,$password) and made a small change which is shown below in order to echo the error. $this->plugin=new _hosted($plugin_name); return $this->plugin; exit(); Now i am getting error as shown below. _hosted Object ( [login_ok:private] => [showContacts] => 1 [internalError] => [requirement] => [allowed_domains] => [service] => aol [timeout] => 60 [session_id:protected] => [curl:private] => [has_errors:private] => [debug_buffer:private] => Array ( ) [service_user] => [service_password] => [settings] => [messageDelay:private] => [maxMessages:private] => ) Can anybody help me by saying where i went wrong...Please.
[eluser]Unknown[/eluser]
[quote author="Twisted1919" date="1247534707"]Hi , this wrapper works with the following changes : The inviter Class Code: <?php Also i added an if clause for login , because previously , when the login failed there where some nasty errors but now, when login fails , it shows "ERROR on login." ans the script stops . I tried as follows , in one of my controllers Code: function openinviter() And everything went ok ,it printed the array with the needed values . Hope that helps someone [/quote] Dear Twisted1919 I used ur code in my CI but its not working..i get following error error 1-->Message: file_put_contents(/tmp/oi_plugins.php) [function.file-put-contents]: failed to open stream: No such file or directory Filename: OpenInviter/openinviter.php Line Number: 343 Error 2-->Message: fopen(/tmp\oi.1286100386.8284.cookie) [function.fopen]: failed to open stream: No such file or directory Filename: plugins/_base.php Line Number: 261 Error 3-->Message: fclose(): supplied argument is not a valid stream resource Filename: plugins/_base.php Line Number: 262 Error 4-->Message: fopen(/tmp/log_error.log) [function.fopen]: failed to open stream: No such file or directory Filename: plugins/_base.php Line Number: 514 Please Help. Thank you |
Welcome Guest, Not a member yet? Register Sign In |