The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Open Inviter Implementation | Massive Traffic Details »» | |||||||||||||||||||||||||||||||
Open Inviter Implementation | Massive Traffic
Developer Last Online: Apr 2011
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> 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> 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> 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). Download Now
Show Your Support
|
Comments |
#52
|
||||
|
||||
I have this error in the installation of OpenInviter:
Quote:
Apart of that, the Open Inviter seems to work but, i have this problem too: |
#53
|
|||
|
|||
Quote:
Try installing from the start again, following the instructions as listed in the opening thread has worked on 10+ clients sites and several of my own. Good luck |
#54
|
|||
|
|||
seem like every of my question have been skip!!!
|
#55
|
|||
|
|||
Quote:
I have no idea why you have a database error ? considering this does not use a DB.. as for the stats these are hosted by OpenInviter.org i think you should read the official documentation regarding the stats as they need to be enabled in the config file and you must also enable them via the Official website. Hope that helps |
#56
|
||||
|
||||
CMSTemplateZ,
How well could this work on adult sites? I mean that on such sites not all contacts would be interested in receiving invites. It could actually cause quite a riot if an inviter would just invite all contacts over. Can members select who they invite and who they do not invite? |
#57
|
|||
|
|||
Hello,
When the results show up my screen does not expand. Can you please help me solve this problem. Thanks, |
#58
|
|||
|
|||
Hello great mod installed and nominated!
I think I may have the same problem as techdoctor. After I type in my login and password, the contacts are imported but then the window doesn't expand but rather I have to scroll within the frame. Thus as I scroll down I can no longer see the message I typed and only a handful of contacts at a time. I noticed on your site that after I login when the results show there is minimal/no scrolling. Do you know how we can fix this? Thank you in advance for this great mod. |
#59
|
|||
|
|||
CMSTemplateZ,
I'm having a problem I haven't seen here but I've seen in several threads on the OI website (with no response at all from anybody at OI or anybody who seems to have an answer). I follow the instructions exactly as you've laid them out. The problem seems to be in the installation of OI. I run postinstall.php and it gets this far: Quote:
PHP Code:
But when it gets to the next line PHP Code:
example.php is just a blank page. Likewise with continuing on with your mod. I get the image banner in the iframe but nothing under it. I've downloaded the general version 1.9.3. Any ideas? I know you can't really support their product but maybe you've seen something like this in your installs. Could it be the newer version has problems? Any way to get an earlier version? |
#60
|
|||
|
|||
Okay, figured it out.
If you follow the instructions as written in the OI installation guide it doesn't set the directory permissions correctly so you need to chmod everything. I had to turn php errors to on to see what the problem was because it wasn't writing them to the error file. |
#61
|
|||
|
|||
Quote:
Wish i could be more helpful.. but as i mentioned in the opening post.. the support on OI is shocking.. takes weeks to get a decent reply.. Also i don't think this is a version thing as i am running the latest version on several other sites.. I can't say ive seen the error you are experiencing so im not going to be much help sadly.. maybe run it by your hosting company as it seems very strange that even the postinstall.php script is timing out.. ive installed for several clients / friends sites and am yet to see a problem, this has been done on 5+ different web hosts and im still yet to see any issues.. so i am at a loss as to why so many people are having trouble with this. Quote:
Following my instructions correctly will see this mod WORKING FINE !! ive installed on 20+ sites now using my own reference in the Opening post. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|