vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Where is the $referrals (https://vborg.vbsupport.ru/showthread.php?t=40941)

Sketch 07-11-2002 04:06 PM

Where is the $referrals
 
Okay, I'm slightly confused and pretty much peeved. I don't have time to delve into this code much more than I already have. I see on my profile on my site that I have 4 referrals. I have not made any link referrals anywhere so these referrals have to be coming from somewher.

1. Where is the existing code to add referrals to the database? I can write code from scratch to do what I WANT it to do, but I'd rather work within the vB framework if for no other reaosn so I don't get my wires crossed.

2. Theres a tempolate variable, $referrals, in my getinfo template. This is the portion that displays the referral count in my profile. This appears to be a reference to the getinfo_referrals template. So in THAT template, there is a call to $referrals again. WHERE is this variable defined?

Thanks for helping me sort this.
Sketch

Xenon 07-11-2002 04:10 PM

its defined in member.php ;)

Sketch 07-11-2002 04:42 PM

thanks, now if I can just get home to be able to FTP I'd be set. :)

Admin 07-12-2002 05:46 AM

Code:

  // Get referrals
  if ($usereferrer) {
    if ($backcolor=="{firstaltcolor}") {
                        $backcolor="{secondaltcolor}";
                        $bgclass = "alt2";
                } else {
                                $backcolor="{firstaltcolor}";
                        $bgclass = "alt1";
                }
    $refcount = $DB_site->query_first("SELECT count(*) AS count
                                      FROM user
                                      WHERE referrerid = '$userinfo[userid]'");
    $referrals = $refcount[count];
    eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  } else {
                $referrals = '';
        }


Xenon 07-12-2002 11:42 AM

chen you shoul disable parsing of replacements in posts, ist a problem as you can see ;)
also in txt attachments...


All times are GMT. The time now is 08:31 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.00906 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete