vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - User CP Referral ID and Referrer/Referrals in Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243455)

Boofo 05-27-2010 10:00 PM

User CP Referral ID and Referrer/Referrals in Profile for vB 4
 
1 Attachment(s)
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';
}


wolfe 05-28-2010 04:14 PM

can you make it so when you click on the referals amount it lists all the members who the person refered.

Boofo 05-28-2010 04:24 PM

I had thought about that at one time and decided that is would entail another query, which I'm sure would be sever intensive if you had enough members and referrals on the site, and decided against it. It would also take a template edit or replace and I kind of wanted to stay away from that with vb 4 since they have a lot of new hooks.

Crow 06-02-2010 06:11 PM

Few issues I'm having...

1.) On the setting page its showing (15) for referrals
2.) on the profile page its showing (13) referrals
3.) on the profile page it doesn't list the members I've referred.

Using vB 4.0.3

Boofo 06-02-2010 06:19 PM

Quote:

Originally Posted by Crow (Post 2047213)
Few issues I'm having...

1.) On the setting page its showing (15) for referrals
2.) on the profile page its showing (13) referrals
3.) on the profile page it doesn't list the members I've referred.

Using vB 4.0.3

Count fixed and product updated.

As far as listing the members you referred, this product does not do that. It only list the Referrer for each member in their profile.

voidmind 06-03-2010 12:25 AM

I can't my referral link box like you have in this picture:
https://vborg.vbsupport.ru/attachmen...1&d=1275037513

I see my number of referrals under my personal information but thats til

Boofo 06-08-2010 04:20 PM

Quote:

Originally Posted by voidmind (Post 2047380)
I can't my referral link box like you have in this picture:
https://vborg.vbsupport.ru/attachmen...1&d=1275037513

I see my number of referrals under my personal information but thats til

Did you add the code to the additional.css like the instructions tell you to do?

Clicking install might get you an answer faster next time.

kall 06-08-2010 06:27 PM

Not really much different to https://vborg.vbsupport.ru/showthread.php?t=231288 is it?

Boofo 06-08-2010 07:57 PM

Yes it is very different as it is an update to the old version I did a long time back. I kept the same style as I did in the vb 3 version. Plus, it adds the Referrer in the Profile. Ace, you know very well I did this for version 3 way before the one in the link. ;)

fuffalo 06-16-2010 05:06 PM

can't seem to get this where exactly is this supposed to go in the css?


All times are GMT. The time now is 06:11 AM.

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.01284 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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