vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - User CP Referral ID and Referrer/Referrals in Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243455)

sas forum 08-24-2010 11:36 PM

Quote:

Originally Posted by Boofo (Post 2089095)
If you are just running the forums, it might work with index.php. I'm not sure how that is set up, to be honest.

Let me know if it works with the default template and we can go from there. Since I run the default skin, that is what it was written on.

It shows the referred members at the bottom of the about me like it did before, but no info box with their referral link at the top. I tried it on the default (stock) template that came with VB and also again on the one that I changed the colors on that we use right now.

Maybe there is a conflict with a current mod I have installed?

I currently have the following installed:

BBR - Google Analytics Addon
CT second_post_Ads
EveryWhere Sidebar
GlowHost - Spam-O-Matic
User CP Referral ID and Referrer in Profile
vBH - Add new tabs 1.2

Boofo 08-24-2010 11:55 PM

Are you sure you are going to the right page?

/forums/usercp.php

sas forum 08-25-2010 12:44 AM

Quote:

Originally Posted by Boofo (Post 2089111)
Are you sure you are going to the right page?

/forums/usercp.php

Ah, that is it.

For some reason I was trying to view my profile and edit my profile and everything. Never clicked "settings" to get to the usercp. Man, you are smart :) Thanks for the help, sorry for being a thorn in the side of this mod. It is a great mod and makes it a lot easier for the members to refer people. If you have a donation button, I will be happy to donate some money towards the dev of new mods as I have done with others.

Thanks for the help

Boofo 08-25-2010 01:44 AM

There is a support developer link (for donating) under my avatar in the first post. ;)

No problem. Glad all is ok now. ;)

sas forum 08-25-2010 10:07 AM

Quote:

Originally Posted by Boofo (Post 2089143)
There is a support developer link (for donating) under my avatar in the first post. ;)

No problem. Glad all is ok now. ;)

Did it, thanks.

Boofo 08-26-2010 01:04 AM

Quote:

Originally Posted by sas forum (Post 2089284)
Did it, thanks.

And it is appreciated. Thank you. ;)

karlm 09-06-2010 02:38 AM

Works :)

Thanks :))

the_ace 09-17-2010 05:24 AM

is there anyway to get the number of referrals to show in the postbits ?

Boofo 09-17-2010 07:45 AM

Quote:

Originally Posted by the_ace (Post 2099472)
is there anyway to get the number of referrals to show in the postbits ?

Not without adding a query for every post.

the_ace 09-17-2010 09:48 AM

Quote:

Originally Posted by Boofo (Post 2099516)
Not without adding a query for every post.

Thats fine. Thats not an issue for me.
I tried this as a plugin that hooks in to the posrbit_display_start:
(slightly modified from the plugin thats in vb 3.8.x
Code:

usersid = $this->post['userid'];
        $refcount = mysql_query("SELECT username FROM " . TABLE_PREFIX . "user WHERE referrerid='$usersid'");
        $referrals = mysql_num_rows($refcount);
        $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>Referrals</dt><dd> '.  $referrals.'</dd>';

But i soon realized that I'm in way over my head with this :o


All times are GMT. The time now is 08:54 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
  • Page Generation 0.01174 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete