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)
-   -   Refer Friend (https://vborg.vbsupport.ru/showthread.php?t=59708)

Erwin 04-19-2005 11:17 AM

Quote:

Originally Posted by kobescoresagain
can you change it so that it doesn't make a delay? I have people wanting to use it but it delays a little to long. I would like to know the variable where I could adjust this. Thanks

It's the same timeout as the contact us flood timeout - adjust it in your Admin CP. (I think).

yinyang 04-21-2005 06:38 AM

thanks for this awesome hack erwin!! *install*

kobescoresagain 04-27-2005 03:28 AM

Thanks alot, I wouldn't have thought that they would use that. I changed it. Now you don't have to wait as long. What could make it even better is where they could send out up to a certain amount. This is the reason why I lowered the amount of time. Like 5 to 10 refer a friend emails at a time. Would that be easy to do?

Benj 04-27-2005 06:18 AM

Quote:

Originally Posted by kobescoresagain
What could make it even better is where they could send out up to a certain amount. This is the reason why I lowered the amount of time. Like 5 to 10 refer a friend emails at a time. Would that be easy to do?


im interested in this !

HostLogik 04-28-2005 09:20 AM

Thanks..great hack

simple_john 05-02-2005 10:00 AM

i added this hack too.. simple even for me.. who knows nothing about coding... LOL

angelicGrace 05-04-2005 02:37 PM

Cool hack. thanks Erwin

DjTaz 05-07-2005 02:30 PM

I installed this , and every time i try to send i get

Quote:

That username is already in use. If you are Taz and you have forgotten your password, click here.
can anyone help me with this ?

T3MEDIA 05-08-2005 01:24 PM

Quote:

Originally Posted by Erwin
It's the same timeout as the contact us flood timeout - adjust it in your Admin CP. (I think).

Erwin how can I do this so it sends a template? I am trying to relase a add on to your hack but I need your help. What I want to do is put the email message in a predefined template called invite

they fill out the requested info but once its done it looks like this:
http://www.sprnch.com/forums/view.php?pg=invite

I removed all the "$" from all varables like vboptions[bbtitle] so users who are not logged on can get a idea of what this example is supposed to do.

So the name they enter i placed in the template and the template is sent.
the pics n what not I have done already. There is a new area called "optemailmessage" that I would like to also add.

attached is a fill out form I made please talk a look at the mild ajustments I made...

If you could help that would be really nice of you.

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - Refer $vboptions[bbtitle] to a Friend</title>
$headinclude
</head>
<body>
$header
$navbar

<form action="sendmessage.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />

<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
        <td class="thead" colspan="2"><b>Refer $vboptions[bbtitle] to a Friend</b></td>
</tr>
<!---$logincode--->
<tr>
        <td class="alt2"><b>Send To (Person's Name):</b></td>
        <td class="alt2"><input type="text" class="bginput" name="sendtoname" size="25" maxlength="75" /></td>
</tr>
<tr>
        <td class="alt1"><b>Send To (Email Address):</b></td>
        <td class="alt1"><input type="text" class="bginput" name="sendtoemail" size="25" maxlength="100" /></td>
</tr>
<tr>
        <td class="alt2"><b>Subject:</b></td>
        <td class="alt2"><input type="text" class="bginput" name="emailsubject" value="Join me at this website!" size="25" maxlength="100" /></td>
</tr>
<tr>
        <td class="alt1" valign="top"><b>Optional<br>
                                                          Message:</b></td>
        <td class="alt1"><textarea name="optemailmessage" rows="5" cols="50"></textarea><br>
                                                          <textarea name="emailmessage" rows="10" cols="50" readonly>Hey!

Your friend $bbuserinfo[username], is in the $vboptions[bbtitle] network and would like you to join them! Join and you will immediately be connected to the people who have invited you, and others in their networks!

$vboptions[bbtitle] is an online service that lets you meet new people, share photos, browse profiles, and chat online!

We'll see you inside,
</textarea></td>
</tr>
</table>
</td></tr></table>

<br />

<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<tr>
        <td align="center">
        <input type="submit" class="button" value="Send Email Now!" accesskey="s" />
        <input type="hidden" name="t" value="$threadid" />
        <input type="hidden" name="url" value="$vboptions[bburl]/referrals.php" />
        <input type="hidden" name="refer" value="1" />
        <input type="hidden" name="do" value="dosendtofriend" />
        </td>
</tr>
</table>
                        <br>
                        <div align="center">
                                <p>or<br>
                                <a href="mailto:Enter%20Friend%27s%20Email?Subject=$bbuserinfo[username]%20has%20invited%20you%20to%20join%20$vboptions[bbtitle]!&amp;Body=Join%20me%20at%20$vboptions[bbtitle]!%20%0D%0DJust%20click%20here%20to%20join:%20$vboptions[bburl]/forums/register%2Ephp%3Freferrerid%3D$bbuserinfo[userid]">Click here</a> to automatically place this link in your email!
                        </div>
                </form>

$footer

</body>
</html>


dsboyce8624 05-08-2005 02:49 PM

Wow, that looks great. Please let us know when it's done.


All times are GMT. The time now is 02:17 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.01651 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)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