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)

Viks 01-14-2005 12:14 AM

Hi Erwin, thanks buddy for the response... i should have been able to figure that one out... DUH!

Well, the reason I wanna block guests from refferring wud be cause the sendmail may used a nuisance by some pranksters!

Erwin 01-14-2005 01:22 AM

Quote:

Originally Posted by Viks
Hi Erwin, thanks buddy for the response... i should have been able to figure that one out... DUH!

Well, the reason I wanna block guests from refferring wud be cause the sendmail may used a nuisance by some pranksters!

Find this:

PHP Code:

// Erwin's Refer Hack 
if ($_REQUEST['refer']) 
    { 
    eval(
'print_output("' fetch_template('refertofriend') . '");'); 
    } else { 
    eval(
'print_output("' fetch_template('sendtofriend') . '");'); 
    } 
// Erwin's Refer Hack 

Replace with:

PHP Code:

// Erwin's Refer Hack 
if ($_REQUEST['refer']) 
    { 
     if (
$bbuserinfo[userid]) 
    { 
    eval(
'print_output("' fetch_template('refertofriend') . '");'); 
    }  else {
    
print_no_permission(); 
    }
    } else { 
    eval(
'print_output("' fetch_template('sendtofriend') . '");'); 
    } 
// Erwin's Refer Hack 


Viks 01-14-2005 03:32 AM

Thx Erwin.
//btw i checked "vB Color Scheme Machine"....it v.cool.

Oblivion Knight 01-14-2005 03:02 PM

Any news on being able to refer multiple friends? :)

It should be easy enough to allow e-mail addresses to be separated by a commar..

gilbert 01-16-2005 07:30 PM

Can someone please answer my question about the permissions?

Viks 01-16-2005 08:16 PM

Quote:

Originally Posted by gilbert
Can someone please answer my question about the permissions?

If I am not wrong then u need to goto Admin CP -> Usergroup Manager -> Edit permissions -> AND ENABLE "Can Use Email to Friend".

TonTon 01-22-2005 03:46 PM

good stuff, installed.

syjech 01-25-2005 03:31 AM

ugh...where'd I go wrong?

Parse error: parse error, unexpected '}' in /home/paretnet/public_html/forums/sendmessage.php on line 259

ryancooper 01-25-2005 11:42 AM

AWESOME hack Thanks Man1!!!

icest0rm 01-27-2005 04:04 PM

Quote:

Originally Posted by gilbert
Can someone please answer my question about the permissions?

I get a permissions problem as well after I upgraded to 3.0.6 and re-implemented the hack. Here's the error:

"you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

Any ideas on what could be wrong?


All times are GMT. The time now is 10:09 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.03472 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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