vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Open Inviter Implementation | Massive Traffic (https://vborg.vbsupport.ru/showthread.php?t=249388)

CMSTemplateZ 08-25-2010 10:00 PM

Open Inviter Implementation | Massive Traffic
 
1 Attachment(s)
https://vborg.vbsupport.ru/external/2010/08/13.png

Add-on Name: Open Inviter (vBulletin 4x implementation)

Add-on Demo: Click Here (Please Test & Invite your contacts to view my site in return for me sharing this guide)

Add-on Description: Basically this is your All-in-One email client / social networking contact inviter. Using this script on your website will enhance your traffic & sign up's, ive used other scripts like "Open Inviter" in the past and this is by far the most "User Friendly" version i have come across and best of all it's Free!! openinviter.com does have a vBulletin package for this however it does not work as it's not been updated / their package updates / general support is well very slack to say the least.

Let's get this baby installed:

What you will need: (to implement this the way i have on Battlefield 3)

- Open Inviter (General Package, not the vBulletin version as it DOES NOT WORK) [NOTE: you need to register an account / domain to be used with them 110% Free, no email confirmation required ;) ]

Install open inviter to this path EXAMPLE.COM/OpenInviter/ <--- notice the caps !!, the folder in the download is already like this, just be sure to upload the folder to your domain root.

- vBulletin 4 Tab Mod (or you can make your own tabs using this guide: HERE)

Now Install the above requirements, you can find the OpenInviter installation guide within the download package, it's very simple to install.

STEP: #1

Add the below code to the END of your "HEADERINCLUDE" template. (this is a dynamic iframe script, this enables clean iframes for scripts like this that have several pages / steps within the process in which may use different sized pages.)
Code:

<script type="text/javascript">

