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

Reply
 
Thread Tools
Invitation System vB 3.7 Gold Details »»
Invitation System vB 3.7 Gold
Version: 2.0, by Hasann Hasann is offline
Developer Last Online: Jun 2021 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.2 Rating:
Released: 03-02-2008 Last Update: 07-31-2008 Installs: 1112
DB Changes Uses Plugins Template Edits Auto-Templates
Translations  
No support by the author.

Invitation System by HASANN

This Product brought to you by
www.vBulletin-TR.Com

Comments, suggestions, translations, bugs, etc... are very welcome! Support is only given to people who have clicked INSTALL.

DESCRIPTION

->What does it? > Allow users send invites to everybody.

Go For Invitation Hack vBulletin Version 3.5 and 3.6.series

DEMO

you can test it at here http://www.vbulletin-tr.com/forum/pr...ation&langid=1

FEATURES
  • complete code rewrited
  • Included a user referrer code to invite code, so when they sign up, it shows up who referred them.
  • Now users can delete their invites
  • Invitation Image Verification Added
  • The system can be turned on and off.
  • Usergroups Permissions Added; Allowed Usergroups to View and to Use This Hack
  • Invitation User Control Panel Link; Show Invitation Link in "User Control Panel" Left Menu
  • Invitation Automatic Link Creation; This will create a link on your forum navbar to the invitation page
  • Usergroups Permissions Added
  • fully phrased
  • added an admin option disable registration via normal methods
  • added an admin option which usergroups can to delete their invites
  • added an admin option enable disable invitation image verification
  • added an admin option Edit the Email Text Title
  • added an admin option Edit the Invite Description
  • added Invitation Sender Username to Email
  • integrated the totally vBulletin default Human Verification System into Invitation System

    You decide it if you wich human verification system will be used in the invitation system go to Admincp > Human Verification Manager > and select one human verification if you want.
  • these are;
  • Image Verification
  • An image consisting of letters in varying fonts/shapes/sizes will be shown to the user. The appearance of this image is dicated by several options that you may control.
  • Question and Answer Verification
  • Questions provided by you that must be answered appropriately for verification.
  • reCAPTCHA Verification
  • An image containing two words will be shown to the user. This verification supports audio, allowing blind users to register.
  • Added Invitation User Options
  • a> Ability to limit number of invites by user. (user: Admin an have 10 invites, user: Testuser can have 20, etc, admin controlled)
  • b> Ability to reset invites to 0 on a per user basis (override), admin controlled
  • c> Ability to reset to max being unused, admin controlled
  • d> Abilitiy turn to on or off Invitation System per user basis, admin controlled
INSTRUCTIONS
Install: ->Just Import product_invitation.xml via Product Manager

->Do template edits:
In USERCP_SHELL Template Find this Code

HTML Code:
<if condition="$show['profilepiclink']">
	<tr><td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr>
	</if>
Add Below This Code

HTML Code:
<if condition="$vbulletin->options['invitation_usercp_link']">
<tr>
<td class="$navclass[invitation]" nowrap="nowrap">
<a class="smallfont" href="profile.php?$session[sessionurl]do=invitation">$vbphrase[invitation]</a>
</td>
</tr>
</if>
Comments, suggestions, translations, bugs, etc... are very welcome! Support is only given to people who have clicked INSTALL.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
SaN-DeeP

Comments
  #182  
Old 04-06-2008, 12:36 AM
NeuroLancer's Avatar
NeuroLancer NeuroLancer is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow! I love this new version!

:up: Working flawlessly~

Thanks so much Hasann & Scythe42
Reply With Quote
  #183  
Old 04-06-2008, 01:39 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When inviting a someone that is already a member, then you get the following message:
Quote:
The user has already been invited.
While the user has not been invited before. It should be:
Quote:
The user already is a member.
Below the invitation email it says:
Quote:
EZ Bounce Management:

If this email has bounced, visit the following URL for bounce
management:
http://www.yoursite.com/forum/admincp/ezbounce.php?u=
If a invited person is not a member yet, ezbounce does not work. So if I am not mistaken there is no use for this text.

Does this modification list the invitation link somewhere?

And last but not least: Many thanks for this excellent mod!
Reply With Quote
  #184  
Old 04-06-2008, 02:35 AM
Scythe42 Scythe42 is offline
 
Join Date: Feb 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
While the user has not been invited before. It should be:
The phrase is returned when the entered email is found in the user table. There is currently no check if a the userid is also found in the invitation table. I'll modify the query and add another phrase to distinguish between mebers and invited members.

Quote:
Originally Posted by Alfa1 View Post
If a invited person is not a member yet, ezbounce does not work. So if I am not mistaken there is no use for this text.
ezbounce adds the link even if the email is not registered. Can be easily fixed.

You need change the "EZ Bounce Management - construct code" plugin, so that it does only attach the link when the email is also registered on your forum:

The following code should do the trick. If the email is not found in the user table, the outgoing message is not touched. Give it a try. I haven't ezbounce installed therefore this is not tested. I added a simple IF-Statement around the code right after the query.
PHP Code:
global $vbphrase$db;

$buser $vbulletin->db->query_first("
        SELECT * FROM " 
TABLE_PREFIX "user
        WHERE email LIKE '%" 
$vbulletin->db->escape_string_like($toemail) . "%'
    "
);

