vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Referral Statistics (https://vborg.vbsupport.ru/showthread.php?t=64469)

Big Kahuna 05-12-2004 01:03 AM

Ok -- what's the secret format for the //path to your vbulletin directory?

I getting the below error

Quote:

Warning: chdir(): No such file or directory (errno 2) in /home/moparsty/public_html/forums/referals.php on line 28




Unable to add cookies, header already sent.
File: /home/moparsty/public_html/forums/referals.php
Line: 28



my forums are at www.moparstyle.com/forums

gspot 05-12-2004 01:07 AM

For you it would be: /home/moparsty/public_html/forums/

REMEMBER CLICK INSTALL :)

Big Kahuna 05-12-2004 01:10 AM

Ok thanx -- that got me one step further -- but now I have a blank screen

http://www.moparstyle.com/forums/referals.php

Suggestions?

Big Kahuna 05-12-2004 01:19 AM

I modified includes/functions_online.php and uploaded it

I created the two templates (in one of my 12 styles to test) in my 64 Imperial style

I added the path to the referals.php and put it in my main forum directory

I added the call in the footer of the style with the templates http://www.moparstyle.net/forums/index.php?styleid=36

But I get a white screen.

Big Kahuna 05-12-2004 01:29 AM

Fixed -- I gave the full URL to the referals.php so I could also use it in the footer of the Portal.

Thanx

I'll click install as soon as I update the other styles.

Big Kahuna 05-12-2004 01:35 AM

I'm missing the big picture here -- how does it relate new members to the person that referred them? Is this something that occurs this moment forward as a person registers?

I already have an extra field in the user CP that has the person registering leave the name of the person refering them. Any way to use that data?

gspot 05-12-2004 02:08 AM

Quote:

Originally Posted by Big Kahuna
I'm missing the big picture here -- how does it relate new members to the person that referred them? Is this something that occurs this moment forward as a person registers?

I already have an extra field in the user CP that has the person registering leave the name of the person refering them. Any way to use that data?

What version are u using for vbulletin? This hack is to show statistics on referrals that have been made. For instance, if you referred 5 people, it will show the 5 people you referred as well as a count of referrals for you which would be 5 and your username as the referrer. This is just for statistics. I'm currently finishing an addon for this hack that will be used for competitions. Say you only want to show statistics for members who have referred new members that have posted a certain amount of times. This will show the results based on this condition. Hope this helps.. By the way, did you get it up and working??

** Change that I have visited your site and you didn't copy and paste the information for the templates correctly. Please re-copy the templates and make sure they are named: refer & referbit .. Then this hack will work properly, it works for all referrals made prior to this hack and for future referrals. :)

Big Kahuna 05-12-2004 04:35 AM

this is the template refer

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - Referral Statistics</title>
$headinclude
</head>
<body>
$header
$navbar
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="550" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="550" align="center">
<tr>
  <td class="thead" align="center" width="160"><b>Member</b></td>
  <td class="thead" align="center" width="80"><b>Referrals</b></td>
  <td class="thead" align="center" width="310"><b>Members Referred</b></td>
</tr>
$referbits
</table>
</td></tr></table>
$footer
</body>
</html>

this is the template referbit

Code:

<tr align="center">
        <td class="alt1"><b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$referrer[userid]">$referrer[username]</a></b></td>
        <td class="alt2">$referrer[referrals]</td>
        <td class="alt1">$referrerlist</td>
</tr>

I copied and paste exactly as the .txt file instructed. Am I seeing something different than you?

Big Kahuna 05-12-2004 04:37 AM

although the instructions has referbit (singular) -- I see the refer wants to call $referbits (plural)

gspot 05-12-2004 04:47 AM

Quote:

Originally Posted by Big Kahuna
although the instructions has referbit (singular) -- I see the refer wants to call $referbits (plural)

That doesn't matter.. It's how the script actually works. Do you actually have members at this time that have made referrals?? Please feel free to AIM me my username is: gspot003


All times are GMT. The time now is 05:43 PM.

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.01486 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (3)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