![]() |
UserCP Referral ID and Count
1 Attachment(s)
While supporting my mini-mod I came across a more in depth version of what I was trying to do. Once I saw it I had to add it to my site. Since I couldn't find it here, I created something of my own.
This hack will add a collapsible box in your UserCP with a message informing the user what the referral ID is, what it is for, and how to use it. The message can be, of course, rewritten in your phrases to fit your own site and users. To install, simply install the product below in Manage Products, then of course you should click installed. :up: Update: Sorry, re-uploaded the xml. I had set the wrong product dependency on the xml. I have removed it. It works again. (first Code jitters I guess... :D) Version 1.0.2: Added a bit of code so that it will remember if you collapse it, or expand it and keep that formation so that you don't have to collapse it each time you go into the UserCP. Version 1.0.3: Corrected the query string so that it would not count users that had not been verified or passed through moderation. (user group 3 and 4 are not included in the referral counts now). re-uploaded 1.0.3, minor change on version listed in the mod. To upgrade install normally, set "Allow Overwrite" to 'yes'. |
Rocks! And even with a screenshot. ;)
This is way to go. Many ppl forget about the Why in their functions - why users should make use of it. Edit: bring back the script! :) |
Quote:
|
Quote:
|
i got this error when trying to import the product
Code:
The following dependencies were not met: |
Got the same error sadly.
|
I have it too
|
How can the user see who he has referred to the forums?
|
Installed :)
Edit - Not working ! :( Getting same error.. 3.6! |
Edit the xml and remove:
Code:
dependencytype="product" parentproductid="74201" Then it works fine. |
thats because you got the idea From me haha :D or did you... lol
|
Crap. I mistyped the compatibility...
LOL. |
Quote:
:D |
Quote:
I'll see what I can do. |
Will this work with 3.7.x ?? Anyone tried yet..
|
Quote:
|
Quote:
If you can, please display users referred by him in this month, this year or give each user option to choose the time frame. If you can do more, please add post count of each referred user because sometime, we want to ensure that they all are real referred person, not a faked referred members. If you can do even more, please give user choose the minimum post counts of each referred in order for the referred user be displayed. |
Thanks, will update to this version soon.
|
Thanks Installed :up:
|
Well imma put mine on disable and see what yours is like different from the one i have
|
Quote:
|
Quote:
Allowing people to see who they have refferred indeed would be a great feature :) |
Works on 3.6.11! Thank you.
|
Quote:
|
Quote:
|
I remember Boofo's mod (in grave now) that does and look the same. It had a bug of showing 1 extra referral count.
This one's good. Thanks :) |
Your mod will show incorrect referral count as vbulletin also block usergroups 3 and 4 to not to be included. Change the query to this:-
[sql]$refcount = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '".$vbulletin->userinfo['userid']."' AND usergroupid NOT IN (3,4)");[/sql] |
Quote:
Danke, and updated. |
Very nice, installed! :)
|
Installed on 3.8 seems fine so far
|
very nice hack. a very constructive one.
installed and clicked installed:) |
1 Attachment(s)
Those of you who have high server loads I've modified the product so that the template edits were manual:
Find: Code:
$template_hook[usercp_main_pos2] Code:
<!-- REFERRALS IN USER CP --> |
Cool.
|
This mod conflicts with the following mod: Icons for UserCP Navbar
The screenshot you supplied shows a link to Your Referral Link in the Your Profile section of the UserCP menu. I have installed this mod and it does not show this link...otherwise, it works fine. You may want to take this into consideration and modify your code to allow for this. |
Quote:
Can you link me to the mod it conflicts with? I need to find out what they are hooking on and choose something different so they won't conflict. |
Quote:
Other than that...like I said...the mod works fine. |
already installed. thanks
but when i click : your refferal for xxx (userid member) the link, direct me to forum home.. is it true or still have errors? thank you |
Quote:
|
Will this work for vbseo where it wont modify the url?
|
Quote:
|
All times are GMT. The time now is 06:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|