if ( 
$buser['userid'] ) {
    
$bounceurl        $vbulletin->options['ezb_admincpurl'] . "/ezbounce.php?u=" $buser['userid'];
    
$bouncestring    "<a href="$bounceurl" target="_blank">$bounceurl </a>";

    if (!
$vbulletin->options['ezb_showezbouncelink'])
    {
        
// if turned off, put bounce url into header (default option)
        
$headers .= 'X-EZbouncer: ' $bounceurl $delimiter;
        
/* replace above line with following line if the url in bouncing email header is not displaying as a link
        $headers .= 'X-EZbouncer: ' . $bouncestring . $delimiter; 
        */
    
}
    else
    {
        
// if turned on, construct bounce code & place in email message body
        
$bouncecode    construct_phrase($vbphrase['anti_bounce_message'], $bounceurl); 
        
/* replace above line with following line if the url in bouncing email body is not displaying as a link
        $bouncecode    = construct_phrase($vbphrase['anti_bounce_message'], $bouncestring); 
        */
        
$message .= $bouncecode;
    }

Quote:
Originally Posted by Alfa1 View Post
Does this modification list the invitation link somewhere?
Was previously removed. I'll add an option to make the invitation code a link. I previously removed it because it didn't display the invitation code correct.

I'll post an update later that takes care of your requests.
Reply With Quote
  #185  
Old 04-06-2008, 06:04 AM
Scythe42 Scythe42 is offline
 
Join Date: Feb 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here the update I promised in the last post.

Changes:
  • when checking for already registered member there is now an additional phrase for distinguishing between registered and invited members (reqested by Alfa1)
  • added on option to display the invitation code as a link again (requested by Alfa1)
  • remove the "click two times" message from the invitation email phrase. That's not needed anymore.
  • changed "mysql_real_escape_string" to "$db->escape_string"

Please test before including in the next official version of this mod

What's missing is a cron job that deletes pending invites after x number of days automatically and gives the intivations back to the users. This should help users who cannot delete sent invitations that were never claimed or sent them to a wrong emal address. This should be combined with optional features like "give additional invites ever xxx posts" or so.
Reply With Quote
  #186  
Old 04-06-2008, 09:58 AM
hrk hrk is offline
 
Join Date: May 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Solid hack . thanks hassan
Reply With Quote
  #187  
Old 04-06-2008, 12:13 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone added the ability to grab from multiple e-mail accounts yet?

I've got the invitation system by visionscripts, which will do it, but it is not supported and will not work with 3.7.

This mod seems to still get support, so I've marked as installed and nominated it instead, even though I disabled it.

Thanks to scythe for working on it as well. It is a very important, useful mod, and I hope to see it grow in the next couple of months to become the best one available. Until then, sorry, but I've got the visionscripts one installed.
Reply With Quote
  #188  
Old 04-06-2008, 12:50 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To elaborate a bit more, here are a some features I'd like added to this invites system:
  • The ability for the user to attach a note to the invitation. This will allow them to write whatever they want, and will NOT affect what the admin has used for the main e-mail body.
  • The ability to add multiple invites at once. How many should be determined by the admin.
  • As mentioned before...E-MAIL GRABBERS. Great addition to an invites system.
  • If a user sends an invite and the person accepts, those two should automatically become buddies. (Feature should be able to turn on/off by admin)
  • Admin selected expiration for invites.
  • Automatic invite reminders sent to those who have not signed up yet. (How long before they are sent should be controlled by Admin.)
  • The ability to add reputation points automatically to those who successfully get someone to sign on.

I apologize if these are already added. There has been already many good changes done to this invites system.
Reply With Quote
  #189  
Old 04-06-2008, 01:59 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those are very nice feature requests. I'd like to add two:
  1. Spam control: send a link in the invitation email to allow the recipient to report spam to the forum admin. The recipient can click the link and the forum admin will get a notification about this. This will prevent members spamming.
  2. A simple feature that is very necessary is to have the message content comply to anti-spam rules of major email providers. This can be done by adding a short message on the bottom of the message which explains: (1)to which email address the message is sent (2)why the recipient has received the message and (3)how the recipient can report abuse(see my other feature request). By complying to the anti spam rules of large email providers like hotmail, yahoo, gmail and AOL, you prevent getting blacklisted as a spammer.
Reply With Quote
  #190  
Old 04-06-2008, 03:33 PM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestion for auto-template invitation block in home usercp:

Create new template called "usercp_invitation_block"
Use this code inside:
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>

<td class="tcat">$vbphrase[invitation_system] <if condition="$show['invitation_left']"><phrase 1="$bbuserinfo[invitation]">($vbphrase[invitation_x_left])</phrase></if></td>
</tr>
<tr>
	<td class="alt1"><span class="smallfont"><a href="profile.php?$session[sessionurl]do=invitation">$vbphrase[invitation_click_here_to_invitation_new_users]</a></span></td>
</tr>
</table>
<br />
Create new Plugin called "Invitation Auto Template" with hook "parse_templates"
Use this code inside:
PHP Code:
if ($vbulletin->options['invitation_active'])
{
    eval(
'$template_hook[usercp_main_pos1] .= "' fetch_template('usercp_invitation_block') . '";');

Create new Plugin called "Invitation Cache Templates" with hook "cache_templates"
Use this code inside:
PHP Code:
$globaltemplates array_merge$globaltemplates, array('usercp_invitation_block') ); 
Use this hack for added link into menu. For now not have time to create this..

Thanks for hack.. this very good project =)
Reply With Quote
  #191  
Old 04-06-2008, 04:56 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there was a spam issue
sorry guys for the issue I have fixed and upgraded
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 02:18 PM.


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.06652 seconds
  • Memory Usage 2,355KB
  • 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_html
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete