Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
link for each user for inviting members Details »»
link for each user for inviting members
Version: 1.00, by all-the-vb all-the-vb is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-19-2004 Last Update: Never Installs: 18
 
No support by the author.

hello everyone

hack name: link for each user for inviting members

by : all-the-vb

time to install: 7 to 12 min

How the hack works:
We remember how I carried out the programming of the invention in vb2.
https://vborg.vbsupport.ru/showthrea...threadid=57656

But in vb3 this character is automatically present but in different way, as when the member is coming for register ,there is a little box for the name of the member whose invites him to join ,
After installing this hack, there will be there a link for every member to invite the members to register, and when the visitor follow the link which received it from the member to register, the little box that ask him about the name of member invited will not appear .
but if the visitor register in the usual way the box will appear.
and off course there will be the numbers of the members that follow the links + the numbers of the members that register with typing the name of member invited
and more than that,
so the number of new members that the member invited them what ever the way of their rigesteration.
and more than that, make a form in the main page to let the member invite the members by his e-mail, and will present the link of the member invited
in main e-mail and in reply
and show the number of referrals in a postbit
and each user can see he link in usercp.

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++
Queries >> 0
Files to Modify >> 3
Templates Added >> 1
Templates to Modify >> 5
add a phrases >> 4
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++

Show Your Support

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

Comments
  #12  
Old 07-20-2004, 10:30 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hhhm I keep getting this db error

Quote:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT
COUNT(*) AS count FROM user WHERE referrerid =

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

mysql error number: 1064

Date: Tuesday 20th of July 2004 04:05:05 PM
Script: http://www.synergyforums.com/forum/showthread.php?t=307
Referer:
Username: Unregistered
Reply With Quote
  #13  
Old 07-20-2004, 10:37 PM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pyrix
That's the link you would give them. So you might send out an e-mail with that link in it to a few friends, and when they sign up you'd get a referral point.

Ollie
SnowBot

ya that's true
thank you Pyrix & nexialys
for help me
Reply With Quote
  #14  
Old 07-20-2004, 10:39 PM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnowBot
hhhm I keep getting this db error
try this:

open File: includes/functions_showthread.php

find:
PHP Code:
$refcount $DB_site->query_first("SELECT
COUNT(*) AS count FROM " 
TABLE_PREFIX "user WHERE referrerid =
 
$post[userid]");
$referrals vb_number_format($refcount['count']); 
Replace it with:
PHP Code:
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " 
TABLE_PREFIX "user AS user  WHERE user.referrerid =
 
$post[userid]");
$referrals = @vb_number_format($refcount['count']); 
Reply With Quote
  #15  
Old 07-21-2004, 02:18 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still getting some DB errors

Quote:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT
COUNT(*) AS count FROM user AS user WHERE user.referrerid =

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

mysql error number: 1064

Date: Wednesday 21st of July 2004 09:39:20 AM
Script: http://www.synergy-4ums.com/forum/showthread.php?t=562
Referer:
Username: Unregistered
Quote:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT
COUNT(*) AS count FROM user AS user WHERE user.referrerid =

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

mysql error number: 1064

Date: Tuesday 20th of July 2004 10:55:17 PM
Script: http://www.synergyforums.com/forum/showthread.php?t=1240
Referer: http://www.synergyforums.com/forum/forumdisplay.php?s=&daysprune=&f=88
Username: crayolacrayons
Any help would be great
Reply With Quote
  #16  
Old 07-21-2004, 03:25 PM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnowBot
Still getting some DB errors
Any help would be great



try this:

open File: includes/functions_showthread.php

find:
PHP Code:
 if ($vboptions['usereferrer'])
{
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " 
TABLE_PREFIX "user AS user  WHERE user.referrerid =
 
$post[userid]");
$referrals = @vb_number_format($refcount['count']);

Replace it with:
PHP Code:
if($bbuserinfo['userid']!=AND $post['userid']!=0){
 if (
$vboptions['usereferrer'])
{
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " 
TABLE_PREFIX "user AS user  WHERE user.referrerid =
 
$post[userid]");
$referrals = @vb_number_format($refcount['count']);
}

Reply With Quote
  #17  
Old 07-21-2004, 03:43 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK trying that now THANKS. Will report back as soon as i know
Reply With Quote
  #18  
Old 07-22-2004, 07:21 AM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm im sorry i forgot one edit
see now
https://vborg.vbsupport.ru/showthrea...575#post535575
Reply With Quote
  #19  
Old 07-22-2004, 12:32 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by all-the-vb
hmmm im sorry i forgot one edit
see now
https://vborg.vbsupport.ru/showthrea...575#post535575
Sorry about this but i still have an error

PHP Code:
 Database error in vBulletin 3.0.3:

Invalid SQLSELECT 
COUNT
(*) AS count FROM user AS user  WHERE user.referrerid 

mysql errorYou have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

mysql error number
1064

Date
Thursday 22nd of July 2004 07:53:18 AM
Script
http://www.synergyforums.com/forum/showthread.php?t=1243&highlight=reloaded
Refererhttp://www.synergyforums.com/forum/search.php?searchid=6700
Usernamekritters 
Reply With Quote
  #20  
Old 07-22-2004, 02:23 PM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

find:
PHP Code:
if($bbuserinfo['userid']!=AND $post['userid']!=0){
 if (
$vboptions['usereferrer'])
{
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " 
TABLE_PREFIX "user AS user  WHERE user.referrerid =
 
$post[userid]");
$referrals = @vb_number_format($refcount['count']);
}

Replace it with:
PHP Code:
if($post['userid']!=0){
 if (
$vboptions['usereferrer'])
{
$refcount = @$DB_site->query_first("SELECT
COUNT(*) AS count FROM " 
TABLE_PREFIX "user AS user  WHERE user.referrerid = '$post[userid]' ");
$referrals = @vb_number_format($refcount['count']);
}

Reply With Quote
  #21  
Old 07-22-2004, 10:07 PM
Elmer's Avatar
Elmer Elmer is offline
 
Join Date: Aug 2002
Location: Washington DC
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I though that he link in the form was already there but nice hack instead
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 05:07 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.06601 seconds
  • Memory Usage 2,351KB
  • Queries Executed 27 (?)
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
  • (7)bbcode_php
  • (7)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
  • (3)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete