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-12-2002 11:19 PM

Nope. You need to start over and properly set up ALL the templates and properly edit referbbtofriend.php file.

NOTE: if you previously installed the "redirect" version but wan't to use the JS pop up version, please start over and download the last zip in this thread :)

At the conclusion of a submit you see the template named:
referbbsentemail_thanks. Check the screen capture I posted today. It works perfectly.

SirSteve 01-12-2002 11:25 PM

I feel stupid... I guess I jumped the gun again. :)

Thanks!

Lucky 01-13-2002 03:17 AM

Great idea!

Loving this one.

Thanks.

Stretchr 01-13-2002 08:53 AM

Hope this isn't a stupid question but is there a way to place this link on the login page, without a user being in a thread? We're going to run a contest but, as a new board, it would be nice to be able to place a referral link there when a user logs in. Thanks :D

Lucky 01-13-2002 02:56 PM

I like that idea.

Steve_S 01-13-2002 03:31 PM

I like the idea but the .php file would need additional hacking so it does not require "&threadid=$threadid" With additional hacking you could place it anywhere as you suggest.

Anyone?

Stretchr 01-13-2002 03:52 PM

That was the problem I ran into. The only way I could think to do it was to make a separate hack, otherwise, modifying the php file would then disable the original hack. Maybe this would be a good suggestion for the next version of VB. Certainly seems like a feature a lot of folks could use.

Stretchr 01-13-2002 03:54 PM

BTW, thank you for this excellent hack. It really is useful. :)

Steve_S 01-13-2002 04:43 PM

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.

Stretchr 01-13-2002 05:23 PM

Great! Thank you once again! :)


All times are GMT. The time now is 01:46 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.01042 seconds
  • Memory Usage 1,726KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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