vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Adding email addresses on refer.php?? (https://vborg.vbsupport.ru/showthread.php?t=52810)

Mr H 05-11-2003 02:38 PM

Adding email addresses on refer.php??
 
I'm trying to make more email address spaces available so that when someone is referring friends they can add 5-10 friends instead of only being able to add 3. I tried just copying the friend 2 and friend 3 lines, and making them friend4 and friend5 but that did not work. Any ideas on how I can do this?

PHP Code:

<?php
error_reporting
(7);

require(
'./global.php');

    if (!isset(
$action)) {
        
$action 'compose';
    } else {
        
$action 'send';
    }

// check to see if they're logged in
if ($bbuserinfo[userid]) {
    if (
$action == 'compose') {
        
//default email title
        
$defaulttitle "Come check out the $bbtitle forums!";
        
//default email message
        
$defaultmessage "Hey,\n\nI would like to introduce you to a great community that I enjoy and think you would enjoy too. It's a fun place with great members and a lot of activity. If you want to get rid of your boredom, or just need a place to hang out on the net, please come join me at the $bbtitle forums.\n\nTo check it out, click here (or copy and paste the url in your web browser): $bburl/index.php?s=&referrerid=$bbuserinfo[userid]\n\nThanks, and I hope to see you soon. :)\n\n-$bbuserinfo[username]";

        
// load up main referral page
        
eval("dooutput(\"".gettemplate('refer')."\");");
    }

    if (
$action == 'send') {
        
// build mailing list
        
$to $friend1;
        if (
$friend2 != "") {
            
$to .= ",".$friend2;
        }
        if (
$friend3 != "") {
            
$to .= ",".$friend3;
        }

        
// check that required fields are not blank
        
if ($friend1 == "" or $name == "" or $message == "") {
            
// if a field is blank, get error
            
eval("dooutput(\"".gettemplate('refer_error')."\");");
        } else {
            
// if error free, then send mail
            
mail($to,$title,$message,"From: $bbuserinfo[email] ($name)");
            
// give thank you/sent message
            
eval("dooutput(\"".gettemplate('refer_sent')."\");");
        }
    }
} else {
    
// if guest/not logged in, show error
    
eval("dooutput(\"".gettemplate('refer_error')."\");");
}
?>



All times are GMT. The time now is 07:00 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.01027 seconds
  • Memory Usage 1,728KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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