Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Open Inviter Implementation | Massive Traffic Details »»
Open Inviter Implementation | Massive Traffic
Version: 1.00, by CMSTemplateZ CMSTemplateZ is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.0.6 Rating:
Released: 08-25-2010 Last Update: 08-25-2010 Installs: 41
 
No support by the author.



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).

Download Now

File Type: php invite.php (8.7 KB, 202 views)
File Type: php inviter.php (1.6 KB, 195 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 09-20-2010, 01:24 AM
billrini billrini is offline
 
Join Date: Aug 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is correct. But just because it works for you doesn't mean it will work for everyone else.

Your instructions say this:

Quote:
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.
You don't mention removing postinstall.php which means that we somewhat have to rely on the OI installation instructions since the thing won't even function without removing that file. And if you simply download, unzip, and run (then delete) postinstall.php per the OI installation instructions you CAN still have problems.

In my particular case, the OpenInviter/conf folder was set to not allow read access to anyone but the directory owner. And since I didn't install it as user apache it couldn't read that folder. That was why it hung. As soon as I changed the directory perms everything worked just as you said they would.

Who knows . . . since each download is generated dynamically (your config file is already personalized to your OI account settings) perhaps they had some glitch in the file permissions or something. I'm just telling you what I experienced and what I did to correct it.

And as for Alucard^'s issue with the file-function-put-contents output, the problem is:

1. The text is white. There's actually warning messages on that page but since the text color is set to white you can't see it on a white background. Links obviously don't follow the same style which is why you see the links.

2. The warnings are from using the E_ALL settings in your php.ini configuration and setting output to display to the user.

Example:

display_errors = On
error_reporting = E_ALL

Setting display_errors to Off is recommended because the warnings and errors CAN contain information which hackers can use to exploit your system. What the On/Off toggles is whether or not it gets displayed to the user in the browser.

That can make debugging a bit of a pain but maybe you can set it On while developing and then turn it off when all the kinks have been worked out. <-- Remember you have to restart apache after making php.ini changes for them to take effect.

Also, E_ALL reports both serious errors as well as warnings about everything from poor coding practices to other fairly harmless warnings. It is probably better to set it to

error_reporting = E_ALL & ~E_NOTICE

Which means, E_ALL but minus the notices of things that aren't that serious.
Reply With Quote
  #63  
Old 10-02-2010, 07:07 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not support Arabic ????

messege too coms like pic in attashment ...bad encloding

Any H E l P plzzzz
Attached Images
File Type: png a1.png (22.2 KB, 0 views)
Reply With Quote
  #64  
Old 10-18-2010, 03:04 AM
hosam119 hosam119 is offline
 
Join Date: Nov 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i see

Unable to write stats. /home/sheltban/public_html/vb/OpenInviter is not writable

http://vb.sheltbanat.com/inviter.php



i try mack OpenInviter 777




i show page not found






help me

Powered by Version 4.0.7
Reply With Quote
  #65  
Old 10-18-2010, 08:51 AM
hosam119 hosam119 is offline
 
Join Date: Nov 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks i fix it
Reply With Quote
  #66  
Old 10-22-2010, 01:12 AM
hosam119 hosam119 is offline
 
Join Date: Nov 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.osamA View Post
not support Arabic ????

messege too coms like pic in attashment ...bad encloding

Any H E l P plzzzz
نوع الترميز المستخدم


انا شغال معايا تمام

http://vb.sheltbanat.com/forum.php
Reply With Quote
  #67  
Old 10-23-2010, 09:52 PM
MrBig's Avatar
MrBig MrBig is offline
 
Join Date: May 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill tag this.. looks cool
Reply With Quote
  #68  
Old 10-27-2010, 02:07 AM
MrBig's Avatar
MrBig MrBig is offline
 
Join Date: May 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tride this /OpenInviter/postinstall.php

and got this

Warning: file_put_contents(config.php) [function.file-put-contents]: failed to open stream: Permission denied in /home/website/public_html/OpenInviter/postinstall.php on line 133
Checking for new versions of OpenInviter...

Fatal error: Call to undefined function curl_init() in /home/website/public_html/OpenInviter/plugins/_base.php on line 266

any help?
Reply With Quote
  #69  
Old 11-07-2010, 09:40 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which file must be translated?
If i change some words, the hole hack dont work....
Reply With Quote
  #70  
Old 11-10-2010, 02:11 PM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any new updates coming for this?
like
:intergration into registration steps
ption to auto invite all instead of having the checkbox option
Reply With Quote
  #71  
Old 01-02-2011, 06:21 AM
MelH MelH is offline
 
Join Date: Feb 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Last response from the developer was more than 3 months ago.

Can the developer please confirm that he is continuing to support this mod? It would be a shame if its no longer supported…

Is anyone using this successfully with the latest vBulletin (4.1.0)?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04849 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete