vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Tell A Friend + Automatic Referral Code (https://vborg.vbsupport.ru/showthread.php?t=34031)

Steve_S 01-13-2002 06:14 PM

This hack is really meant for members who must be loged in. I think this is your issue. Log in and test. Set forum permissions appropriately for Guests so they can't use this form.

HTH

Myke O 01-13-2002 08:22 PM

your missing two semicolins in that script code

Lucky 01-14-2002 01:36 AM

Quote:

Originally posted by Steve_S
You welcome. Your idea is implemented :)

Issue resolved and tested with the JS version. Permits you to place the JS link anywhere you wan't

1. Remove the next 2 lines from referbbtofriend.php

Code:


$threadid = verifyid("thread",$threadid);
$threadinfo=getthreadinfo($threadid);

2. Edit the JS link to read:

Code:


var popurl="referbbtofriend.php?s=$session[sessionhash]"

Place the new JS code anywhere you want and loged in user can use it.

Thanks:)

nafae 01-15-2002 04:33 PM

Ok thanks I got it working! (THX for clarification)

Stretchr 01-15-2002 08:21 PM

You need to look closely at the instructions again. Those are TEMPLATES, not files and referbbtofriend.php is originally sendtofriend.php which you edit and rename and which comes with vB. It gets confusing sometimes, especially when you run into templates named similarly to files. Once I went through carefully and followed the instructions exactly it works great! HTH

Stretchr 01-16-2002 01:44 AM

How do you retrieve the information on the referrals? Does it use the same table as the original referrals under Users in Admin CP?
Thanks to nafae for reminding me to ask an obvious question :D

nafae 01-16-2002 01:57 AM

When I tried to refer someone, they registered, then when i check that referal thing in the admin cp it hasnt changed.. "no referrals for that time period"

hondastyle 01-17-2002 02:02 AM

I just installed this hack on my boards.... verrrrry nice... Now I don't have to keep answering the same question over and over ('how do I get credit for referring somebody... how can I make a direct link to get referral credit..) lol...

Great job - js version is very nice. Thank you for this.

Chris

Steve_S 01-17-2002 04:35 PM

The compliment to my "hacklette" is written by a real coder.

His royal hackness FiireFly. See:

https://vborg.vbsupport.ru/showthrea...threadid=25173

Iv'e not installed his hack but it looks like it lets' you put all the referral data on your board which will continue to encourage folks.

The referral code in my hack works perfectly. Log in and try it. Depending on your Forum Permissions for guests. See member hondastyle Board and thats the way it;s supposed to work.

Note: You can also put the referral link in your email templates and user cp if you wan't to remind your members.

Gutspiller 01-30-2002 08:50 PM

I noticed when I tested this that when the person receiving the email it says something like "blahforum mailer" Is there a way to replace this with the variable that was placed in the "Send To:
(Person's Name)" field? This way they don't think it's a forum mailer and delete it? If this is possible it would be really cool.

Thanks.

BTW if anybody wants to see a demo they can check out my tweaked version of it here:

http://www.theforumz.com/forumz/index.php

You can see it a little lower than the top right. It doesn't work perfectly if you aren't registered, but you still get the idea. Mine is modified a good deal as well.


All times are GMT. The time now is 06:55 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.01248 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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