Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding email addresses on refer.php?? Details »»
Adding email addresses on refer.php??
Version: , by Mr H Mr H is offline
Developer Last Online: Nov 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-11-2003 Last Update: Never Installs: 0
 
No support by the author.

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')."\");");
}
?>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:49 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.03664 seconds
  • Memory Usage 2,204KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete