![]() |
very nice...thank you...installed
|
Great!
Thanks ;) |
Great mod, works perfect. Thanks :)
|
I do appreciate the kind words. Thank you. :)
|
This mod will be useful. Thanks
|
RB, everything seems to work but one thing and I also noticed it in your screen shot, <strong>$referrals</strong> doesn't show any referrals. It's just blank.
|
Quote:
Hmmm... that data will need to be pulled from the database. To do this the usercp.php file will need to be hacked. I imagine the code would be similar to the "Referrals" script found in members.php. Writing a script for this is beyond my current abilities. If another member would like to pitch in and provide a working "Referrals" script that would be great. Of course, credit will be given. Otherwise, I'll the best I could do is remove the referrence to referral count from the mod. Any takers on the "Referral" script for the usercp.php file? |
I am still not really sure why this doesn't work. $referrals is a global variable and used elsewhere in the MEMBERINFO template exactly as you have it. It works there. *shrugs*
|
Here is my fix. (EDIT: This is for 3.5.x) I liked it so much, I just did it without checking the version. I'll post up the 3.0.7 fix too in a bit.
Add a hook at "usercp_complete". PHP Code:
PHP Code:
PHP Code:
|
A great big "Thank You" to Noppid for working out the hack that makes the number of referrals display properly in the UserCP. :up:
|
All times are GMT. The time now is 05:48 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:
|