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?

Boofo 06-16-2010 08:40 PM

Add the code anywhere to the additional.css template.

vidan 06-16-2010 09:00 PM

how to add the referral in block?
i mean what's the include file? if i want to show it everywhere?

Footman 06-16-2010 09:07 PM

Downloaded, Installed, rated... nice little touch with this. It's so wonder why vB doesn't put things like this in as default. Makes no sense, but I'm happy you wrote it in.

Thanks man.

ps.
I'm assuming this automatically adds the referrer in the correct entry box in the registration process. I mention this since I also give points for referrals so this makes it easier to accomplish this... and hopefully get my members to refer more people.

thanx again

Boofo 06-16-2010 09:12 PM

It will automatically add the referral name if they use the referred id link when they sign on to register.

And, you're very welcome. ;)

Footman 06-16-2010 09:14 PM

Excellent Boofo - thanks :)

Boofo 06-16-2010 09:15 PM

Quote:

Originally Posted by vidan (Post 2054687)
how to add the referral in block?
i mean what's the include file? if i want to show it everywhere?

I'm not sure I understand what you are asking. You want it to show on every page? If so, why?

weddingforum 06-17-2010 11:23 AM

Hi there,

Do you offer a installation service?

Please PM if you do.

Many Thanks

weddingforum 06-17-2010 02:48 PM

Great guy, very helpful would recommend to anyone. Helped me out alot more than every hoped for.

Thanks

red.death 06-22-2010 01:30 PM

I am having problems with this, the referral ID is not working for my members, no name is showing up in the registration when people refer.

Boofo 06-22-2010 02:30 PM

Quote:

Originally Posted by red.death (Post 2057449)
I am having problems with this, the referral ID is not working for my members, no name is showing up in the registration when people refer.

Fixed! Thank you for pointing it out. ;)

You might want to click the install button in case there are any more updates in the future.

red.death 06-22-2010 04:18 PM

Thanks Boofo!

Boofo 06-22-2010 04:22 PM

Quote:

Originally Posted by red.death (Post 2057547)
Thanks Boofo!

You're very welcome. ;)

red.death 06-22-2010 04:23 PM

Boofo, its still not working as when a different referral is clicked, one of a different user, the referrer box on registration appears as my name user 1 even if referred by user 45. Its also happening on your site.

Boofo 06-22-2010 04:47 PM

It is working fine on my site. I used the id 2 from another user and it input that person's name in the referrer box on a new registration. If you click your own link, yes it will show up as you. Try using another referred id on the end of it after you log out and you will see that person's name in the referrer box on a new registration. if you still are having problems figuring it out, PM me and we will go to IM and get it taken care of. ;)

red.death 06-22-2010 04:50 PM

Hmm..Still getting that problem..It could just be my cookies.

Boofo 06-22-2010 04:54 PM

Yes, I was just going to say that as I tested it and found that if you try to do more than one referrer id in the same session, it will keep the first one. Delete your cookies and try it again and it will take the new referrer id. That is how it is supposed to work in vb.

red.death 06-22-2010 04:58 PM

Yep Boofo, i think that was the problem :D Thanks! It works great now.

sergioloporto 06-23-2010 09:26 PM

Hi...

how can I change the message?

Boofo 06-23-2010 09:40 PM

Sure, just edit the template to whatever you want it to say. Make sure you leave the links as is though. When you're done editing it, send it to me in a PM and if it is better than what I already have there, I will update the hack with it.

sergioloporto 06-23-2010 09:46 PM

Thanks for your help ... but I would like it to translate the message in another language, since I am not using English in my VB :)

If I want the text to be different, should I update the XML and re-instal it? Or there is some other easier way?

Boofo 06-23-2010 09:52 PM

I didn't phrase the message but I can do that easily. If you want, send me in English what you want it to say and I will add it as a phrase to the hack, or you can do the template, whichever is easier for you.

Wajdan 06-29-2010 03:43 PM

Working perfectly here, but I'm not seeing referred members in profile.

Boofo 06-29-2010 05:06 PM

Look under the About Me tab in the profile, at the bottom (as it shows in the pic in the first post).

vidan 06-30-2010 10:22 PM

how to show referral code everywhere? not just in profile/usercp

Boofo 07-01-2010 07:25 AM

Are you talking about the referrfal link itself or the referral count?

Xavus 07-04-2010 01:28 AM

How do you change the referral message that members see?

Boofo 07-04-2010 01:46 AM

You would edit the phrases for the product.

Xavus 07-04-2010 01:58 AM

Quote:

Originally Posted by Boofo (Post 2064120)
You would edit the phrases for the product.

Is it possible to do this through the admin CP, or do I have to edit and reupload the product itself?

Boofo 07-04-2010 02:03 AM

Find the phrases in the admin cp for the product and edit those.

vidan 07-04-2010 02:13 AM

Quote:

Originally Posted by Boofo (Post 2062601)
Are you talking about the referrfal link itself or the referral count?

referral count, so i can show referral count in everywhere

example: currently you have invited __ friends to this forum


All times are GMT. The time now is 06:02 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.01629 seconds
  • Memory Usage 1,818KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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