PDA

View Full Version : Miscellaneous Hacks - User CP Referral ID and Referrer in Profile for vB3.7


Boofo
03-13-2008, 10:00 PM
User CP Referral ID and Referrer in Profile for vB3.7
Version 1.0.3
(By Boofo)

What does this product do?
This product will add a content box in the User CP displaying a customizable referral "Message" and the member's "Referral Link" along with their referral count. It will also show the referrer in the profile.

Version Information:
Version 1.0.1 --Initial release for vB3.7
Version 1.0.2 --Using template hook instead of str_replace. Added profile referrals location to phrase. Cleaned up code.
Version 1.0.3 --Added Referrer name to member's profile (in General Information under the Statistics tab).

Installation overview:
Products to install: (1)
Templates to edit: (1)
Additional CSS to install: (1) - Optional

Installation Instructions:
1. In the memberinfo_block_statistics template

Find:
---------------------------

<if condition="$vboptions['usereferrer']"><li><span class="shade">$vbphrase[referrals]:</span> $prepared[referrals]</li></if>

---------------------------
BELOW it add:
---------------------------

<if condition="$show['referrer']"><li><span class="shade">$vbphrase[referrer]: </span><a href="member.php?u=$prepared[referralsuserid]">$prepared[referralsname]</a></li></if>

---------------------------
2. Go to the Style Manager and click on "All Style Options."
Scroll down to the "Additional CSS Definitions" box at the bottom of the page.
Add the following CSS code to the box:

a.bob:link {
color:#0000FF;
text-decoration: none;
}

a.bob:visited {
color:#0000FF;
text-decoration: none;
}

a.bob:hover {
font-weight:bold;
text-transform: uppercase;
}

3. 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-usercp_referral_id.xml file on your computer

Done!
Enjoy!

NOTE: If you do not click install, you do not need support.

madotds
03-14-2008, 12:02 AM
Looks Good I am off to install now once I get my test board back up and running :erm:

Thanks

rolandogomez
03-14-2008, 01:05 AM
So were does the referral link take them, is this part of the product? In your image, I see this, http://www.yourdomain.com/forums/index.php?referrerid=1 So if they click on that it goes to what page? Thanks, rg sends!

Boofo
03-14-2008, 01:37 AM
The referral link is their link for referring someone to the site. It is what they would give someone as a link to register on the site so they get the referral point.

NeuroLancer
03-14-2008, 01:59 AM
this is very nice thanks so much ;)

Side note: thats the second add on from you where ive had to go into the xml before install and remove <a class="bob"> Not that I dont like the class, but I have a dark style and the dark blue text makes it hard to see.

Boofo
03-14-2008, 02:10 AM
Small price to pay, don't you think? ;)

rolandogomez
03-14-2008, 02:24 AM
Works great! *installed* Would be nice if we had the option to change the verbage, as I also have vBCredits which gives credits per referral to the users and I'd like to mention that here besides the one referral point. Regardless, excellent and should increase traffic! Thanks, rg sends!

Boofo
03-14-2008, 02:29 AM
You can always edit the refid_usercp phrase in the product. Or if you can give me some idea as to what you are wanting it to say, I can maybe change it for you, vet to vet. ;)

rolandogomez
03-14-2008, 02:42 AM
I'll try and do what you said when I get a chance, as I always try, then I ask for help.

I have to say, I've been off the vb boards a bit, but with my new site, which started out as a testing ground for what I'm going to improve for my old larger site, I've been more active here again and the help I've received lately, both paid and unpaid, it's awesome for us non-coder types. There are a bunch of us wannabees that try, sometimes we screw it up, but we try. I wish I understood this stuff like you guys do.

I will keep you in mind for custom work if you do it as I've hired and paid quite a few here when I can. But seriously, I love the community here how they are so responsive and I don't regret switching to VB years ago from UBBthreads for my much larger site and I've since own four licenses of VB and soon more, all because of the help, the hacks, mods, the quality, etc., this place rocks!

On another note, we'll have to get together someday for a drink, vet to vet..thanks, rg sends!

Boofo
03-14-2008, 03:41 AM
I don't do paid hacks, I do them for fun and learning. I think once I start doing it for pay, it won't be any fun anymore and I'll stop. Too many coders have gone the way of the paid hacks and are getting money for what a lot of them learned on here for free. I don't get it, myself. ;)

I'm glad to hear you are liking vb. I came to 3.7.0 beta 3 straight from 3.5.4, so you can imagine the shock at all the changes, some welcome, some not, since 3.5. ;)

I'll have to take you up on the getting together as soon as we can figure out where and when one of these days. ;)

rolandogomez
03-14-2008, 04:28 AM
Sounds cool! Thanks again! rg sends!

Preech
03-15-2008, 11:19 AM
This looks good. Personal all I did was create a box in the UserCP that just shows the members referral id.
I don't have a test site, I don't even have a internet connection at home. This is like you said Boofo. All for fun because I"m learning.

Boofo
03-15-2008, 11:59 AM
This looks good. Personal all I did was create a box in the UserCP that just shows the members referral id.
I don't have a test site, I don't even have a internet connection at home. This is like you said Boofo. All for fun because I"m learning.

That's how you start learning. ;)

This hack is from my 3.5.4 days updated to work with 3.7, which really didn't take anything to do, other than a new version number. It does show you how many referrals they have, too. And does the automatic template edit, but other than that, what you have it probably pretty close to the same thing. ;)

Preech
03-15-2008, 12:34 PM
No, it just shows in the usercp navigation that individual's own referral link. Maybe I will download this to add how many referrals they have.

Boofo
03-15-2008, 12:37 PM
Good idea! ;)

Big Boss
03-15-2008, 08:26 PM
Thanks for the 3.7 release! :)

Aclikyano
03-23-2008, 06:28 AM
boofo... I have 2 ref boxes in user cp (instead of one).

--------- never mind ------------
didnt uninstall old one.

Boofo
03-23-2008, 07:02 AM
Don't forget the install button. ;)

txsbmw
03-24-2008, 12:16 AM
Hey Boofo, I have your old one installed. Should I uninstall that one before or just overwrite it?

Boofo
03-24-2008, 01:51 AM
Only after you click the install button, and then yes.

gwerzal
03-24-2008, 11:50 PM
Just installed this and it all looks good.

Lets see how many people start refering now its so easy for them to do.

Thank you

Pamela
03-28-2008, 08:00 AM
This is great! *clicks install*

Thanks!!! :)

RvG2
03-28-2008, 09:37 AM
thanks so much... one of my member is so eagerly wants to have this.

Boofo
03-28-2008, 10:00 AM
thanks so much... one of my member is so eagerly wants to have this.

It would be a better thanks to click the install button.

GrendelKhan{TSU
03-28-2008, 12:44 PM
this is very nice thanks so much

Side note: thats the second add on from you where ive had to go into the xml before install and remove <a class="bob"> Not that I dont like the class, but I have a dark style and the dark blue text makes it hard to see.

Small price to pay, don't you think? ;)

it ain't if one has no idea how to edit the xml !!! :(
<<< n00000000bafic. :erm::confused::p

popowich
03-28-2008, 01:54 PM
Where does the referrals.gif go?

I don't see any error logs to clue me into the expected path.

-Raymond

Boofo
03-28-2008, 01:57 PM
That is just an image of how the hack looks in action. It doesn't go anywhere.

Boofo
03-28-2008, 02:00 PM
it ain't if one has no idea how to edit the xml !!! :(
<<< n00000000bafic. :erm::confused::p

Use a text editor and search for the class="bob" and remove it. Then save the file.
Or actually you can edit the template in the admin cp and remove it that way.

popowich
03-28-2008, 02:02 PM
Stupid me, I should have opened it up and looked. Figured it was an icon or something. :erm:

-Raymond

Boofo
03-28-2008, 02:04 PM
If you are uploading icons of that size, you are in trouble, ;)

Tom_S
03-29-2008, 05:46 AM
Great stuff! Thanks!

abroad
03-29-2008, 06:25 AM
Installed it but nothing shows up in the User CP ?!?

Boofo
03-29-2008, 06:38 AM
Check to make sure this exact line in in the USERCP template.

<!-- ############## SUBSCRIBED THREADS ############## -->

abroad
03-29-2008, 06:54 AM
Added it but nothing happens

Boofo
03-29-2008, 07:31 AM
Added what? Is there line there or not? If it is not there, then the template has changed. What mod do you have running that would change that template line?

abroad
03-29-2008, 08:06 AM
no there is nothing...uninstalled it and installed it again...but still...

Boofo
03-29-2008, 08:22 AM
Then like I said you have some other mod messing with it. Just go into the template for this mod and take that code and manually add it where it needs to be added. Problem solved. ;)

SVTCobraLTD
03-30-2008, 01:33 AM
Anyone try this on vb 3.6.8 yet? Seems like a good addition. Thank you.

NeuroLancer
04-14-2008, 05:04 AM
Thanks for the update Boofo

Tom_S
04-14-2008, 07:35 AM
Did you update it again since a few hours ago?

NeuroLancer
04-14-2008, 07:51 AM
Did you update it again since a few hours ago?

he did ;) . Nice one Boofo.

Boofo, just a question, what is global $show; doing in the updated plugin? I ask not why is it there, but rather, what purpose does it serve.. ?

Thanks alot. :up:

Boofo
04-14-2008, 07:54 AM
That is for the code to show the referrer name in the profile. Check out the added pic in the first post. It was an after-thought that I thought would be nice to have.

Tom_S
04-14-2008, 09:18 AM
Oh..okay. Thanks Boofo. :)

Boofo
04-14-2008, 12:51 PM
Oh..okay. Thanks Boofo. :)

No problem, sir. ;)

Make sure to do the added template edit to get the referrer to show up in the profile. ;)

txsbmw
04-15-2008, 05:27 PM
I did the template add for the profile, but it isn't showing the names.