/***********************************************
* IFrame SSI script II- ? Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>

STEP: #2

Create a New "TEMPLATE" with your Style or Master Style we are going to call this Template "inviter" <--- NO CAPS !!
HERE IS THE CODE FOR THE TEMPLATE: (be sure to change EXAMPLE.COM to your domain)

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>
   
    <h2 class="blockhead">Contact Inviter</h2>
    <div class="blockbody">
      <div class="blockrow"><p><center><b>Invite your contacts using our new Contact Invite</b> PLEASE NOTE!! We do not see or store your username or password</center></p><br>
<center><img src="http://i36.tinypic.com/9i9zwl.png"/></center><br>       

<iframe id="myframe" src="http://EXAMPLE.COM/OpenInviter/invite.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:98%; display:none"></iframe>
      </div>
    </div>
   
    {vb:raw footer}
  </body>
</html>

STEP: #3

Download the attachment: "invite.php" you need to upload this to the OpenInviter Folder: EXAMPLE.COM/OpenInviter/ This is a modified version of the original / main OpenInviter trigger file (just a better layout then the default one).

STEP: #4

Download the attachment: "inviter.php" <-- INVITER.PHP not INVITE.PHP..... Upload this to your Domain Root Directory: EXAMPLE.COM

Now you should be able to visit: EXAMPLE.COM/invite.php and have a fully working version of OpenInviter within a vBulletin 4 page.

STEP: #5

All that is left to do now is simply create a new tab in your vbulletin installation (you don't have to, but the more people who see the tab the more people who will use this feature). You can use the vBulletin 4 tab mod posted above to create a new tab.

This tab should point to EXAMPLE.COM/inviter.php

NOTE: Replace EXAMPLE.COM with your own domain.

TEXT COLOR WITH THE IFRAME:

To change the text color:

Open "INVITE.php" you will see the following script at the very top of the page:
Code:

<style type="text/css">body {color: #ffffff;
}</style>

Change #FFF to the color you needs

I am awaiting confirmation from OpenInviter.com to package this as a .XML install, this will be updated shorlty once i hear back from them.

ENJOY (don't forget to say thanks, and mark as installed for support).

CMSTemplateZ 08-26-2010 08:04 PM

**** RESERVED FOR FUTURE UPDATES / RELEASES ****

ozzy47 08-26-2010 08:28 PM

Looks Good tagged for later!!

Kraxell 08-26-2010 08:34 PM

Looks very nice. wait for some feedbacks.

COL NIL SATIS 08-26-2010 08:36 PM

Sounds awesome this ...tagged for tomorrow !! great work mate

CMSTemplateZ 08-26-2010 08:37 PM

Your welcome to test on my site.... There is no way to view anyone's details... Usernames and Passwords are in no way seen / stored / accessible by forum owners / admin / or anyone else.

Very handy script tho, i used on a old call of duty site, the extra traffic was very handy :)

Kraxell 08-26-2010 08:46 PM

Iam a owner of a german website and there are only some german-social-sites in this hack but i installed it the next days and test it.

gurler 08-26-2010 08:54 PM

i've installed this mod. thank you it works.
very good mod. marked as installed but i have a problem;

the imported email's list is not on my web site charset. so the names which are different characters are not shown.

CMSTemplateZ 08-26-2010 08:59 PM

Quote:

the imported email's list is not on my web site charset. so the names which are different characters are not shown.
May be sever related, this add-on does require "cURL" to be enabled by your hosting company, there is a setting in the "Config" file to switch between "cURL" or "wget" this may help you i am unsure...

EXAMPLE.COM/OpenInviter/config.php <---- Maybe try changing to "wget" method.

I have tested my own implementation of this, and will support my above tutorial / guide / add-on.. but can not provide support for OpenInviter they do have forums you may use tho (support is slow however).

Hope that helps

gurler 08-26-2010 09:05 PM

thank you for your quick reply.
but it not works.
is there any option to add a code to iframe page ?

puertoblack2003 08-26-2010 09:09 PM

nice mod :) i'm looking for the file to change font color i'm using default skin.

CMSTemplateZ 08-26-2010 09:10 PM

Well i used the Dynamic Iframe script to help.

Under a normal frame, you would need set the height... not the problem here is... height="100px" or height="auto" does not work.. and should one of your visitors or members have say 500+ contacts not all could show... so by using the dynamic iframe script the frame will re-size depending on the needs of the end user.

I don't suggest using in a standard iframe, the above method works fine, i will take note of comments on this thread and implement some new methods / ideas as i update this but as it stands it's working fine and doing what it says it does :)

CMSTemplateZ 08-26-2010 09:12 PM

To change the text color:

Open "INVITE.php" you will see the following script at the very top of the page:
Code:

<style type="text/css">body {color: #ffffff;
}</style>

Change #FFF to the color you needs.. editing the first post now.

gurler 08-26-2010 09:19 PM

Quote:

Originally Posted by CMSTemplateZ (Post 2090049)
Well i used the Dynamic Iframe script to help.

Under a normal frame, you would need set the height... not the problem here is... height="100px" or height="auto" does not work.. and should one of your visitors or members have say 500+ contacts not all could show... so by using the dynamic iframe script the frame will re-size depending on the needs of the end user.

I don't suggest using in a standard iframe, the above method works fine, i will take note of comments on this thread and implement some new methods / ideas as i update this but as it stands it's working fine and doing what it says it does :)

no i am not talking about the height issue..
any meta code to change charset can be added to the invite.php ?
so the cURL or wget is not affected the charset.

puertoblack2003 08-26-2010 09:19 PM

Quote:

Originally Posted by CMSTemplateZ (Post 2090051)
To change the text color:

Open "INVITE.php" you will see the following script at the very top of the page:
Code:

<style type="text/css">body {color: #ffffff;
}</style>

Change #FFF to the color you needs.. editing the first post now.


thank you very much works like a charm :up:

betts02 08-26-2010 09:21 PM

Tagged it for now, Just need to find someone to install it,lol

Too much for me,lol

gurler 08-26-2010 10:27 PM

i found the string in invite.php : $name
how can i convert it to UTF-8 or anyting else?

Blooded 08-26-2010 10:34 PM

tagged for now. thanks a lot

CMSTemplateZ 08-26-2010 11:02 PM

The script is that of OpenInviter... i can not distribute re-written code without permission, maybe you are best posting on their forums. I will contact them and see if i am allowed to clean some of that code up.

Overall it is a very solid product considering it's free and can basically turn 10k uniques into 100k uniques we should be thankful it's free, it's a very powerful tool.

I will keep the thread updated and see what i can do.

PS... the demo site is up for BOTM (wink wink nudge nudge)

Manoel J?nior 08-26-2010 11:24 PM

On the site, is not being sent to the Orkut invitations.

CMSTemplateZ 08-26-2010 11:34 PM

Hmm i tested most of the services before and just about all of them went through fine.. You can find further / specific support on the OpenInviter.com forums

Lone Gunman 08-27-2010 05:31 AM

if you want it at the bottom of your forum main page like here (http://lawnprosite.com) then open the FORUMHOME template and add this code under <!-- end what's going on box -->

<div class="blockbody">
<div class="blockrow"><p><center><b>Invite your contacts using our new Contact Invite</b> PLEASE NOTE!! We do not see or store your username or password</center></p><br>
<center><img src="http://i36.tinypic.com/9i9zwl.png"/></center><br>

<iframe id="myframe" src="http://YOUR_SITE.com/OpenInviter/invite.php" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:98%; display:none"></iframe>
</div>
</div>



dont forget to edit your site directory

giorgino 08-27-2010 05:56 AM

1 Attachment(s)
Quote:

Originally Posted by CMSTemplateZ (Post 2090032)
Your welcome to test on my site.... There is no way to view anyone's details... Usernames and Passwords are in no way seen / stored / accessible by forum owners / admin / or anyone else.

Very handy script tho, i used on a old call of duty site, the extra traffic was very handy :)


thank you great trick! :D
Can you also share with us how you made this awensome ticker? (See attachment)

raiderlax 08-27-2010 06:08 AM

Wow this is a great mod! Although I wish the actually look of it was a bit better. The drop down seems tedious to find a site, can you make it a bit more like this mod where the images are shown - https://vborg.vbsupport.ru/showthread.php?t=233618 ?

The_____KinG 08-27-2010 11:35 AM

thanks a lot marked for install this is really helpful
if you dont mind can u plese tell me where i can get the twitter widget thats on u r site at the left and also the latest messages ticker at the top

thanks a lot again

Alucard^ 08-27-2010 01:13 PM

Nice Job ;)

OpenInviter link doesn't work for me... its only me?

Quote:

Originally Posted by giorgino (Post 2090215)
thank you great trick! :D
Can you also share with us how you made this awensome ticker? (See attachment)

Well, i asked this to him too... and in Google you can get a lot of information and public scripts about this... see this links:

http://www.texotela.co.uk/code/jquery/newsticker/
http://www.websitebabble.com/html-ph...ss-ticker.html
http://medienfreunde.com/lab/innerfade/
http://www.jquerynewsticker.com/

I am using the one of http://medienfreunde.com and work perfect.

giorgino 08-27-2010 04:45 PM

Thank you Alucard :D
I've resolved!!!

Dr.osamA 08-27-2010 07:36 PM

Excellent = 5 stars
installed

got error

PHP Code:

Warningfopen() [function.fopen]: SAFE MODE Restriction in effectThe script whose uid is 504 is not allowed to access /tmp owned by uid 0 in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 261

Warning
fopen(/tmp/oi.1282938333.9026.cookie) [function.fopen]: failed to open streamNo such file or directory in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 261

Warning
fclose(): supplied argument is not a valid stream resource in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 262

Warning
fopen() [function.fopen]: SAFE MODE Restriction in effectThe script whose uid is 504 is not allowed to access /tmp owned by uid 0 in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 515

Warning
fopen(/tmp/log_error.log) [function.fopen]: failed to open streamNo such file or directory in /home/alra7bax/public_html/vb/OpenIn 

Quote:

Originally Posted by giorgino (Post 2090215)
thank you great trick! :D
Can you also share with us how you made this awensome ticker? (See attachment)

i need it too

Waiting . . . . .

Lone Gunman 08-27-2010 11:22 PM

Quote:

Originally Posted by Dr.osamA (Post 2090455)
Excellent = 5 stars
installed

got error

PHP Code:

Warningfopen() [function.fopen]: SAFE MODE Restriction in effectThe script whose uid is 504 is not allowed to access /tmp owned by uid 0 in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 261

Warning
fopen(/tmp/oi.1282938333.9026.cookie) [function.fopen]: failed to open streamNo such file or directory in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 261

Warning
fclose(): supplied argument is not a valid stream resource in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 262

Warning
fopen() [function.fopen]: SAFE MODE Restriction in effectThe script whose uid is 504 is not allowed to access /tmp owned by uid 0 in /home/alra7bax/public_html/vb/OpenInviter/plugins/_base.php on line 515

Warning
fopen(/tmp/log_error.log) [function.fopen]: failed to open streamNo such file or directory in /home/alra7bax/public_html/vb/OpenIn 



i need it too

Waiting . . . . .

im not an expert at this but make sure curl is enabled on your server and check /tmp folder permissions (755).

thats my guess anyways. :confused:

stator 08-28-2010 11:37 AM

Thank you man.
But, when using facebook, it says that the login details is incorrect. (I am sure it is correct).

Update, when i go to my facebook account it said:

our account was recently accessed from a location we're not familiar with. For your protection, please review your recent activity to make sure no one is using your Facebook account without permission.

Reviewing your activity takes just a few moments. We'll start by asking you a couple of questions to confirm that this is your account. (If we recognize your computer, you'll be able to skip this step.)


Also I wish :

- The message automatically contains the registeration link + the refferal ID without any interference from users.
- The message to be cuztomized to be containing some graphics as forum logo.

BlueCheri 08-28-2010 12:02 PM

Interesting, tagged.

CMSTemplateZ 08-28-2010 12:23 PM

Quote:

Originally Posted by stator (Post 2090672)
I want to know what the different between your mod and the original mod provided by OpenInviter (Here) .
Thnx in Advance.

Well firstly... the OpenInviter vBulletin simply DOES NOT WORK (their forums are full of threads complaining about this).. it worked for 4.0.1 but was never updated after this.

Also ive modified the layout of the Openinviter Looks much better compared with the default layout, also added options to edit text colors.

I am still waiting on a reply from openinviter so that i can modify this and produce a .xml plugin.

New features i will be adding:

- Option to select what email / social networks can be used.
- Profile modification (so people can use this from within their USERCP)
- Implementing other ideas from vb.org members
- More features / options etc

Again i need permission from OpenInviter dev's in order to modify this.. but as it is now it works 100% does what it says it does and works within a vBulletin page.

I also appreciate the positive feedback :)

stator 08-28-2010 12:43 PM

Thank you man, I realized that after the post i had made.
Now, please reply me for what I had modify Here

Also, I want to know how to make "Latest Messages" like that on your forum. Awesome :)

CMSTemplateZ 08-28-2010 01:32 PM

Quote:

Also, I want to know how to make "Latest Messages" like that on your forum. Awesome
Firstly, it's just a "Ajax Ticker" <-- google it ... Ive modded this for my own personal use (also hard coded, nothing to do with vBulletin), i will not be releasing this, this thread should be kept on track for the OpenInviter vBulletin 4x integration.

As for Facebook, i am not sure, it's working fine for me and others.

Quote:

- The message automatically contains the registeration link + the refferal ID without any interference from users.
- The message to be cuztomized to be containing some graphics as forum logo.
I will implement this is a later release, as for the logo idea this will be included in the next release possible as a transparent background overlay / underlay.

Dr.osamA 08-28-2010 03:57 PM

Quote:

Originally Posted by Lone Gunman (Post 2090539)
im not an expert at this but make sure curl is enabled on your server and check /tmp folder permissions (755).

thats my guess anyways. :confused:

thanxx man

i have installed curl + tmp is ok

this i have when i run postinstall.php

PHP Code:

Warningset_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/alra7bax/public_html/vb/OpenInviter/postinstall.php on line 2
Checking username 
and private key... *OK*
Checking PHP version... *OK*
Checking DOMDocument support... *OK*
Checking transport method... libcurl is installedUsing cURL to handle requests
SQLite is installed
Stats enabledPlease define a stats username and password in config.php
Checking write permisions
... The /tmp folder is not writableYou will have to manually define a location for logs and temporary files in config.php 

:confused:

CMSTemplateZ 08-28-2010 04:24 PM

Quote:

Originally Posted by Dr.osamA (Post 2090763)
thanxx man

i have installed curl + tmp is ok

this i have when i run postinstall.php

PHP Code:

Warningset_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/alra7bax/public_html/vb/OpenInviter/postinstall.php on line 2
Checking username 
and private key... *OK*
Checking PHP version... *OK*
Checking DOMDocument support... *OK*
Checking transport method... libcurl is installedUsing cURL to handle requests
SQLite is installed
Stats enabledPlease define a stats username and password in config.php
Checking write permisions
... The /tmp folder is not writableYou will have to manually define a location for logs and temporary files in config.php 

:confused:

Hmmm this looks to be a server side issue.. open the config file and check that your user & pass are ok. (you need to create a folder also "tmp" (OpenInviter/tpm)... ive not seen this issue before, maybe try the suggestion below "wget" and if that doesn't work try asking on the OpenInviter forums (don't expect a fast response lol... as it is free their support sucks)

You can also try using the "wget" instead of "cURL" you can set this in the config file, I am on a Ubuntu install atm and am configuring a few things so i can't see the config file right now.. i will check for you soon when i boot back up from my main HDD.

Alucard^ 08-28-2010 06:08 PM

Its me or the OpenInvitir link doesn't work? i tried with Google Chrome, Firefox and IE without results.

raiderlax 08-28-2010 08:55 PM

This mod has a lot of potential. Thank you for working on making this mod better and adding new features. You could really make this mod amazing and charge a small fee for it like 10 bucks. I feel that a lot of people would buy it :)

nomoreturn 08-29-2010 01:02 PM

1 Attachment(s)
Installed but got Internal Server Error

CMSTemplateZ 08-30-2010 02:37 AM

Quote:

Installed but got Internal Server Error
Does your server support "cURL" ? if not you can try changing to "wget" this can be done in the config.php <---- search for "cURL"

Keep me updated and i will see what i can do.


All times are GMT. The time now is 07:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01681 seconds
  • Memory Usage 1,921KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete