Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2006, 09:49 PM
friscogal friscogal is offline
 
Join Date: Aug 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Refer/invite friend (Erwin's version) for 3.6?

i haven't been able to find this anywhere? is this version available for 3.6. i installed but get a blank page when clicking the link. i read that others have had this problem as well.
Reply With Quote
  #2  
Old 09-19-2006, 04:15 AM
LisaD1's Avatar
LisaD1 LisaD1 is offline
 
Join Date: May 2005
Location: True North Strong & Free!
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking for this as well! TIA
Lisa
Reply With Quote
  #3  
Old 11-01-2006, 04:16 AM
stonner stonner is offline
 
Join Date: Jun 2006
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

me too
Reply With Quote
  #4  
Old 11-02-2006, 05:19 PM
DDad's Avatar
DDad DDad is offline
 
Join Date: Mar 2005
Location: Boston
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 02-19-2007, 07:21 AM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you DDad!!!! It works!!!
Reply With Quote
  #6  
Old 03-10-2007, 02:43 PM
volarium volarium is offline
 
Join Date: Mar 2005
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm wondering if someone would be kind enough to provide full instructions on how to set this up for 3.6? Would I install the Erwin version that was created for 3.0, and then simply apply the hack above? I realize it's not officially supported, but if anyone can provide more detail, many of us would be grateful. :-)
Reply With Quote
  #7  
Old 03-11-2007, 02:51 PM
Lars-Christian Lars-Christian is offline
 
Join Date: Feb 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just follow the exact same instructions as in the install file, but exchange step A) with the step DDad provided here

Works like a charm for me as well!
Reply With Quote
  #8  
Old 07-30-2007, 03:59 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not see a step a in the instruction file? The first step has no letter but it doesn't seem right to be replacing the code above for the first step.... What am I missing???

Has anyone gotten this to work in later versions like 3.6.7???

Thanks
Reply With Quote
  #9  
Old 09-17-2007, 01:06 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using 3.6.8, I did the following changes:

1. Open sendmessage.php:

a) Find:
PHP Code:
// ############################### start send to friend permissions ###############################
 
if ($_REQUEST['do'] == 'sendtofriend' OR $_POST['do'] == 'dosendtofriend'
replace with:

PHP Code:
 // ############################### start send to friend permissions ###############################
if ($_REQUEST['refer'] == 'sendtofriend' OR $_POST['refer'] == 'dosendtofriend'
b) Find:
PHP Code:
eval('print_output("' fetch_template('sendtofriend') . '");'); 
Replace with:
PHP Code:
if ($_REQUEST['refer'])
    {
    eval(
'print_output("' fetch_template('refertofriend') . '");');
    } else {
    eval(
'print_output("' fetch_template('sendtofriend') . '");');
    } 
Add new template "refertofriend" with the following contents:

PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head><title>$vboptions[bbtitle] - Refer $vboptions[bbtitleto 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[bbtitleto 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>

$footer

</body>
</html> 
3. Add this link anywhere in your header, forumhome or footer template.

PHP Code:
sendmessage.php?do=sendtofriend&refer=
If you want to add it to your footer you can do this.

Edit the footer template.

Find:

PHP Code:
<a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a> - 
change to:

PHP Code:
<a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a> - <a href="sendmessage.php?do=sendtofriend&refer=1
"
>Refer Friends</a> - 
but when I go to access: sendmessage.php?do=sendtofriend&refer=1 I receive an error message saying I do not have permission to view the page.
Reply With Quote
  #10  
Old 09-17-2007, 02:03 PM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a good "Tell-a-friend" hack here. It works great.
Reply With Quote
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 05:03 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.04728 seconds
  • Memory Usage 2,285KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (8)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete