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
User CP Referral ID and Referrer/Referrals in Profile for vB 4 Details »»
User CP Referral ID and Referrer/Referrals in Profile for vB 4
Version: 1.0.8, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 05-27-2010 Last Update: 08-15-2011 Installs: 263
Uses Plugins Auto-Templates
 
No support by the author.

User CP Referral ID and Referrer in Profile for vB 4
Version 1.0.8
(By Boofo)

What does this product do?
This product will add a content box at the top of the User CP displaying a customizable referral "Message" and the member's "Referral Link" along with their referral count. This will also show who referred a user in their profile in the About Me tab, under Referrals, at the bottom. It will only show in the About Me tab if the user has been referred by someone. A Referred Members List has also been added for each member so you can see who a Member has referred. The referral count in the User CP will link directly to the Referred members List.

NOTE: If you are currently using Referrer in Profile for vB 4, you will need to uninstall that first, as this does the same thing but with the User CP Referral ID and Referred Members List added.

Version Information:
Version 1.0.0 --Initial release for vB 4
Version 1.0.1 --Usergroups 3 and 4 are no longer represented in the referral count in the User CP.
Version 1.0.2 --Added Referred Members List for each member and a link to the list from the User CP referral count.
Version 1.0.3 --Fixed the Referral Link to reflect the 'Script Name for Forum Home Page' setting in vB 4.
Version 1.0.4 --Product is now completely phrased.
Version 1.0.5 --Referred Members List is now alphabetically sorted and Usergroups 3 and 4 are no longer represented in the listing.
Version 1.0.6 --Added the ability to collapse the box.
Version 1.0.7 --Moved Referrer below Join Date. The Referrals will no longer show if the user has no referrals. This is done via an automatic template edit.
Version 1.0.8 --Added User CP Referral ID Box Position setting. This will allow you to choose the location where you want the Referral ID box to show in the User CP.

NOTE: The "manual_template_edit_code.txt" is included in case the automatic template edit doesn't work for some custom skins.

Installation overview:
--------------------------
1 Product XML (5 Plugins, 15 phrases, 2 templates and 1 setting)

Installation Instructions:
--------------------------
1. Add the code from the included "additional.css_template_code.txt" file to the additional.css template.

2. Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_usercp_referral_id.xml file on your computer

3. Go to your Admin CP -> vBulletin Options -> User CP Referral ID and Referrer in Profile and set the following option:
--User CP Referral ID Box Position: Choose the location where you want the Referral ID box to show in the User CP. (Default is "Top of User CP")
---------------------------------------------------

Done!
Enjoy!


Code:
if ($mark_as_installed != 'clicked')
{
	$you_get = 'squat';
}
else
{
	$you_get = 'support';
}

Download Now

File Type: zip User_CP_Referral_ID_and_Referrer_in_Profile_vb4.zip (5.4 KB, 829 views)

Screenshots

File Type: png profile_referrer.png (4.4 KB, 0 views)
File Type: jpg profile_referred_members.jpg (17.2 KB, 0 views)
File Type: png usercp_referral_collaspe.png (7.6 KB, 0 views)
File Type: png usercp_referral_id.png (26.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
caoducanh9x, Life Revived

Comments
  #52  
Old 08-23-2010, 09:19 AM
gsmlover4u's Avatar
gsmlover4u gsmlover4u is offline
 
Join Date: Jan 2007
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is no option to save additional.css template
Code:
#referrallink {
border: {vb:stylevar usercp_nav_blockbody_border};
padding: 0px 0px 6px 6px;
}
#referrallink legend {
font: {vb:stylevar navbar_font};
color: {vb:stylevar link_color};
padding: 3px;
margin-left: 4px
}
Reply With Quote
  #53  
Old 08-23-2010, 10:03 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by silent angel View Post
thanks it is installed now but i m confused in some things it is not showing reffrer no on my profile..

where i find this option ? additional.css i did not find it plz do guide me step by step.
and
what about this code ? what to do with it .. ?

Code:
if ($mark_as_installed != 'clicked')
{
	$you_get = 'squat';
}
else
{
	$you_get = 'support';
}
The additional.css is a template. You need to edit that in the admin cp. The referrer info will be under the About Me tab (at the bottom) in the user's profile.

You don't need to do anything with the $mark_as_installed code.
Reply With Quote
  #54  
