PDA

View Full Version : Integration with vBulletin - OpenInviter Intergration


BBR-APBT
04-19-2009, 10:00 PM
What is OpenInviterTM ?
Open source OpenInviterTM (Open InviterTM) is an free import contacts (addressbook) script from email providers like Libero, Rambler, GMX.net, Mail.ru, Live/Hotmail, IndiaTimes, Azet, Web.de, FastMail, Lycos, Zapakmail, Hushmail, Evite, Yahoo!, Uk2, Mynet.com, Abv, OperaMail, Interia, Sapo.pt, Inbox.com, Mail.com, Clevergo, Rediff, Virgilio, Nz11, Doramail, Walla, Gawab, Wp.pt, Apropo, Popstarmail, AOL, Care2, Netaddress, Bigstring, GMail, Yandex, KataMail, Mail.in, 5Fm, Terra or social portals like Famiva, Orkut, Vimeo, Fdcareer, Flixster, Xing, Plaxo, Cyworld, Konnects, LinkedIn, Motortopia, Twitter, Last.fm, Kincafe, MySpace, Brazencareerist, Livejournal, Mydogspace, Tagged, Hyves, Skyrock, Hi5, Friendfeed, Flickr, Badoo, Lovento, Eons, Flingr, Bebo, Faces, Multiply, Friendster, Facebook, Perfspot, Mycatspace, Xuqa, Xanga, Plazes, Plurk, Mevio, Meinvz. This contacts importer script is integrating with content management systems (aka CMS) like phpFoX, SimpleMachines Forum (SMF), Joomla, JamRoom, Social Engine, Wordpress, phpizabi, myBB, joovili, jamit job, PhpBB, Boonex Dolphin, PunBB, Dating Pro, Joomla1.0, PHPMELODY, symfony, Drupal, vBulletin. Open Inviter is written in PHP 5 (no database required but cURL or wget required) and running on any webserver (tested on Apache) offering advanced tell a friend features. OpenInviterTM is a free self hosted solution that does not use a third party gateway (or API) to import contacts.



Install Instructions
1. Upload the oi_settings.php to the adminCP dir.
2. Import the product-openinviter.xml

Done for my side of things.

Go to: http://openinviter.com/
1.Sign up for an account and download the package for vbulletin.
2.copy the Openinviter folder to your root vBulletin
3.Do nothing with the oi_settings.php and product-openinvitervbulletinediti.xml that come with their version.

If you use theirs, there is a security hole which I have patched in mine. I am waiting for them to email me back.

What did I change?
Changed how it is displayed in misc.php not index.php.
Also changed how it is displayed on the page in its own table instead of above the header.
Made the admin panel page alot nicer to look at.
Fixed security issues.


Fixes for their code.
Their code for vbulletin is a little messed up go to the Openinviter folder.
Open frontend.php add (echo $oi_display) at the bottom before the php close tag(i.e. ?>).
In the same file search for $contents and replace with $oi_display


I hope you enjoy
Please Click install.
Note support will not be giving if you don't.

BBR-APBT
04-20-2009, 01:15 AM
Reserved

hscorp
04-20-2009, 01:49 AM
very nice but i think it would be better if you made a nice design for it not just like that

regards :)

dirtycrow
04-20-2009, 02:12 AM
doesn't seem to create a menu link for me.

dirtycrow
04-20-2009, 02:15 AM
i take that back, it's under "quick links" but when selected nothing is displayed, just a " Import your friends" header and nothing underneath.

BBR-APBT
04-20-2009, 02:24 AM
i take that back, it's under "quick links" but when selected nothing is displayed, just a " Import your friends" header and nothing underneath.

Did you follow all of the instructions?

BBR-APBT
04-20-2009, 02:26 AM
very nice but i think it would be better if you made a nice design for it not just like that

regards :)
I don't want to edit the frontend.php because you have to get that from openinviter.com.
I can not give out their whole package. You will have to ask them to change it or do that part your self.

Xencored
04-20-2009, 02:44 AM
Tagged looks good mate

ill be keeping my eye on this one :up:

jacobomoya
04-20-2009, 06:58 AM
Thanks for this mod!

With import, put auto the refered user?

Thanks a lot.

soletrader
04-20-2009, 07:17 AM
Anyone with facebook connect, this hack wont work.

BBR-APBT
04-20-2009, 09:45 AM
Anyone with facebook connect, this hack wont work.

Whats the problem your having. I may be able to find a fix.

BBR-APBT
04-20-2009, 09:49 AM
Thanks for this mod!

With import, put auto the refered user?

Thanks a lot.
I am working on it later today to generate a Referral Link.

TimberFloorAu
04-20-2009, 10:19 AM
*tagged*

nascartr
04-20-2009, 02:17 PM
When I try to submit my invotes with Yahoo and Hotmail I get a security token error.


Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator (http://diecastcrazy.com/community/sendmessage.php) and describe the action you performed before you received this error.


In the admin panel if I try to save my settings I get this error.

Warning: file_put_contents([path]/admincp/../OpenInviter/config.php) [function.file-put-contents (http://diecastcrazy.com/community/admincp/function.file-put-contents)]: failed to open stream: Permission denied in [path]/admincp/oi_settings.php on line 89

F0xy
04-20-2009, 02:37 PM
this would be so much better if it was implemented into the user registration. During registration through facebook, bebo and myspace etc this is thrown up during the registration process which would mean each new member would be emailing there mates while registering on your site.

dirtycrow
04-20-2009, 02:46 PM
Did you follow all of the instructions?
yes, i do believe so.

dirtycrow
04-20-2009, 02:51 PM
Anyone with facebook connect, this hack wont work.
i used to have facebook connect, have since uninstalled it. could this be my issue?

nascartr
04-20-2009, 02:56 PM
i used to have facebook connect, have since uninstalled it. could this be my issue?


I did too, but uninstalled it a few months ago.

ICEEXOL
04-20-2009, 03:19 PM
Invitations section does not appear.

https://vborg.vbsupport.ru/external/2009/04/51.jpg

dirtycrow
04-20-2009, 03:26 PM
Invitations section does not appear.

https://vborg.vbsupport.ru/external/2009/04/51.jpg
yup, same boat.

amjadz4
04-20-2009, 03:35 PM
nice mod! Thanks!

Having the same issue as above! Nothing shows in the Import friends page. Its empty!

:(

skylab
04-20-2009, 04:09 PM
I could def use this however I do have Facebook Connect.
I'll keep an eye out for this.

nascartr
04-20-2009, 04:37 PM
Make sure to apply the changes above to the frontend.php file in the Openinviter folder you downloaded from OpenInviter.com

Their code for vbulletin is a little messed up go to the Openinviter folder.
Open frontend.php add echo $oi_display at the bottom before the php close tag(i.e. ?>).
In the same file search for $contents and replace with $oi_display

nascartr
04-20-2009, 04:39 PM
I need someone that has got this working to let me know if they received the security token error and if the admin options are giving them problems too.

amjadz4
04-20-2009, 04:49 PM
There are two $contents ... do we have to replace them both?

im getting the Your submission could not be processed because a security token was missing. error too

nascartr
04-20-2009, 06:16 PM
I just replaced one and received the same error.

BBR-APBT
04-20-2009, 06:28 PM
When I try to submit my invotes with Yahoo and Hotmail I get a security token error.



In the admin panel if I try to save my settings I get this error.

You have to edit the frontend.php I think I may release mine here in this post for people to use I have to email a moderator and ask if I can.


The error in the adminCP is you have to chmod config.php to 777.

nascartr
04-20-2009, 06:32 PM
You have to edit the frontend.php I think I may release mine here in this post for people to use I have to email a moderator and ask if I can.


The error in the adminCP is you have to chmod config.php to 777.

Fixed the Admin CP problem by changing permissions. The frontend.php has been edited following your directions as I posted above but I still receive the security token error.

nascartr
04-20-2009, 06:34 PM
There are two $contents ... do we have to replace them both?

im getting the error too


I tried replacing both $contents with the $oi_display and still get the security token error.

BBR-APBT
04-20-2009, 06:34 PM
Security token fix here. This is not my code I just fixed it up so it works and it looks a little nicer. The security token error was not my fault as I didn't code the frontend.php Thats right from them here is my version. below that works.


Remember to edit the second line below. path to forum global

Frontend.php

<?php
require_once('/path/to/your/forum/dir/global.php');
$oi_sectok = $vbulletin->userinfo['securitytoken'];
if (!$oi_sectok)
{
$oi_sectok = 'none';
}
include('openinviter.php');
$inviter=new OpenInviter();
$oi_services=$inviter->getPlugins();
if (isset($_POST['provider_box']))
{
if (isset($oi_services['email'][$_POST['provider_box']])) $plugType='email';
elseif (isset($oi_services['social'][$_POST['provider_box']])) $plugType='social';
else $plugType='';
}
else $plugType = '';
function ers($ers)
{
if (!empty($ers))
{
$oi_display="<table cellspacing='0' cellpadding='0' style='border:1px solid red;' align='center' class='tbErrorMsgGrad'><tr><td valign='middle' style='padding:3px' valign='middle' class='tbErrorMsg'><img src='/images/ers.gif'></td><td valign='middle' style='color:red;padding:5px;'>";
foreach ($ers as $key=>$error)
$oi_display.="{$error}<br >";
$oi_display.="</td></tr></table><br >";
return $oi_display;
}
}

function oks($oks)
{
if (!empty($oks))
{
$oi_display="<table border='0' cellspacing='0' cellpadding='10' style='border:1px solid #5897FE;' align='center' class='tbInfoMsgGrad'><tr><td valign='middle' valign='middle' class='tbInfoMsg'><img src='/images/oks.gif' ></td><td valign='middle' style='color:#5897FE;padding:5px;'> ";
foreach ($oks as $key=>$msg)
$oi_display.="{$msg}<br >";
$oi_display.="</td></tr></table><br >";
return $oi_display;
}
}

if (!empty($_POST['step'])) $step=$_POST['step'];
else $step='get_contacts';

$ers=array();$oks=array();$import_ok=false;$done=f alse;
if ($_SERVER['REQUEST_METHOD']=='POST')
{
if ($step=='get_contacts')
{
if (empty($_POST['email_box']))
$ers['email']="Email missing";
if (empty($_POST['password_box']))
$ers['password']="Password missing";
if (empty($_POST['provider_box']))
$ers['provider']="Provider missing";
if (count($ers)==0)
{
$inviter->startPlugin($_POST['provider_box']);
$internal=$inviter->getInternalError();
if ($internal)
$ers['inviter']=$internal;
elseif (!$inviter->login($_POST['email_box'],$_POST['password_box']))
{
$internal=$inviter->getInternalError();
$ers['login']=($internal?$internal:"Login failed. Please check the email and password you have provided and try again later");
}
elseif (false===$contacts=$inviter->getMyContacts())
$ers['contacts']="Unable to get contacts.";
else
{
$import_ok=true;
$step='send_invites';
$_POST['oi_session_id']=$inviter->plugin->getSessionID();
$_POST['message_box']='';
}
}
}
elseif ($step=='send_invites')
{
if (empty($_POST['provider_box'])) $ers['provider']='Provider missing';
else
{
$inviter->startPlugin($_POST['provider_box']);
$internal=$inviter->getInternalError();
if ($internal) $ers['internal']=$internal;
else
{
if (empty($_POST['email_box'])) $ers['inviter']='Inviter information missing';
if (empty($_POST['oi_session_id'])) $ers['session_id']='No active session';
if (empty($_POST['message_box'])) $ers['message_body']='Message missing';
else $_POST['message_box']=strip_tags($_POST['message_box']);
$selected_contacts=array();$contacts=array();
$message=array('subject'=>$inviter->settings['message_subject'],'body'=>$inviter->settings['message_body'],'attachment'=>"\n\rAttached message: \n\r".$_POST['message_box']);
if ($inviter->showContacts())
{
foreach ($_POST as $key=>$val)
if (strpos($key,'check_')!==false)
$selected_contacts[$_POST['email_'.$val]]=$_POST['name_'.$val];
elseif (strpos($key,'email_')!==false)
{
$temp=explode('_',$key);$counter=$temp[1];
if (is_numeric($temp[1])) $contacts[$val]=$_POST['name_'.$temp[1]];
}
if (count($selected_contacts)==0) $ers['contacts']="You haven't selected any contacts to invite";
}
}
}
if (count($ers)==0)
{
$sendMessage=$inviter->sendMessage($_POST['oi_session_id'],$message,$selected_contacts);
$inviter->logout();
if ($sendMessage===-1)
{
$message_footer="\r\n\r\nThis invite was sent using OpenInviter technology.";
$message_subject=$_POST['email_box'].$message['subject'];
$message_body=$message['body'].$message['attachment'].$message_footer;
$headers="From: {$_POST['email_box']}";
foreach ($selected_contacts as $email=>$name)
vbmail($email, $message_subject, $message_body, true);
$oks['mails']="Mails sent successfully";
}
elseif ($sendMessage===false)
{
$internal=$inviter->getInternalError();
$ers['internal']=($internal?$internal:"There were errors while sending your invites.<br>Please try again later!");
}
else $oks['internal']="Invites sent successfully!";
$done=true;
}
}
}
else
{
$_POST['email_box']='';
$_POST['password_box']='';
$_POST['provider_box']='';
}

$oi_display="<script type='text/javascript'>
function toggleAll(element)
{
var form = document.forms.openinviter, z = 0;
for(z=0; z<form.length;z++)
{
if(form[z].type == 'checkbox')
form[z].checked = element.checked;
}
}
</script>";
$oi_display.="<form action='' method='POST' name='openinviter'>".ers($ers).oks($oks);
if (!$done)
{
if ($step=='get_contacts')
{
$oi_display.="<table align='center' class='thTable' cellspacing='0' cellpadding='3' style='border:none;'>
<tr><td align='left'><label for='email_box'><strong>Email</strong></label></td><td><label for='password_box'><strong>Password</strong></label></td><td><label for='provider_box'><strong>Email provider</strong></label></td></tr>
<tr><td><input type='text' name='email_box' value='{$_POST['email_box']}' autocomplete='off'> </td><td><input type='password' name='password_box' value='{$_POST['password_box']}' autocomplete='off'> </td><td><select name='provider_box'><option value=''></option>
";
foreach ($oi_services as $type=>$providers)
{
$oi_display.="<option disabled>".$inviter->pluginTypes[$type]."</option>";
foreach ($providers as $provider=>$details)
$oi_display.="<option value='{$provider}'".($_POST['provider_box']==$provider?' selected':'').">{$details['name']}</option>";
}
$oi_display.="</select></td></tr>
<tr><td colspan='3' align='center'><input type='hidden' name='securitytoken' value='$oi_sectok'><input type='submit' name='import' value='Import Contacts'></td></tr>
</table><input type='hidden' name='step' value='get_contacts'>";
}
else
$oi_display.="<table cellspacing='0' cellpadding='0' style='border:none;' align='center'>
<tr><td align='left' valign='top'><label for='message_box'><strong>Message</strong></label><br /></td></tr>
<tr><td><textarea rows='5' cols='50' name='message_box' style='width:300px;'>{$_POST['message_box']}</textarea></td></tr>
<tr><td align='center'><input type='submit' name='send' value='Send Invites'><br /><br /></td></tr>
</table>";
}
if (!$done)
{
if ($step=='send_invites')
{
if ($inviter->showContacts())
{
$oi_display.="<table class='tborder' align='center' cellspacing='0' cellpadding='3'><tr class='tcat'><td colspan='".($plugType=='email'? "3":"2")."'><strong>Your contacts</strong></td></tr>";
if (count($contacts)==0)
$oi_display.="<tr class='alt1'><td align='center' style='padding:20px;' colspan='".($plugType=='email'? "3":"2")."'>You do not have any contacts in your address book.</td></tr>";
else
{
$oi_display.="<tr class='alt2'><td><input type='checkbox' onChange='toggleAll(this)' name='toggle_all' title='Select/Deselect all' checked>on/off</td><td>Name</td>".($plugType == 'email' ?"<td>E-mail</td>":"")."</tr>";
$odd=true;$counter=0;
foreach ($contacts as $email=>$name)
{
$counter++;
if ($odd) $class='alt1'; else $class='alt2';
$oi_display.="<tr class='{$class}'><td><input name='check_{$counter}' value='{$counter}' type='checkbox' class='thCheckbox' checked><input type='hidden' name='email_{$counter}' value='{$email}'><input type='hidden' name='name_{$counter}' value='{$name}'></td><td>{$name}</td>".($plugType == 'email' ?"<td>{$email}</td>":"")."</tr>";
$odd=!$odd;
}
$oi_display.="<tr class='tfoot'><td colspan='".($plugType=='email'? "3":"2")."' style='padding:3px;' align='center'><input type='submit' name='send' value='Send invites' class='thButton'></td></tr>";
}
$oi_display.="</table>";
}
$oi_display.="<input type='hidden' name='step' value='send_invites'>
<input type='hidden' name='s' value='$session[sessionhash]'>
<input type='hidden' name='securitytoken' value='$oi_sectok'>
<input type='hidden' name='provider_box' value='{$_POST['provider_box']}'>
<input type='hidden' name='email_box' value='{$_POST['email_box']}'>
<input type='hidden' name='oi_session_id' value='{$_POST['oi_session_id']}'>";
}
}
$oi_display.="</form>";
echo $oi_display;
?>

BBR-APBT
04-20-2009, 06:41 PM
There are two $contents ... do we have to replace them both?

im getting the error too

In my instructions I said replace all of them. So yes both of them need to be replaced.
If the owner of that site would ever email me back I am going to try and make this the official vBulletin release for here and the site. You can tell he rushed through the vbulletin side of things. It never worked out the box.

I had to implant my own CSRF security token stuff my self in the above file.

nascartr
04-20-2009, 06:43 PM
That gave me an ugly error!

Warning: require_once(/public_html/community/global.php) [function.require-once (http://diecastcrazy.com/community/function.require-once)]: failed to open stream: No such file or directory in [path]/OpenInviter/frontend.php on line 2

Fatal error: require_once() [function.require (http://diecastcrazy.com/community/function.require)]: Failed opening required '/public_html/community/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nascartr/public_html/community/OpenInviter/frontend.php on line 2

This is what my 2nd line was like.


require_once('/public_html/community/global.php');

BBR-APBT
04-20-2009, 06:43 PM
yup, same boat.

Invitations section does not appear.

https://vborg.vbsupport.ru/external/2009/04/51.jpg

The link is put in the Quick links tab. Says Invite Friends.

That used to only show when on index.php I had to fix that too.

BBR-APBT
04-20-2009, 06:44 PM
That gave me an ugly error!

Warning: require_once(/public_html/community/global.php) [function.require-once (http://diecastcrazy.com/community/function.require-once)]: failed to open stream: No such file or directory in [path]/OpenInviter/frontend.php on line 2

Fatal error: require_once() [function.require (http://diecastcrazy.com/community/function.require)]: Failed opening required '/public_html/community/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nascartr/public_html/community/OpenInviter/frontend.php on line 2

This is what my 2nd line was like.


require_once('/public_html/community/global.php');


Please enter the full path. home/user/public_html/community.

nascartr
04-20-2009, 06:48 PM
Ok, that worked!

BBR-APBT
04-20-2009, 06:49 PM
Ok, that worked!

All set now?

nascartr
04-20-2009, 06:49 PM
After sending the invites I had a blank image with an X. http://diecastcrazy.com/images/oks.gifMails sent successfully


Supposedly it leads to http://diecastcrazy.com/images/oks.gif but I do not have any image files, should they have been included with the OpenInviter package?

BBR-APBT
04-20-2009, 06:54 PM
Yet another thing they have forgot oven at OpenInviter. Yes that should of came with the OpenInviter Package. I will make a x and a checkmark image here in a few minutes.

nascartr
04-20-2009, 06:57 PM
Thanks!

BBR-APBT
04-20-2009, 07:05 PM
Ok here are the missing images. I made them my self they are not the ones that came with OpenInviter. Feel free to make your own. Be sure to edit frontend.php to link to the new images.

Remember every one I said its in its beta stage. I am compiling all these post to make some new install instruction instructions.
Hopefully they email me back so I can include the frontend.php with this as it will hopefully be the official release. All the errors every one is getting is from OpenInviter code not mine. But hey at least I fixed it for every one here.

vitrag24
04-20-2009, 07:59 PM
will this work for 3.7.1?

BBR-APBT
04-20-2009, 08:08 PM
will this work for 3.7.1?
I am not sure as I haven't tested it with 3.7.1. I dont see why it wouldn't. You may have to manually add the link in the nav bar is all I can see that would go wrong.

ICEEXOL
04-20-2009, 08:51 PM
Facebook does not work.

BBR-APBT
04-20-2009, 08:54 PM
Facebook does not work.

You have to tell OpenInviter at there support site. I am not supporting their code. Plus facebook is only one out of the other 30 or so that are there. Plus you never clicked Install so no support will be giving from me.

nascartr
04-20-2009, 09:01 PM
Facebook imports ok for me.

TimberFloorAu
04-20-2009, 09:07 PM
We have this mod tagged, as it looks very interesting.

Could you confirm. Does the open inviter, when connected, link you to your respective addressbook within whicheever 3rd party you chose eg."gmail"

What happens next, does it import every single person to your vb account, or give you a tick list of people on that addressbook to invite to your forum ?

Please could you confirm, as we dont want generic invited being sent to everyone.

I for instance have 10-20,000 contacts within just one gmail account.

Ste

TheSupportForum
04-20-2009, 10:21 PM
i get this message when selecting facebook

There were errors while sending your invites.
Please try again later!

what do i do ?

BBR-APBT
04-21-2009, 01:24 AM
We have this mod tagged, as it looks very interesting.

Could you confirm. Does the open inviter, when connected, link you to your respective addressbook within whicheever 3rd party you chose eg."gmail"

What happens next, does it import every single person to your vb account, or give you a tick list of people on that addressbook to invite to your forum ?

Please could you confirm, as we dont want generic invited being sent to everyone.

I for instance have 10-20,000 contacts within just one gmail account.

Ste
It imports them to a list then you have check boxes of who you want to invite.
You set one message that is sent and the user can enter their own message.
It will then send both messages to the users email box.

BBR-APBT
04-21-2009, 01:25 AM
i get this message when selecting facebook

There were errors while sending your invites.
Please try again later!

what do i do ?
Contact the people at OpenInviter and ask them to update the face book plugin.

TimberFloorAu
04-21-2009, 04:12 AM
Thanks for the reply.

May I ask, the importer, does this in any way, store user contacts in 3rd party areas, which would / could present security issues.

Is the username / password md5

BBR-APBT
04-21-2009, 04:28 AM
Thanks for the reply.

May I ask, the importer, does this in any way, store user contacts in 3rd party areas, which would / could present security issues.

Is the username / password md5

Currently it doesn't call home but they plan to make it call home to track user and api key. Which I will not upgrade when it calls home. It runs completely on your server and logins directly to the provider you choose. The login looks as if it came from the users computer.

Zia
04-21-2009, 05:43 AM
hmmm interesting..

from which mail id ..the invite msg will be send from user mail id ?

BBR-APBT
04-21-2009, 09:48 AM
hmmm interesting..

from which mail id ..the invite msg will be send from user mail id ?

The admin email that every other forum email is sent from.

amjadz4
04-22-2009, 10:23 AM
The security token fix...did not work for me. I still get the same error! Path is correct.

Zia
04-22-2009, 11:07 AM
The admin email that every other forum email is sent from.

Hi..thankx..
I want to change the sender mail id to any other mail id..
coz sendind lots of mail from mydomain may mark itslef as spam domain..
to secure mydomain i wanna change it any other,...
pls advice........

BBR-APBT
04-22-2009, 07:00 PM
The security token fix...did not work for me. I still get the same error! Path is correct.
I dont know did you use my whole frontend file? There are a few places I changed in the frontend script

BBR-APBT
04-22-2009, 07:05 PM
Hi..thankx..
I want to change the sender mail id to any other mail id..
coz sendind lots of mail from mydomain may mark itslef as spam domain..
to secure mydomain i wanna change it any other,...
pls advice........

Line 119 in my frontend.php you will see this vbmail($email,

Simply change $email to the email you want to use. Make sure to leave the ,

TimberFloorAu
04-23-2009, 08:01 PM
My biggest concern with this is security.

Even on their demo screen: http://openinviter.com/demo/

Its not encrypted.

BBR-APBT
04-23-2009, 10:29 PM
My biggest concern with this is security.

Even on their demo screen: http://openinviter.com/demo/

Its not encrypted.

The user and password being sent to aol, gmail etc?

If I make it encrypt the password on my server then send it to aol, gmail etc. It will show the wrong password as being entered. If you have any ideas how to get myspace, aol, gmail, etc. to accept encrypted mails let me know. I don't see this as any different then logging on to any of the services over your browser with out using https.

I mean if someone was sniffing your connection sure they will see the plain test password. Turn on ssl on your server. Problem fixed.

Skyrider
04-24-2009, 01:50 PM
Any possible way you can select the contacts you wish to send the invite on? I tried the demo at : http://openinviter.com/demo/ and it grabs all the contacts right away.

BBR-APBT
04-24-2009, 05:47 PM
Any possible way you can select the contacts you wish to send the invite on? I tried the demo at : http://openinviter.com/demo/ and it grabs all the contacts right away.

Yeah it grabs all contacts and pulls them to the page then you can check the box and fill in a little message. Then press send it will then send it to the contacts you have checked off.

ajmboy
05-03-2009, 11:42 PM
I am having an issue where in the latest version of vb 3.8.2, the settings for open inviter overwrite the styles & templates settings in the admin cp. Disabling this plugin brings it back.

Otherwise it works fine for me, I made all your edits and used your frontend.php

I tested on vb 3.7 and it's fine, it brings teh open inviter settings to the bottom of teh admin cp. Just 3.8.2

BBR-APBT
05-06-2009, 10:21 PM
I am having an issue where in the latest version of vb 3.8.2, the settings for open inviter overwrite the styles & templates settings in the admin cp. Disabling this plugin brings it back.

Otherwise it works fine for me, I made all your edits and used your frontend.php

I tested on vb 3.7 and it's fine, it brings teh open inviter settings to the bottom of teh admin cp. Just 3.8.2

What exactly is it over writing?

amjadz4
05-07-2009, 09:35 AM
its over writing the styles and templates menu..from the admincp. the S&T menu disappears.. when its enabled.

BBR-APBT
05-12-2009, 04:59 PM
Change the menu numbers in the file that goes in the xml dir.

I don't know why its doing that for you.

Sebijk
05-17-2009, 10:54 PM
With Facebook Connect Plugin I get this:

Fatal error: Cannot redeclare class Facebook in [path]/includes/facebook/facebook.php on line 37

whitetigergrowl
05-18-2009, 03:44 AM
Facebook for me makes my SQL go away but seems to work fine for most of the rest used. Figure that one out. Facebook seems like a troublesome one.

cabledr
05-18-2009, 08:43 AM
Done everything i can see unless im doing my global.php path wrong and it turns my index.php display blank until i disable product then you can see forum again any help will be appreciated

Skierpetros
05-22-2009, 06:45 AM
i only see this

OpenInviter - import addressbook/contacts from different email providers like Yahoo, Gmail, Hotmail, Live etc. using different CMS software like Drupal, Joomla etc. or forum software like PHPBB, SMF etc. available at http://openinviter.comOpenInviter - import addressbook/contacts from different email providers like Yahoo, Gmail, Hotmail, Live etc. using different CMS software like Drupal, Joomla etc. or forum software like PHPBB, SMF etc. available at http://openinviter.com


i can't see how can i import... :S

sdfaheem
05-27-2009, 09:54 PM
I dont see any link coming up in my theme, how do my members or myself browse to the inviter?

apnifry
06-01-2009, 04:14 AM
how to integrete referral link in openinviter. ? BTW : THanks for this plugin.

maidos
06-03-2009, 04:25 PM
thanks but it does not work with hotmail.co.uk

maidos
06-04-2009, 04:09 PM
on quicklinks exactly where do i find the code for invite friends`?

UltraFanatics
06-06-2009, 07:59 AM
thanks but it does not work with hotmail.co.uk

Is it working now mate? I pretty much want this for hotmail and facebook!

UltraFanatics
06-08-2009, 04:59 PM
Anyone?

tscargo
06-10-2009, 07:48 AM
thanks but it does not work with hotmail.co.uk

Make sure you have loaded the latest plugins, you can download them by calling the autoupdate.php script via your browser.

I recently sent in a fix to the development team, and they said it was implemented now.

Taco

tscargo
06-10-2009, 08:46 AM
thanks but it does not work with hotmail.co.uk

Make sure you have loaded the latest plugins, you can download them by calling the autoupdate.php script via your browser.

I recently sent in a fix to the development team, and they said it was implemented now.
I just tested it and it works flawlessly with any domain now.

Taco

accludetuner
06-11-2009, 02:35 AM
I am working on it later today to generate a Referral Link.

I've been trying that myself without much luck. Here's what I have but it's not working.

in OpenInviter/config.php
<?php
require_once('/path/to/my/forum/global.php');
$url = "index.php?referrerid=" . $vbulletin->userinfo['userid'];
$openinviter_settings=array(
"username"=>"blah",
"private_key"=>"11111111111111111111111111111111",
"cookie_path"=>'/mycookiepath',
"message_body"=>"You are invited to blah.com! Please use the following link to visit the site: $url", // www.blah.com is the website on your account. If wrong, please update your account at OpenInviter.com
"message_subject"=>" is inviting you to www.blah.com", // www.blah.com is the website on your account. If wrong, please update your account at OpenInviter.com
"transport"=>"curl", //Replace "curl" with "wget" if you would like to use wget instead
"local_debug"=>"on_error", //Available options: on_error => log only requests containing errors; always => log all requests; false => don`t log anything
"remote_debug"=>FALSE //When set to TRUE OpenInviter sends debug information to our servers. Set it to FALSE to disable this feature
);
?>

In the invite email it will show:
You are invited to blah.com! Please use the following link to visit the site: http://www.blah.com/index.php?referrerid=

but 'userid' is not getting passed :(

Awesome mod BTW, even with the openinvitaion quarks and issues. ;)

BBR-APBT
06-11-2009, 05:18 PM
I will work on this in the next few days for a update. Which will include the referrer link.

accludetuner
06-11-2009, 07:53 PM
Awesome! Thank you!

One other suggestion I could make since I plan to do this on my site is to be able to change where the "Invite Friends" link is. Instead of in the "Quick Links" drop-down, I plan to put it in the actual navbar and in the footer navbar.

bizkitpark
06-12-2009, 05:20 PM
does not work at all !!!

WxP
06-12-2009, 08:37 PM
Warning: require_once(OpenInviter/frontend.php) [function.require-once (http://www.forumivirtual.com/function.require-once)]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 36

Fatal error: require_once() [function.require (http://www.forumivirtual.com/function.require)]: Failed opening required 'OpenInviter/frontend.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/forumivi/public_html/global.php(400) : eval()'d code on line 36

accludetuner
06-13-2009, 01:17 PM
I will work on this in the next few days for a update. Which will include the referrer link.
just to let you know, the code I posted seems to work fine in the openinviter adminCP settings page but not when actually sending emails.

does not work at all !!!
You gotta follow the install instructions properly for it to work.

Warning: require_once(OpenInviter/frontend.php) [function.require-once (http://www.forumivirtual.com/function.require-once)]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 36

Fatal error: require_once() [function.require (http://www.forumivirtual.com/function.require)]: Failed opening required 'OpenInviter/frontend.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/forumivi/public_html/global.php(400) : eval()'d code on line 36
Is your forum in the root directory? If so did you change the permissions for the OpenInviter folder to 777?

bizkitpark
06-14-2009, 02:55 PM
i've done exactly what you said but nothing appears

sparklywater
06-14-2009, 07:38 PM
Can someone please help me, I want to display the OpenInviter interface within one of the vBulletin phrases, the message which is shown to a new user just after registering. I've tried using the variable $oi_display within the phrase body but it doesn't work, the variable does not get parsed. If someone can let me know how to make this work within the phrase that would be great.

mattpist
06-15-2009, 02:05 AM
im not getting anything on the invite friends page. here's the page:

http://squattheplanet.com/forum/misc.php?oi=true

under "import your friends" there's nothing.

BBR-APBT
06-15-2009, 06:38 PM
Did you make the proper edits I have stated?


Install Instructions
1. Upload the oi_settings.php to the adminCP dir.
2. Import the product-openinviter.xml

Done for my side of things.

Go to: http://openinviter.com/
1.Sign up for an account and download the package for vbulletin.
2.copy the Openinviter folder to your root vBulletin
3.Do nothing with the oi_settings.php and product-openinvitervbulletinediti.xml that come with their version.

If you use theirs, there is a security hole which I have patched in mine. I am waiting for them to email me back.

What did I change?
Changed how it is displayed in misc.php not index.php.
Also changed how it is displayed on the page in its own table instead of above the header.
Made the admin panel page alot nicer to look at.
Fixed security issues.


Fixes for their code.

Their code for vbulletin is a little messed up go to the Openinviter folder.
Open frontend.php add (echo $oi_display) at the bottom before the php close tag(i.e. ?>).
In the same file search for $contents and replace with $oi_display

mattpist
06-15-2009, 11:31 PM
yes, i followed your instructions to the letter. files are in the correct place (using your files) and the openinviter folder is in the root. ran the postinstall.php and everything...

accludetuner
06-16-2009, 01:06 AM
and the openinviter folder is in the root.
That could be it....it needs to be in the same directory that your forum is in.

WxP
06-16-2009, 09:17 AM
Warning: file_put_contents(/home/forumivi/public_html/administrim/../OpenInviter/config.php) [function.file-put-contents (http://www.forumivirtual.com/administrim/function.file-put-contents)]: failed to open stream: Permission denied in /home/forumivi/public_html/administrim/oi_settings.php on line 59

accludetuner
06-16-2009, 09:13 PM
WxP - the OpenInviter directory needs to be in your forum directory. The oi_settings.php file needs to be in your adminCP directory. Doesn't look like you have it that way. Also, make sure you use the oi_settings.php file from the openinviter/adminCP/ directory (4.19 KB).

sparklywater
06-16-2009, 09:53 PM
Does anyone have an answer to my question? Can someone please help me, I want to display the OpenInviter interface within one of the vBulletin phrases, the message which is shown to a new user just after registering. I've tried using the variable $oi_display within the phrase body but it doesn't work, the variable does not get parsed. If someone can let me know how to make this work within the phrase that would be great.

josh2007
06-19-2009, 01:58 PM
when i click invite friends it goes to the page but it dont load nothing but the header that says import your friends whats wrong?

EDIT: I got it i was adding (echo $oi_display) when i did not need the () my bad

UltraFanatics
06-20-2009, 03:55 PM
When I try and run it I get this "Your submission could not be processed because a security token was missing"

Any ideas?

UltraFanatics
06-20-2009, 04:04 PM
Sorted that now guys!

Last question - Is it possible to add a link to the navbar and can guests use it also?

mattpist
07-02-2009, 06:59 PM
That could be it....it needs to be in the same directory that your forum is in.

when i said 'root' i meant the root of my forums. can anyone else help me? it's still not showing up. i moved my forum today so the new link is:

http://squattheplanet.com/misc.php?oi=true

still nothing is showing.

jasonuk
07-08-2009, 09:23 AM
Hey BBR,

Many thanks for your fix... have it working fine now!

Just a quick question... when the contacts receive their invitation email - in the subject line it prefixes the name of the website before the subject you can edit in the AdminCP. (e.g. 'XXXX is inviting your to join microsoft.com) Can you change it (the XXXX bit) to show the inviting member's name instead of the website name? (so they know who the invite is from!)

Kindest regards,

Jason

bojomojo
07-09-2009, 04:55 PM
I installed it, its in the menu, and it shows when clicked.. but.. it is shown below the forums and above the events.. how can I fix that?

skylab
07-10-2009, 11:53 AM
Still no good with facebook connect.. Also the layout seems to suck?! Not integrated at all with vbulletin unless im doing something wrong

Manoel J?nior
07-11-2009, 05:02 PM
You are doing the same template, how to fix?

101837

desi-boy
07-22-2009, 06:35 PM
after intaling this open inviter there is

Warning: require_once(/path/to/your/forum/dir/global.php) [function.require-once]: failed to open stream: No such file or directory in [path]/OpenInviter/frontend.php on line 2

Fatal error: require_once() [function.require]: Failed opening required '/path/to/your/forum/dir/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home3/dpakcocc/public_html/forums/OpenInviter/frontend.php on line 2

plez help

Phornixx
07-22-2009, 08:14 PM
Looking excelent! I've performed some template edits so it looked cool and also appeared in the last step of the registration!

Thanks!

desi-boy
07-25-2009, 09:37 AM
now its
Fatal error: Cannot redeclare class Facebook in /home3/dpakcocc/public_html/forums/includes/facebook/facebook.php on line 37

matthewhotdude
07-30-2009, 10:22 AM
Im not quite sure what im supposed to put here require_once('/path/to/your/forum/dir/global.php')

Thats sorted and it works if I do one contact at a time, If i try to do loads at ones I get this error

Internet Explorer cannot read this webpage format
HTTP 406
What you can try:
Go back to the previous page.

More information

This error (HTTP 406 Not Acceptable) means that Internet Explorer was able to receive information from the website you visited, but the information was not in a format that Internet Explorer can display.

For more information about HTTP errors, see Help.

jskoh
07-31-2009, 02:39 PM
hi im having this error

Warning: require_once(OpenInviter/frontend.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 269

Fatal error: require_once() [function.require]: Failed opening required 'OpenInviter/frontend.php' (include_path='.:/usr/share/pear') in /misc/31/000/050/017/1/user/web/domain.com/forums/global.php(400) : eval()'d code on line 269

what is wrong?

matthewhotdude
07-31-2009, 08:34 PM
this doesnt work with the facebook connect mod.
Creates this error Fatal error: Cannot redeclare class Facebook in /home/chattabo/public_html/includes/facebook/facebook.php on line 37

Is there any work around or a way to disable the facebook part of this mod?

matthewhotdude
08-01-2009, 09:03 AM
also people with hotmail.co.uk address can not invite their contacts. I tried the autoupdate.php and got this error
2009-08-01 11:11:20] ERROR Bad authentification data

jskoh
08-01-2009, 11:11 AM
i this mob still isnt stable, probably can remove it from here... thank.

matthewhotdude
08-01-2009, 01:45 PM
It would be perfect if I could get the autoupdate to work

matthewhotdude
08-01-2009, 06:26 PM
Please someone, it's a awsome mod apart from this one problem

matthewhotdude
08-02-2009, 08:29 AM
Keep getting a SQL error now when inviting people

Database error in vBulletin 3.8.3:

Invalid SQL:

SELECT noticeid
FROM noticedismissed AS noticedismissed
WHERE noticedismissed.userid = 1;

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Sunday, August 2nd 2009 @ 10:25:15 AM
Error Date : Sunday, August 2nd 2009 @ 10:27:09 AM
Script : http://www.chattaboxforums.com/misc.php?oi=true
Referrer : http://www.chattaboxforums.com/misc.php?oi=true
IP Address : 94.172.77.52
Username : matthewhotdude
Classname : vB_Database_MySQLi
MySQL Version :

matthewhotdude
08-27-2009, 12:16 AM
No support?

goycarden
08-27-2009, 05:02 PM
i've this error message after typing a windowslive email adress:


Fatal error: Call to undefined function curl_init() in forum-location\OpenInviter\openinviter_base.php on line 266

Akyeame Kwame
09-06-2009, 08:30 AM
Looking excelent! I've performed some template edits so it looked cool and also appeared in the last step of the registration!


Thanks!

Hello,

How did you get it to appear in the last step of registration?

Akyeame Kwame
09-06-2009, 08:30 AM
Yahoo is no longer importing but gmail is. Is there an issue on the yahoo side of things?

matthewhotdude
09-19-2009, 04:59 AM
Hotmail won't connect.... This should be removed if no support

BBR-APBT
09-20-2009, 03:21 PM
Hotmail won't connect.... This should be removed if no support

Mod is no longer supported. It is not marked as supported. Most of the problems are with Open Inviter. Not my code. All I did was build the bridge. They update the connection files to each platform like google, gmail, facebook. Why would I want support their project.

I did say I would not support their code and once every started with problems with their code I stopped supporting this plugin.

The plugin works fine several people got it working just fine.

ExplosiveGFX
09-21-2009, 03:50 PM
This makes my forum whitepage. :(

ExplosiveGFX
09-24-2009, 03:34 PM
Can I get any help as to why this could make my forum white page please? :/

Floris
09-27-2009, 06:30 PM
error_log will disclose the error most likely.

ExplosiveGFX
09-27-2009, 07:21 PM
in config.php I put "ini_set("display_errors", true);" and now instead of a whitepage I get this:

Warning: file_put_contents([path]/acp/../OpenInviter/config.php) [function.file-put-contents]: failed to open stream: Permission denied in [path]/acp/oi_settings.php on line 89

in the AdminCP, and when I go to my site, I get..

Parse error: syntax error, unexpected T_ECHO in /home/explosive/public_html/forum/OpenInviter/frontend.php on line 201

:/

Any help on what could cause that?

ExplosiveGFX
09-27-2009, 08:51 PM
I got it working http://explosivegfx.com/forum/images/smilies/new/thumbup.gif

Log on
09-28-2009, 07:06 AM
very nice

WxP
10-02-2009, 12:28 AM
where i`am trying to open page of inviter after click in my forum open in index.php and not page of inviter!

matthewhotdude
10-15-2009, 10:58 PM
I get the following error if anyone can help?

Fatal error: Call to a member function shareads() on a non-object in /home/chattabo/public_html/includes/functions.php(5737) : eval()'d code on line 32

tyfoon
10-18-2009, 04:38 PM
solution for the error without making changes to the vbulletin files

Brandon Sheley
10-18-2009, 06:12 PM
nice mod, will check this out sometime

afgboy
10-25-2009, 06:58 PM
hi, i installd openinviter and knwo when i want go in my emaladresse, there are a message that the scurity token are missing....
this ist my site www.diggahamburg.de

can someone help me?

accludetuner
11-02-2009, 11:35 PM
I've been trying that myself without much luck. Here's what I have but it's not working.

in OpenInviter/config.php
<?php
require_once('/path/to/my/forum/global.php');
$url = "index.php?referrerid=" . $vbulletin->userinfo['userid'];
$openinviter_settings=array(
"username"=>"blah",
"private_key"=>"11111111111111111111111111111111",
"cookie_path"=>'/mycookiepath',
"message_body"=>"You are invited to blah.com! Please use the following link to visit the site: $url", // www.blah.com is the website on your account. If wrong, please update your account at OpenInviter.com
"message_subject"=>" is inviting you to www.blah.com", // www.blah.com is the website on your account. If wrong, please update your account at OpenInviter.com
"transport"=>"curl", //Replace "curl" with "wget" if you would like to use wget instead
"local_debug"=>"on_error", //Available options: on_error => log only requests containing errors; always => log all requests; false => don`t log anything
"remote_debug"=>FALSE //When set to TRUE OpenInviter sends debug information to our servers. Set it to FALSE to disable this feature
);
?>

In the invite email it will show:


but 'userid' is not getting passed :(

Awesome mod BTW, even with the openinvitaion quarks and issues. ;)




I forgot all about this thread! I ment to update it a while ago. Checked and it appears that no one has posted the solution to including the referral ID in the URL so here's how I got them to work.

Almost the same as above but a little subtle change.

In OpenInviter/config.php
<?php
require_once('/home/dir/to/my/site/forum/global.php');
$ref_id = $vbulletin->userinfo[userid];
$ref_url = "http://www.mysitename.com/index.php?referrerid=" . $ref_id;
$openinviter_settings=array(
'username'=>'myusername',
'private_key'=>'1111111111111111111111111111111111',
'filter_emails'=>'',
'transport'=>'curl',
'local_debug'=>'on_error',
'remote_debug'=>'',
'message_subject'=>' is inviting you to www.mysite.com',
"message_body"=>"You are invited to MySiteName! Please use the following link to visit the site:

$ref_url",
'cookie_path'=>'/mytempdir'
);

The only real change is that I had to pass userinfo[userid] to $ref_id and then insert $ref_id as the id to be used in the URL. It didn't like being inserted straight into the URL. ALso, note the message_body and text are in double quotes ". It did not work with single quotes there. Other than that, change all the appropriate info to your site and it should work just fine.

Hint: if you change the config.php file and upload to your site, then go into the OpenInviter settings in adminCP (or refresh the page), it should show the proper URL with YOUR userid. That's how you know it works ;)

accludetuner
11-02-2009, 11:39 PM
I get the following error if anyone can help?

Fatal error: Call to a member function shareads() on a non-object in /home/chattabo/public_html/includes/functions.php(5737) : eval()'d code on line 32

doesn't sound related to this mod at all. Sounds more like it would be related to some sort of advertising mod perhaps???

hi, i installd openinviter and knwo when i want go in my emaladresse, there are a message that the scurity token are missing....
this ist my site www.schuelerhh.de

can someone help me?

the solution is in this thread if you search

businessmeet
12-05-2009, 10:02 AM
Sorry, I'm not going to use this at this time. Please fix what's currently broken. Make things easier. Thanks.

Dzi13
12-06-2009, 01:10 PM
vB v4 b5 test: doesn't work

BBR-APBT
12-06-2009, 04:40 PM
Sorry, I'm not going to use this at this time. Please fix what's currently broken. Make things easier. Thanks.
It is tagged as not supported and in beta stage. I have no plans to update this as I do not use open inviter.


vB v4 b5 test: doesn't work
Its not going to there are template changes and probably some code changes.
I do not plan to upgrade this to VB4.

Sorry for the inconvenience. If someone wants to take over this mod feel free to contact me.

Verionia
02-26-2010, 12:46 AM
Please make this work for vb4!

matthewhotdude
04-01-2010, 07:04 PM
Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Thats the error I get when I click invite ??

lovegirl
04-21-2010, 09:13 PM
thx for the mod, works fine after fixing some errors cheers and good luck everyone

it doesnt appear in the quick links in all styles , how to fix that :(

Regards

ashwin_nov
05-30-2010, 07:19 AM
i had integrate openinviter into my Website VB 4 .. And its working fine.. the only thing now i want is.. when i click on invite friends open invite form appears below the Forums list. And user has to scroll the page to reach. But i want this at above the forums. CAn anyone teach me that how can i change the appearing location.

ashwin_nov
06-03-2010, 01:36 PM
i had integrate openinviter into my Website VB 4 .. And its working fine.. the only thing now i want is.. when i click on invite friends open invite form appears below the Forums list. And user has to scroll the page to reach. But i want this at above the forums. CAn anyone teach me that how can i change the appearing location.

pls help me as i m still waiting for help..

Inferno Dragon
06-13-2010, 08:56 AM
i have done everything right but i m having this error on http://www.mysite.com/OpenInviter/frontend.php

Warning: require_once(/home/xxxxx/public_html/OpenInviter/includes/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxx/public_html/global.php on line 20

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxx/public_html/OpenInviter/includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/global.php on line 20

Also i don't have any Import Friend/Contact Link in Quick Links On My Forum.Please Let me know how to fix this.Thanks.

i m using Vbulletin 3.8.5

jskoh
06-15-2010, 05:14 PM
a very nice mod but unstable. hope some coder can update this mod.. =D

FitgirlWorld
06-19-2010, 07:17 PM
what person in their right mind will input both their Email address and their Email PASSWORD?? I dont know anyone who would do that imo

FitgirlWorld
06-21-2010, 01:17 AM
a very nice mod but unstable. hope some coder can update this mod.. =D

very unstable...

keep getting hundreds of db errors

DNN
04-06-2011, 03:31 AM
Is there any other free plugin other than OpenInviter that allows forum users to import e-mail contacts from over 60+ social networks?

DNN
04-08-2011, 06:39 PM
the code is not working. just followed instructions to a "T" and when you get to the open invite options in your admin CP, nothing is there

c0der
09-18-2011, 11:45 PM
thx

what sites supported?

DNN
09-24-2011, 10:20 PM
this mod no longer works

karlm
01-30-2012, 11:49 PM
Shame, I've just discovered this (default download on the openinviter site) and can't get it to do anything on my vb4.1.10 install :(

vBarsiv
01-05-2013, 09:27 PM
I have a Invalid service provider. I was want import list mail but not work. you can help me?