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

Unknown553 07-28-2002 08:15 PM

Hmm, try this:

in refer.php, find

PHP Code:

// check to see if they're logged in
if ($bbuserinfo[userid]) { 

and change it to

PHP Code:

// check to see if they're logged in 

then find

PHP Code:

} else {
    
// if guest/not logged in, show error
    
eval("dooutput(\"".gettemplate('refer_error')."\");");


and delete it all. This will give guests access to the page, but I think it will fix your problem, I removed it from my site and haven't gotten any error reports. Let me know if that works.

X-Fan 07-29-2002 02:05 AM

Still getting the error page.

Unknown553 07-30-2002 05:44 PM

Odd....Are you linking to refer.php or refer.php?action=compose? If one doesn't work try the other....

BaluX 08-01-2002 07:24 PM

would it run with 2.2.1 also ???

Unknown553 08-02-2002 04:20 AM

Yes, it should run fine on 2.2.1.

Destee 08-03-2002 10:04 PM

Unknown ... great hack and thank you!

I installed it on my test forum and it worked perfectly but when I tried doing the same on my live forum (same server), I am going directly to the error page! :( I tried the suggestions already provided, as well as going back through the steps several times. I can't see what is causing it to respond differently.

Destee

Unknown553 08-04-2002 03:52 AM

I have no idea why it works on some servers and not on others. Your situation is even more strange considering that it's the same server. I don't know what else there is to do, maybe try an uninstall and re-install? Also, did you do the optional steps? If so, which ones? Maybe that has something to do with it...

Destee 08-04-2002 04:42 PM

Unknown ... thanks for your response. Yes, my experience is really weird and very frustrating because I know this hack works and I want it on my forum!

I've uninstalled / reinstalled, all of that, and can't get it to work properly on my live forum. I even tried editing the file(s), putting the refer template content into the refer_error template (since that is the one it gets), but it didn't include any of the default text (email heading, body, userid, etc.) only the blank form, which worked but looked too much like a spammer's heaven for me to leave this way. I'm not familiar enough w/php to be twisting things like this ... so I'm going to look jealously at those who are using this as I think of something to replace my new and never used Refer Your Friends link.

Thanks Again.

Destee

ps ... I didn't do any of the optional steps.

Unknown553 08-04-2002 06:19 PM

Ok, try installing this new version 2.0. Erwin found out the problem and this should fix it. Upload the two new files (overwrite refer.php if you still have it uploaded) and copy/paste the new "refer" template. The other two templates are unchanged. Hope it works!

Destee 08-04-2002 06:58 PM

Thank You Very Much Unknown and Erwin!

It works perfectly for me now !!!!

:cool:

Destee


All times are GMT. The time now is 01:44 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.01249 seconds
  • Memory Usage 1,736KB
  • 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_php_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