vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Refer Friends! (https://vborg.vbsupport.ru/showthread.php?t=40355)

Unknown553 08-04-2002 07:31 PM

Great! Glad you like it. :D

Destee 08-04-2002 11:57 PM

Unknown ... can you tell me how to include a bcc of each referal to myself? I'd like to monitor it since the fields can be edited and used for any purpose.

Thanks,

Destee

Unknown553 08-05-2002 04:33 AM

Edited...Fixed code in my next reply.

Destee 08-05-2002 05:46 AM

Thanks Unknown ... I rec'd the following:

Parse error: parse error in ... /forums/refer_send.php on line 25

Unknown553 08-05-2002 09:05 PM

I'm sorry, scrap that whole idea.

Just change this

PHP Code:

// if error free, then send mail
mail($to,$title,$message,"From: $bbuserinfo[email] ($name)"); 

to this

PHP Code:

// if error free, then send mail
mail($to,$title,$message,"From: $bbuserinfo[email] ($name)\r\n"."Bcc: $webmasteremail"); 


Destee 08-05-2002 09:21 PM

Unknown ... you are Da Man !!! ... if you're male ... hehehe :)

Thank you very much !!! This worked !!!

Simply Loving Your Hack!

Destee

Unknown553 08-06-2002 01:51 AM

Great, glad you like it! :)

And yes, I am a male. ;)

Destee 08-08-2002 09:19 AM

Hi Unknown ... it's me again ... :) ... All of my referals are including my userid (1) and username in the email body ... and not the actual user's id/name ... I tested it with a few other usernames/id's ... can you tell me what code I need to change to correct this (so that it picks up the actual user's id)?

FYI ... this is what I have in refer.php ...

PHP Code:

$bburl/index.php?s=&referrerid=$bbuserinfo[userid]
\
n\nThanks, and I hope to see you soon.
\
n\n-$bbuserinfo[username]"; 

Thanks,

Destee

ps ... I promise, this will probably be the last time I bother you ... for this particular hack ... :)

Unknown553 08-08-2002 10:34 PM

Make sure you have require('./global.php'); at the top of the file. Also maybe try changing $bbuserinfo[userid] to $bbuserinfo['userid'].

Destee 08-08-2002 11:26 PM

Unknown ... thank you for responding. I'm sure folk like me make folk like you think twice about sharing a hack.

The reason I was experiencing the above was because I had hard coded the text in the refer template (including my userid and everything). My Bad.

I promise ... no more questions from me ... and who knows, now that you've spent countless moments with me regarding this hack ... I may be able to help someone else. :)

All is well.

Destee


All times are GMT. The time now is 01:44 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.00981 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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