Go Back   vb.org Archive > Community Central > Community Lounge
  #1  
Old 01-03-2002, 05:15 PM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ...
Reply With Quote
  #2  
Old 01-08-2002, 01:35 PM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(Must be very difficult, i think.)
Reply With Quote
  #3  
Old 01-09-2002, 01:34 PM
Chamber's Avatar
Chamber Chamber is offline
 
Join Date: Oct 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 03-22-2002, 01:28 AM
thehobbyforum's Avatar
thehobbyforum thehobbyforum is offline
 
Join Date: Mar 2002
Location: Los Angeles
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same problem can anyone help??
Reply With Quote
  #5  
Old 03-28-2002, 11:41 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 04-02-2002, 03:37 PM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 04-14-2002, 12:39 PM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:06 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.03684 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete