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)

MindTrix 01-16-2004 05:32 PM

Erwin, is it just me, or would everytime someone use this, it gives referer points to the Admin because you got

sendtofriend&refer=1

or am i mistaken?

Erwin 01-16-2004 06:38 PM

Quote:

Originally Posted by MindTrix
Erwin, is it just me, or would everytime someone use this, it gives referer points to the Admin because you got

sendtofriend&refer=1

or am i mistaken?

You are mistaken.

The referrerid is the userid of the person using the form. :)

Mr. HillBilly 01-20-2004 08:57 PM

Quote:

Originally Posted by Mr. HillBilly
Hey erwin, I was just viewing the Refer page and noticed this:

Page generated in 0.08029 seconds with 7 queries (2 queries for uncached templates)

2 Uncached templates... How would I make them cached?

Erwin?

Oblivion Knight 01-23-2004 12:59 PM

Quote:

Originally Posted by Mr. HillBilly
Erwin?

Since you have 2 uncached templates, I'm guessing the code has changed slightly between the version of vB3 you are using and RC3. In RC3 I had 1 uncached template and I did this:

In sendmessage.php
Find:
Code:

$globaltemplates = array(
        'mailform',

Add below:
Code:

        'refertofriend',
Awesome mod Erwin, thanks for sharing.!

Osterling 02-06-2004 08:43 AM

when i install this when click the link i just got an emtpy page.. :confused:

Big Kahuna 02-29-2004 07:01 PM

This is what I'm getting when I click it on my test forum




Quote:

vBulletin Message
BK, you do not have permission to access this page. This could be due to one of several reasons:
  1. 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?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.



Any idea what I did wrong?

Big Kahuna 02-29-2004 07:11 PM

Never mind -- I retraced my steps for the third time and it worked. However I screwed up -- I managed to do it twice.

Great Hack

Installed

Thanx

coldpride 03-01-2004 01:59 AM

Nice hack and good instructions.. Very usful for some upcoming contests

Evil Chris 03-04-2004 05:02 PM

Thank you Erwin. Installed. :)

hXc Radio 03-06-2004 10:05 PM

I redid the hack three times but still get Parse error: parse error in /home/******/www/forum/sendmessage.php on line 248

I have

PHP Code:

    //    $foruminfo = fetch_foruminfo($threadinfo['forumid']);

    
$forumperms fetch_permissions($threadinfo['forumid']);

// Erwin's Refer Hack 
if (!$_REQUEST['refer']) 

if (!(
$forumperms CANVIEW) OR !($forumperms CANEMAIL) OR (($threadinfo['postuserid'] != $bbuserinfo['userid']) AND !($forumperms CANVIEWOTHERS))) 

print_no_permission(); 


// Erwin's Refer Hack

    // check if there is a forum password 


OTHERS)))
line 248 ---->>> {
print_n


All times are GMT. The time now is 04:17 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.02744 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_code_printable
  • (1)bbcode_php_printable
  • (4)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