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)

jetjames 05-13-2006 03:01 AM

Can someone tell me what line the code can be found that needs to be changed?

RS_Jelle 05-13-2006 11:54 AM

Quote:

Originally Posted by mountainlife
will this work with the latest vb version? if not can someone make it work?

This will work with the latest version of vB 3.0.

If you want to use it on vB 3.5, you need to read this ;)

kafi 06-20-2006 01:53 PM

I am using this with vB 3.5.3 and it works fine except that in the recent past I am getting SPAM through this. I am afraid that SPAMers are using this to resend SPAM throug my email server...

Can I limit number of sent by IP adress or somthing?
Or can you add image verification?
Any other idea?

Sean S 06-23-2006 06:31 PM

I hope you don't mind this Erwin. Basically what I did to control the spams or unwanted guests to use this feature, I just put a conditional around the template so that only members can use the form,

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

<if condition="$bbuserinfo[userid] == 0">
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder">
<tr>
        <td class="thead" colspan="2"><b>Refer $vboptions[bbtitle] to a Friend</b></td>
</tr>
<tr>
        <td class="alt2">Sorry, you have to register first to invite your friends.</td>
</tr>
</table>
</td></tr></table>
<else />
<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>Message:</b></td>
        <td class="alt1"><textarea name="emailmessage" rows="10" cols="50">I thought you might be interested in joining me at $vboptions[bbtitle]! Click here to check it out:
$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]

From,
$bbuserinfo[username]
</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="$url" />
        <input type="hidden" name="refer" value="1" />
        <input type="hidden" name="do" value="dosendtofriend" />
        </td>
</tr>
</table>

</form>
</if>

$footer

</body>
</html>

just replace the "Sorry, you have to register first to invite your friends." with whatever you want. I didn't really see a point for unregistered members to refer other people to the site when their not registered themselves. Again, every site has different needs, hope this will be a solution for some. Thanks for this hack Erwin, it works great :)

friscogal 09-02-2006 07:52 AM

hi Ewin, i just installed in vb3 3.6 and have the link at the bottom of the page but when i click the link i get a blank page...i see a few others have had the same problem.

what am i doing wrong?

soletrader 09-03-2006 02:54 PM

Any updates on vb 3.6.0?

sandman1970 09-27-2006 01:48 PM

hi,
after long time didnt work with vb 353 admin job, i forgot every thing :)

can anyone tell me step by step HOW to

Add new template "refertofriend"

Thank you.

DDad 11-02-2006 05:26 PM

What I did may not be the same as what you did with this hack. If it works great but if it doesn't, sorry.
I?m using 6.2 and cmps 2.2.1
This is for A)

look for

Code:

// ############################### start send to friend permissions ###############################
 if ($_REQUEST['do'] == 'sendtofriend' OR $_POST['do'] == 'dosendtofriend')

replace with

Code:

// ############################### start send to friend permissions ###############################
if ($_REQUEST['refer'] == 'sendtofriend' OR $_POST['refer'] == 'dosendtofriend')

all I did was replace do with refer and everything worked for me

B) has not changed

rnmcd 11-10-2006 02:32 AM

Does this hack create a link for the user to click that pulls up the form?

Regarding preventing this form being used to send spam, could a captcha be used to prevent bots from sending messages? Or don't bots 'use' this type of form?

Thanks.

shallow bay 01-15-2009 11:01 PM

If anyone is using this mod with 3.7 I have it installed and everythign works correct but when i try and send a message i receive this error:

Quote:

Your submission could not be processed because a security token was missing.

anyone got any ideas?


All times are GMT. The time now is 05:28 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.01372 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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