vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Referral problem on non-vb-page (https://vborg.vbsupport.ru/showthread.php?t=33769)

Meta 01-03-2002 05:15 PM

My problem looks as follows:

We have a domain ... it's named www.sphex.net ... and we have our vBulletin-Board ... on www.sphex.net/newzones

Most of the times if anybody makes a link to us he links to www.sphex.net ... the main page instead of the boards homepage.

So in e.g. vBstats the referrer is www.sphex.net ... instead of the real origin. Also so referral system won't properly, i'm afraid.

So what can i do to solve this? One of my ideas is to put a part of vBulletin-Code into the index.html on www.sphex.net ... the part which will vBulletin cause to notice somebody has arrived.

But i don't know which part it is.

So if anybody knows what i need ... or has an even better idea ...

Meta 01-08-2002 01:35 PM

(Must be very difficult, i think.)

Chamber 01-09-2002 01:34 PM

Why not just use your servers log files to look at referrer?

Or, better still, remove the front page - it seems to serve no real function that you couldn't buid into the header, your boards look prettier!

thehobbyforum 03-22-2002 01:28 AM

Same problem can anyone help??

filburt1 03-28-2002 11:41 PM

Quote:

Originally posted by Meta
(Must be very difficult, i think.)
It sure is. The HTTP headers AFAIK only send the last URL, provided you came from one (i.e., not a blank window). So this will only show the last page, and AFAIK there's no way around it (think of the privacy implications):
PHP Code:

print $HTTP_REFERER

I believe that $HTTP_REFERER only works on Apache as well, but those IIS users are silly anyway :p

Meta 04-02-2002 03:37 PM

Me thinks, there has be a much easier way.

What is the way vBulletin notices, that someone did arrive?

That's the only point ... me thinks.

How can i declare a html-file to be a vBulletin-page?

I think, there is some kind of code in the index.php ... so i put it on our title-screen ... and that's it. I hope.

That was my question.

Of course we can drop our title-screen ... but we like it and so we will not. What we want is to do a little part of code in it ... so it does like the index.php: Telling the database, that somebody has arrived ... and from where.

But ... thank you for your help as far!

Meta 04-14-2002 12:39 PM

At last it was in fact a very small problem.

I found a hack called Homepage Login on non-vB page ... which does what i wanted. (And a little bit more.)


I guess, te secret lies somewhere in those two lines:

PHP Code:

chdir($DOCUMENT_ROOT "/newzones");
require(
$DOCUMENT_ROOT "/newzones/global.php"); 

Don't know, if it's true ... (me = very little hacker) ... but it works as desired.


Thank you for the audience!


All times are GMT. The time now is 02: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.01026 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete