![]() |
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:
|
Quote:
|
Quote:
|
You said to add a hook at 'user_complete'. Not sure where you mean to add it. Sorry for the stupidity.
|
Quote:
I mistakenly thought this was a vB 3.5 hack. You don't have hooks in vB 3.0.x which this hack is for. The instructions to fix this hack on vB 3.0.x are in the hack description at the top of this thread. |
So you can't use this in 3.5? Even if you go into and add a new hook?
|
Well, I answered my own question. I went ahead and went to Add new plugin, chose 'usercp_complete', referenced with the text "Referral Amount", copied/pasted the php code, and it worked like a charm. Thanks noppid and thanks for the hack RB.
|
Quote:
Ok, Great, glad it worked out. I got confused, again. :surprised: |
So RB, now you can say that this actually works on vb 3.5.1 now, not just 3.0.7. :D
|
Quote:
I have modified the phrase and USERCP Template add in code a bit as well. The box is still collaspable, but when collapsed, it still shows the referrer link for the member. I also made the link just text. When the link was live, it was too easy to click and activate it while trying to copy and paste it. |
Same here...all packaged and ready, but I modified my results to not have all that text. Just what you see in the screen capture that I already posted.
Thanks for the work on this, both of you. |
Quote:
|
Ok, I've updated the instructions to include both the 3.0.x and 3.5.x versions.
I'll work on getting this packaged for release as a vB 3.5 product. |
HI,
I messed up big time. I wasnt paying to close attention and I modified the usercp.php even though I have 3.5.x, and published the changes, then I got an error message: Parse error: parse error, unexpected '[' in /home/jeffsmit/public_html/forum/usercp.php(467) : eval()'d code on line 3 at the top of my usercp page on the forum. I went back and looked over the directions and noticed I was only supposed to modify if I was using 3.0.x. So I erased the: // REFERRALS $refcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '".$bbuserinfo['userid']."'"); $referrals = vb_number_format($refcount['count']); [/CODE] That I had previoulsy inserted. Then I republished, now I get the same error message at the top of my user cp. This is lines: 461-474 as of right now: // draw cp nav bar construct_usercp_nav('usercp'); $frmjmpsel['usercp'] = 'class="fjsel" selected="selected"'; construct_forum_jump(); ($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false; eval('$HTML = "' . fetch_template('USERCP') . '";'); // build navbar $navbits = construct_navbits(array('' => $vbphrase['user_control_panel'])); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('USERCP_SHELL') . '");'); Does anyone know what I can do to fix this, I dont really even know what I am doing but I am trying to learn as I go. I goofed this time... HELP! Thank You, Jeff Smith |
Remove this line of code from the code you provided:
Code:
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false; |
Quote:
|
Quote:
|
Thanks alot Resale... waiting for the release
i wish i found your forum before i quit working =) in the sales market.. I got a recommendation though members from around the world. maybe a enter forums link... right under that text on your index page... I recommend some sorta forum link like enter forums or forums somewhere on your page i was a bit lost when i first entered the page because i didnt want to click one of the latest post and that didnt give me any other option other than adsense. |
Whoa thanks for the update.
|
Quote:
|
Clicks Install
Thank You very much for your time |
Works great, except that there seems to be an extra line break at the top of the box (see attached screenshot) - How do I get rid of it?
EDIT: Apparently it only shows the extra linebreak for admins... |
Someone needs to finally change this to a plug/product.
|
Quote:
|
Quote:
|
Hello,
I just installed this on http://www.make-money-online.tv/forum. And now that anytime anyone goes to the User CP this message shows up at the top of the window: "Parse error: parse error, unexpected '[' in /home/makemo3/public_html/forum/usercp.php(471) : eval()'d code on line 3" any ideas on how I can fix this? Thanks |
Lemonpiesaregoo, I sent you a PM. If you're still having troubles let me know.
|
The 3.5.x product is now available for download. :)
|
Quote:
|
I have a quick question as well. I noticed in the "Downloads" section you have multiple downloads
refid usercp v1.2.zip product usercp referrals.xml I've downloaded the .zip and I've followed those instructions and everything appears to be working. But I wanted to check and see if I needed to install the .xml file as well. Could you let me know if I need to install that as well, after making the needed code modifications. Thanks, Paul |
Hello Paul,
The "zip" download is for boards running 3.0.x The "xml" dowload is for boards running 3.5.x Cheers, Jeff |
All times are GMT. The time now is 04:19 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:
|