vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Invitation System vB 3.7 Gold (https://vborg.vbsupport.ru/showthread.php?t=171951)

Scythe42 04-07-2008 09:27 PM

Just an development update:

DONE:
  • fixed table prefix issues
  • if an invited user is deleted the row gets removed from the invitation table
  • if an invited user is deleted the inviting user gets an invitation back
  • removed not existing template fetch from the code
  • properly cached the templates
  • users are automatically made buddies (admincp option)
  • updated default invitation description option
  • moved permissions from global_start hook to the actual invitation manager where it belongs
  • added an option for displaying an invitation block template in usercp
  • full auto template (supports 'Icons for UserCP' mod as well)
  • not accepted invitations expire after X days and inviting user is credited back (admincp option)
  • possibility to invite multiple friends

OPEN:
  • additional invitations will be given or removed based on posts
  • additional invitations will be given or removed based on reputation
  • different user groups can have different default invitations (can be unlimited)
  • changes to the number of default invitations for groups will be applied to the user as well
  • X number of invitations are lost if a user in inactive for Y number of days.

FUTURE UPDATE:
  • invitation reminders
  • invitation tree
  • contact grabber
  • Looking into the mentioned anti-spam system compliance. If someone has link for me where it is described I'll check it out.

Any other wishes?

I'll post an update here once I completed all the open items... Guess it will be by the end of next week. My time's limited this week.

Alfa1 04-07-2008 09:43 PM

I have version 2.0.2b installed on vb 3.7B3. (My test forum)
I have sent out several invitations to try this out. So far one worked as designed and one did not. One person got the invitation, followed the link and signed up. But the invitation is still listed as 'Not Confirmed Yet'.
The forum account of the person lists me as the referrer though.

Does anyone have an idea where the problem lies?

Scythe42 04-07-2008 10:15 PM

Quote:

Originally Posted by Alfa1 (Post 1485522)
Does anyone have an idea where the problem lies?

What settings do you use on your forum? Invite only? Invite and normal registration? Email Verfication needed? Any errors in your php.log? Any special cookie related settings on your end or the users' browser? How does the entry in the invitation table for that invitation code looks like? Where any signups successful or do they all fail in regards to the invitation code?

If you provide me with some more details I can try to reproduce it and find a solution for the scenario.

The code that updates the table is pretty simple. It's called on "register_addmember_complete". It checks for the invitationcode cookie that was set when the signup process started. If present it continues and updates the table for that code. If it is not present an error message is shown when normal registration is disabled. If normal registration is still enabled, the user is passed through like a normal registration.

nyqnzguju 04-07-2008 10:55 PM

Dont see option In UserCp... Left Side...

Like Ur attachment

https://vborg.vbsupport.ru/attachmen...4&d=1207409366

theparentpack 04-08-2008 08:10 AM

Love it! Installed, and voted for MOTM!!!

theparentpack 04-08-2008 09:24 AM

I installed this on two of my forums. Now one of them is lacking the link in admincp/vb options/invitation system to change the outgoing message. One of my forums has a link for me to edit the ougoing message, and the other one does not. Any ideas?

Lee G 04-08-2008 12:42 PM

Where do I find the words "Invite Friends" used in the nav bar, so I can change them from white to black in my nav bar

Thanks for any help
Lee G

Alex_Volovenko 04-08-2008 12:49 PM

Plugin Parse Templates
Add This Code
PHP Code:

if ($vbulletin->options['invite_automatic_link_creation'] == 0)  
{  
    
$template_hook['usercp_navbar_bottom'] .= '<!--  invite_usercp_link -->
    <tr><td class="alt2" nowrap="nowrap"> 
   <a class="smallfont" href="profile.php?'
.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td></tr>
    <!--  END invite_usercp_link -->'
;  


Change This Code setting
PHP Code:

<setting varname="invite_automatic_link_creation" displayorder="50">
                <
datatype>number</datatype>
                <
optioncode>radio:piped
0
|Create Link in User CP
1
|Create Link in Navbar
2
|Create Link in Quick Links</optioncode>
                <
defaultvalue>1</defaultvalue>
            </
setting


dancue 04-08-2008 02:38 PM

Quote:

Originally Posted by Scythe42 (Post 1485513)
Just an development update:

DONE:
  • fixed table prefix issues
  • if an invited user is deleted the row gets removed from the invitation table
  • if an invited user is deleted the inviting user gets an invitation back
  • removed not existing template fetch from the code
  • properly cached the templates
  • users are automatically made buddies (admincp option)
  • updated default invitation description option
  • moved permissions from global_start hook to the actual invitation manager where it belongs
  • added an option for displaying an invitation block template in usercp
  • full auto template (supports 'Icons for UserCP' mod as well)
  • not accepted invitations expire after X days and inviting user is credited back (admincp option)
  • possibility to invite multiple friends

OPEN:
  • additional invitations will be given or removed based on posts
  • additional invitations will be given or removed based on reputation
  • different user groups can have different default invitations (can be unlimited)
  • changes to the number of default invitations for groups will be applied to the user as well
  • X number of invitations are lost if a user in inactive for Y number of days.

FUTURE UPDATE:
  • invitation reminders
  • invitation tree
  • contact grabber
  • Looking into the mentioned anti-spam system compliance. If someone has link for me where it is described I'll check it out.

Any other wishes?

I'll post an update here once I completed all the open items... Guess it will be by the end of next week. My time's limited this week.

You guys are great! Thanks for listening!

Can't wait for the future updates!

Any thought on whether or not you are going to add the ability for the user to attach a note to the e-mail? Also the increase in x reputation points per successful registration?

Scythe42 04-08-2008 10:33 PM

Quote:

Originally Posted by dancue (Post 1485982)
Any thought on whether or not you are going to add the ability for the user to attach a note to the e-mail? Also the increase in x reputation points per successful registration?

The note is already included. You don't see the actual message anymore. It was moved to the phrases for allowing easy localization. Instead there is a textarea for adding custom notes now.

The add X reputation for inviting a new user is no problem. Ist a simple query. But I think if you rebuild your reputation it will be lost because it's not associated with a post. Need to check if there is a hook I could use.

PS: first test of contact grabbing with gmail works. But I'm not sure how to display them without making everything look ugly with a ton of checkboxes. I'm open for layout suggestions.

whitlecj 04-08-2008 10:40 PM

I installed the mod but the email was not sent to the person I invited. I actually sent it to another one of my email accounts and the email never came. Any ideas of what could cause this?

Scythe42 04-08-2008 10:43 PM

Quote:

Originally Posted by theparentpack (Post 1485791)
I installed this on two of my forums. Now one of them is lacking the link in admincp/vb options/invitation system to change the outgoing message. One of my forums has a link for me to edit the ougoing message, and the other one does not. Any ideas?

Seems to be an issue with the phrases for admincp. Did you do some customization? If so, you might still have a customized version displayed in admincp. Uninstalling and reinstalling the plugin might help. But export the invitation table because on deinstallation it gets removed.

Anyway, the phrases in question are for the email are "invitation_email_body" and "invitation_email_note". You can modify them with the phrase editor. The links in admincp are just there for convenience.

whitlecj 04-09-2008 12:00 AM

I am using vbulletin 3.7 RC1 and after uninstalling and reinstalling the mod, it still does not send out the emails. I have tested that email functionality is working and that it was not sent to spam. Any idea as to what could be causing the problem?

whitlecj 04-09-2008 12:08 AM

I think I got it. I have 2 email address that I use personally. 1 is assigned to my vbulletin account and the other must be used somewhere within vbulletin or something, not sure. I basically signed up for anther gmail account and tested to that account and it worked perfectly. Not sure where the problem was with my 2nd email address but it worked like a charm to my newly created account. Sorry for the confusion and thanks for a great mod.

Theoldwiz 04-09-2008 02:13 AM

I installed but am getting a no permission message. I am sure my usergroup is listed in the settings.

lachofrias 04-09-2008 12:16 PM

Great plug in!

Is there a way to send more than 10 invitations?
I am starting the forum and i have a long list of invitations

thnx in advance!

lachof

Namaless 04-09-2008 03:11 PM

Hi, I found this fetch_template('usercp_invitation_email') in "Invitation User CP" but not found into hack..

Please fix this.

Regards.

Scythe42 04-09-2008 03:12 PM

Already fixed in the current development version.

Rideharder 04-09-2008 05:49 PM

> 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

How would I know when a user hit 0 invites ?

Can I give all users like 50 invites with out going to each users cp?

And one more thing please what is.
Display the invitation code as a link to the registration option in usercp?

logicuk 04-09-2008 05:50 PM

what about the ability to run monthly invite contests? would be a great addition!

Rideharder 04-09-2008 05:57 PM

Quote:

Originally Posted by Theoldwiz (Post 1486397)
I installed but am getting a no permission message. I am sure my usergroup is listed in the settings.

You need to go to Manage Products click Invitation System 2.0.2b Allow users send invitation to everybody and unstall ..Then restall the product-invitation_3.6 in the Manage Products ..

Rideharder 04-09-2008 05:59 PM

Quote:

Originally Posted by logicuk (Post 1486876)
what about the ability to run monthly invite contests? would be a great addition!

That is what I was looking for!!!
http://www.speedaholic.net/

whitlecj 04-09-2008 06:56 PM

I agree. The ability run a monthly invite contest would be great. Of course, I am assuming once they make so you can give unlimited invites to your users, you would be able to set the contest up on your own and just verify who got the most people to sign up on the backend. Right?

Alfa1 04-10-2008 12:52 AM

Quote:

Originally Posted by logicuk (Post 1486876)
what about the ability to run monthly invite contests? would be a great addition!

Please be careful with that idea. Invite contests can cause a lot of trouble with unwanted spam and angry admins from other sites.

dancue 04-10-2008 09:44 PM

Quote:

Originally Posted by Alfa1 (Post 1487122)
Please be careful with that idea. Invite contests can cause a lot of trouble with unwanted spam and angry admins from other sites.

I agree, but the option should be available. It's a great way to add registrations.

Alfa1 04-11-2008 12:04 AM

Quote:

Originally Posted by Scythe42 (Post 1485544)
What settings do you use on your forum? Invite only? Invite and normal registration? Email Verfication needed? Any errors in your php.log? Any special cookie related settings on your end or the users' browser? How does the entry in the invitation table for that invitation code looks like? Where any signups successful or do they all fail in regards to the invitation code?

If you provide me with some more details I can try to reproduce it and find a solution for the scenario.

The code that updates the table is pretty simple. It's called on "register_addmember_complete". It checks for the invitationcode cookie that was set when the signup process started. If present it continues and updates the table for that code. If it is not present an error message is shown when normal registration is disabled. If normal registration is still enabled, the user is passed through like a normal registration.

My settings:
Invite and normal registration
I cant look back more than a day in my apache error log
No special cookie settings on the site. I am awaiting more info about the members cookie settings.
The invitation table looks like this:
PHP Code:

b0a3283e9ebd7a14732fbfdc44036731      example@example.com      04-06-2008      Not Confirmed Yet      Delete 

Other signups where successful.

Edit: the invited user found a cookie named "bb1referrerid."

EDIT2: I just received this database error:
PHP Code:

Database error in vBulletin 3.7.0 Beta 3:

Invalid SQL:
SELECT user.userid AS user_iduser.email AS user_emailinvitation.email AS inv_emailinvitation.acceptedby as inv_id
                                         FROM vbprefix_user
                                         LEFT JOIN vbprefix_invitation
                                         ON user
.userid invitation.acceptedby OR user.userid invitation.email
                                        WHERE user
.email 'example@example.com'
                                        
OR invitation.email 'example@example.com';

MySQL Error   Unknown column 'user.userid' in 'field list'
Error Number  1054
Date          
FridayApril 11th 2008 04:00:44 AM
Script        
http://www.mysite.com/forum/profile.php
Referrer      http://www.mysite.com/forum/profile.php?do=invitation
IP Address    xxxxx
Username      
xxxx
Classname     
vB_Database
MySQL Version 
5.0.45 


ram94401 04-11-2008 04:30 AM

Good stuff. Some of users faced the strange problem. They send the invitation referral link from FAQ section. This link has their userid. But, when their friends signup, they remove the username in the referrer field of the registration form!

Strange, isn't it?! I don't know what kind of friends are they! Anyway, our users want the referrer field to be read-only if the referrer name is passed in the URL. Till now, I haven't used this hack. Users copy the invite link from FAQ area and send it thru emails. If your hack has some kind of configuration by which you make the referrer field read-only, that would be nice.

Losttrucker 04-12-2008 04:02 PM

strange...its tells me the invitation has been sent, but it never gets received. I love the idea of this mod, but cant get it to work right

Scythe42 04-12-2008 10:13 PM

Quote:

Originally Posted by Alfa1 (Post 1487911)
Other signups where successful.

Must be something on the users end with the Cookie handling if it only affects on user. I couldn't reproduce yet. Anyway, I'll try to switch to the session tables for linking a user during the registration process to the invitation code.

Quote:

Originally Posted by Alfa1 (Post 1487911)
EDIT2: I just received this database error:

The fix for using table prefixes was posted here.

Scythe42 04-12-2008 10:14 PM

Quote:

Originally Posted by Losttrucker (Post 1489138)
strange...its tells me the invitation has been sent, but it never gets received. I love the idea of this mod, but cant get it to work right

Must be something with your mail settings. This mod uses a simple call to vbmail. Read through this thread, another user hat a similar issue and fixed it by correcting his settings.

Scythe42 04-12-2008 10:34 PM

Quote:

Originally Posted by ram94401 (Post 1488039)
If your hack has some kind of configuration by which you make the referrer field read-only, that would be nice.

This can be acomplished by a simple template change by adding readonly to the input type or for XHTML compliance readonly="readonly"

Just look for the input tag in your register template (search for id="referrerfield")

On my site I have completly removed the referrid input field and instead using an hidden input tag to pass on the referrer. I'll look into including this as an auto template change for one of the next versions.

Dilldogs 04-12-2008 11:00 PM

I like this invite system, Works great. few miss spelled words, but it is an easy fix for that. All in All it is working fine and I hope you continue putting out great product.

Suggestion:

1. Maybe adding MSN, yahoo and aol Contact Grabber.

2. Maybe you should take over visionscripts. they had great product but he had to let it all go and now he is not planning to upgrade his product.

Scythe42 04-13-2008 12:03 AM

Quote:

Originally Posted by Dilldogs (Post 1489386)
Maybe adding MSN, yahoo and aol Contact Grabber.

Already on the to-do list and will be included in one of the next versions.

But before that I need to code some stuff so that new entries vom vbBlog show up under New Posts. That's currently more important for my site.

Hasann 04-13-2008 03:26 AM

https://vborg.vbsupport.ru/

just a screen it shows to you how it goes :S

Deepdog009 04-13-2008 02:28 PM

Beauts Hasann

This one is steam rolling down the lanes...

I took a peek at your code and it's interesting... Im taking notes...

Keep the ball rolling...;)

dancue 04-13-2008 03:24 PM

Quote:

Originally Posted by Hasann (Post 1489491)
http://img338.imageshack.us/img338/3170/finalsa8.jpg

just a screen it shows to you how it goes :S

Nice, I see you've added multiple invitees, and the ability to attach a note.

It's looking beautiful so far. You guys really do listen to our suggestions. Thank you!

dancue 04-13-2008 03:29 PM

When should we expect the next update?

No rush, just curious. And will the next one have the contact grabbers?

whitlecj 04-13-2008 09:32 PM

With this mod currently, can you tell who the referrer was when a new member signs up from an invitation? Thanks.

AngelBlue 04-13-2008 09:49 PM

A tip for your mod...

If you replace :
Code:

if ($vbulletin->options['invitation_automatic_link_creation'] == 1) {
      $template_hook['navbar_buttons_left'] .= '<td class="vbmenu_control"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td>';
}

if ($vbulletin->options['invitation_automatic_link_creation'] == 2) {
      $template_hook['navbar_quick_links_menu_pos1'] .= '<tr><td class="vbmenu_option"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td></tr>';

}

with :

Code:

if ($vbulletin->options['invitation_automatic_link_creation'] == 1) {
    if ($canuseinvitation) {
      $template_hook['navbar_buttons_left'] .= '<td class="vbmenu_control"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td>';
    }
}

if ($vbulletin->options['invitation_automatic_link_creation'] == 2) {
    if ($canuseinvitation) {
      $template_hook['navbar_quick_links_menu_pos1'] .= '<tr><td class="vbmenu_option"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td></tr>';
    }
}

In the mod file, then the invitation link in the navbar will only show up to people who can actually use it. This avoids frustrating users with links they can't use.

Boofo 04-13-2008 11:31 PM

Actually this will work better, I think:

Code:

if ($vbulletin->options['invitation_automatic_link_creation'] == 1 AND $canuseinvitation) {
    $template_hook['navbar_buttons_left'] .= '<td class="vbmenu_control"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td>';
}
 
if ($vbulletin->options['invitation_automatic_link_creation'] == 2 AND $canuseinvitation) {
    $template_hook['navbar_quick_links_menu_pos1'] .= '<tr><td class="vbmenu_option"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td></tr>';
}



All times are GMT. The time now is 06:31 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.02229 seconds
  • Memory Usage 1,880KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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