![]() |
Adding Referral Count to User Stats
Hi folks,
How would I go about adding "Referrals:" to the user stats at left (locatin, registered since, and posts, etc..) I have installed the Refer Friends hack and want to add the # of referrals to this info. Also is there a variable ($referrals ??) that would present the users total referrals within the user stats on every post. Thanks for any help. Greg |
Not tested myself, but should work - try this:
In functions.php, find: PHP Code:
PHP Code:
Code:
Referrals: #$referrals |
Thanks for your reply Erwin!
I looked and looked for the snippet of code (an probably missed it :cross-eyed: ) to no avail.. (functions.php in VB 2.2.8) Can you give me an idea where it may be? I did post the code on the 248-255 but it didn't work. I have the postbit taken care of. Here's my code: Quote:
Thanks a bunch! Greg |
bump
|
Put the code in functions.php exactly where I say to put it - that line of code was taken from functions.php 2.2.8 unhacked - and then remember to edit your postbit template. It should work.
The referral count needs to be specifically queried from the database for the postbit. |
Okay... I still cannot find that "exact" line of code. I even performed a find and replace in Dreamweaver after manually scrolling 2300 plus lines and it wasn't found. Then I pulled a fresh vb.zip for the functions.php file (figuring maybe a hack modified it) and still no match.
Either I'm nuts, blind, or that code is not in there :) There is no code that starts with $post[off] whatsoever in the functions.php version 2.2.8. Please advise?!? Thanks for your time, Greg |
Sorry, vB.org parsed the code I used.
Try to find this in functions.php instead: PHP Code:
See if that works. |
Okay.. found the code :) but it didn't work :( The Referrals: # shows up in my postbit but it's not logging the $referrals number.
Code:
} else { Code:
<smallfont>Registered: $post[joindate]<br> |
Try this code instead:
PHP Code:
Then, in your postbit template, try this: Code:
Referrals: #$refcount[count] |
Hi Erwin,
I made the changes... now when I click on a thread it gives me: Quote:
|
All times are GMT. The time now is 01:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|