Old 08-24-2010, 12:52 AM
sas forum sas forum is offline
 
Join Date: Jan 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running VB 4.0.6 PL! and I clicked "installed" for this mod.

I imported the product and added the additional CSS, but nothing shows in the User's CP. This is a pretty straight-forward install, too easy, so I thought maybe something got boogered up when In uploaded the file.

I uninstalled and tried again, still, nothing shows. Any ideas?

Thanks for this. I have no idea why VB seems to leave stuff like this out of their design.
Reply With Quote
  #55  
Old 08-24-2010, 10:39 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no 4.0.6 PL version.

Also, are you using a custom skin?
Reply With Quote
  #56  
Old 08-24-2010, 08:17 PM
sas forum sas forum is offline
 
Join Date: Jan 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
There is no 4.0.6 PL version.

Also, are you using a custom skin?
sorry bro, I boogered it up, I guess I was tired or something when I posted that.

I am running 4.0.6.

I got the PL 1 from the little text at the top of the admin area that says:

"Latest version available: 4.0.6 Patch Level 1" and links to the vbulletin members area for the download.

I have not done the patch yet. Too lazy I guess, or maybe i am sick of updating VB and just need a few days off from it

I am running a modifieid version of the default template that I created using that new template designed in VB 4. Basically, the only stuff that was changed was the colors.
Reply With Quote
  #57  
Old 08-24-2010, 08:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sas forum View Post
sorry bro, I boogered it up, I guess I was tired or something when I posted that.

I am running 4.0.6.

I got the PL 1 from the little text at the top of the admin area that says:

"Latest version available: 4.0.6 Patch Level 1" and links to the vbulletin members area for the download.

I have not done the patch yet. Too lazy I guess, or maybe i am sick of updating VB and just need a few days off from it

I am running a modifieid version of the default template that I created using that new template designed in VB 4. Basically, the only stuff that was changed was the colors.
Ah, ok, you're running just the forums then. The suite doesn't have that upgrade.

You don't get the referral link box at the top of the page when you click on Settings in the header? If not, then you might not have the template hook this uses in your new template. Also, the referral names will be under the About Me tab in the profile.
Reply With Quote
  #58  
Old 08-24-2010, 09:26 PM
sas forum sas forum is offline
 
Join Date: Jan 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't really know. I just clicked on the link in the admin cpanel and it lets you move a dot around on some colors to get the colors you need, then it allows you to save it.

right now I have been telling people how to make their own referral link by finding out their member number and adding it to the link like:

forum/index.php?referrerid=(insert number here)

I just figured this would make it so much easier for them

Thanks man, I will try it on the default template that came with it and see if it works.
Reply With Quote
  #59  
Old 08-24-2010, 09:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, unless you've changed it, this:

forum/index.php?referrerid=(insert number here)

should be this:

forum/forum.php?referrerid=(insert number here)

Let me know if it works with the default template and if you want, I can take a look at it and see what we need to fix it for you. PM the login details for the admin cp if you want me to look at it for you.
Reply With Quote
  #60  
Old 08-24-2010, 10:40 PM
sas forum sas forum is offline
 
Join Date: Jan 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Actually, unless you've changed it, this:

forum/index.php?referrerid=(insert number here)

should be this:

forum/forum.php?referrerid=(insert number here)

Let me know if it works with the default template and if you want, I can take a look at it and see what we need to fix it for you. PM the login details for the admin cp if you want me to look at it for you.
Don't know, they both worked. I even tried them with different member numbers at the end and they both inputted the data into the referred by section in the registration form. I will just keep trying to get this mod to work, because it would be a lot easier and require a lot less work on the member's part. Let me check the default template, see what it does and get back with ya. Thanks.
Reply With Quote
  #61  
Old 08-24-2010, 10:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sas forum View Post
Don't know, they both worked. I even tried them with different member numbers at the end and they both inputted the data into the referred by section in the registration form. I will just keep trying to get this mod to work, because it would be a lot easier and require a lot less work on the member's part. Let me check the default template, see what it does and get back with ya. Thanks.
If you are just running the forums, it might work with index.php. I'm not sure how that is set up, to be honest.

Let me know if it works with the default template and we can go from there. Since I run the default skin, that is what it was written on.
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:50 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.05069 seconds
  • Memory Usage 2,358KB
  • 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
  • (5)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)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
  • (5)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
  • 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_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