Boofo
04-15-2008, 05:47 PM
It won't show anything on a profile that doesn't have a referrer. Check out another profile that you know does have one.

txsbmw
04-15-2008, 06:52 PM
I was checking my own profile that has 3 referrers but it did not show their names.

Boofo
04-15-2008, 07:02 PM
That is not how it works. It shows who referred the user not who the user referred.

txsbmw
04-16-2008, 04:04 AM
Oh ok so it won't show who all you referred only if someone referred you?

Boofo
04-16-2008, 04:18 AM
Yep.

kderentz
05-16-2008, 10:53 PM
perfect!!! just what I was looking for! Thank you very much.

One question thou ... it only gives them the referral if someone signs up correct? When they register will it automatically add the refers name in the reg?

Mrdby
05-16-2008, 11:08 PM
my old version still works fine with mine.

Boofo
05-16-2008, 11:25 PM
my old version still works fine with mine.

And your point is...?

Boofo
05-16-2008, 11:26 PM
perfect!!! just what I was looking for! Thank you very much.

One question thou ... it only gives them the referral if someone signs up correct? When they register will it automatically add the refers name in the reg?

Yes, it will show who referred that person in their profile if they were referred.

Mrdby
05-16-2008, 11:27 PM
And your point is...?

i like the old version.

Boofo
05-16-2008, 11:31 PM
The old version doesn't have the referrer in profile or the amount of referrals. But, hey, to each his own.

Mrdby
05-16-2008, 11:31 PM
lol ok

Boofo
05-16-2008, 11:35 PM
Posting in a thread to say you would rather use something else, is a little redundant, I think.

Battle_Ring
05-28-2008, 05:53 PM
how about a page that shows all referrers

anantthakor
06-01-2008, 05:24 AM
it shows me links like this

http://www.mysite.com/username

it should like

http:// www.mysite.com/index.php?referrerid=1

FreeLunchRoom
06-01-2008, 07:52 AM
What would be cool is for the original referrer to be able to see all of the referrals they gathered.

Boofo
06-01-2008, 02:40 PM
it shows me links like this

http://www.mysite.com/username

it should like

http:// www.mysite.com/index.php?referrerid=1 (http://www.mysite.com/index.php?referrerid=1)

You have something install that is rewriting your links. VBSEO maybe?

anantthakor
06-02-2008, 05:18 AM
Yes, then is it still possible ? bcoz i have working this same hack in 3.6.x version

Boofo
06-02-2008, 05:53 AM
I don't have VBSEO installed so I can't help you there, sorry.

The one you have for 3.6 isn't the same as this. ;)

FreeLunchRoom
06-02-2008, 10:22 AM
I have it working just fine with vbseo. Anyway you can make it so users can track the name of the referrals they referred?

Daera
06-06-2008, 06:18 AM
I have it working just fine with vbseo. Anyway you can make it so users can track the name of the referrals they referred?

That's what I am looking for.

stonner
06-12-2008, 01:02 PM
Hi,
great hack!

How can I change the referral-URL?

I want to use www.mydomain.com/index.php?referrerid=1

instead of

www.mydomain.com/forum/index.php?referrerid=1


is this possible?
Thank you

Namaless
06-12-2008, 08:53 PM
Is possible to add Referral Name to thread near posts total?

Regards.

Boofo
06-12-2008, 09:07 PM
You mean in the postbit? Or am I not understanding it right?

FreeLunchRoom
06-14-2008, 10:32 AM
I have it working just fine with vbseo. Anyway you can make it so users can track the name of the referrals they referred?

Anyway I could pay for this addition?

Boofo
06-14-2008, 10:58 AM
You're more than welcome to donate at any time. ;)

FreeLunchRoom
06-20-2008, 11:11 PM
Can you PM me on how much it would cost me to get the custom modification I need?

Hornstar
06-20-2008, 11:26 PM
This one looks better then the one I have currently, will give this a whirl shortly ^^

Boofo
06-21-2008, 02:55 AM
Can you PM me on how much it would cost me to get the custom modification I need?

There is no "cost" for anything, only donations. There just hasn't been a lot of call for it so I never messed with it.

This one looks better then the one I have currently, will give this a whirl shortly ^^

Let me know if it meets with your expectations (damn, I love big words!). ;)

EarnDollars
06-21-2008, 07:08 AM
Installed
Thanks for this great tool to promote forum

BYW, is there any way to display the details of refered members for any member?

FreeLunchRoom
07-01-2008, 07:46 PM
Installed
Thanks for this great tool to promote forum

BYW, is there any way to display the details of refered members for any member?

That's what I'm waiting for as well.

Boofo
07-01-2008, 10:31 PM
As you all know, I think we found Atlantis in Iowa. I will get it together as soon as things clam down here bit in then water department. I have the code done for it, I just need to set up the template and how I want it to show.

FreeLunchRoom
07-01-2008, 10:57 PM
As you all know, I think we found Atlantis in Iowa. I will get it together as soon as things clam down here bit in then water department. I have the code done for it, I just need to set up the template and how I want it to show.

Awesome...well take care over there and we'll be waiting when it's done!