vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   HTTP_REFERER Log (https://vborg.vbsupport.ru/showthread.php?t=109190)

sde 02-28-2006 10:00 PM

HTTP_REFERER Log
 
Ever wonder where your new registrants came from? I do.

The HTTP_REFERER will be logged to a custom profile field at registration.

Instructions
  1. Add a custom profile field. Make it private so the user can't edit it.
  2. Upload the product
  3. Go to vBulletin Options -> User Profile Options
  4. Set the "HTTP REFERER Profile Field" to the custom profile field you just added. (i.e. field5)

Milesian 03-01-2006 10:14 AM

Sounds ideal. I'll install this later today

XanTrax 03-01-2006 12:30 PM

Ok so i imported it, went to the options, put 'field5' without the quotes, and nothing happened. Where do you go to view the log or whatever this is?

sde 03-01-2006 02:27 PM

A user needs to register coming in to your site from another domain. To test it, you need to clear the domain cookies, close the browser, go to another site (or search engine) to click to your site from, and register a new user.

The http_referer shows up in the user profile field. Of course it's only going to work for new registrants.

A better way to view the data would probably be ideal. I'll put some thought into that and ideas are welcome. The important thing for now is that the data is getting written to the user profile for now.

GamerJunk.net 03-01-2006 04:36 PM

Nice, Good work.

XanTrax 03-01-2006 08:34 PM

Ok I understand. So say someone comes from www.domainx.com and your on www.domainy.com where would it say that they are from domainx ?

Does it only print in the memberinfo IF they have registered from another domain?

sde 03-01-2006 09:56 PM

Whatever is in the PHP HTTP_REFERER variable when they enter your site is what will get logged upon registration. Some browsers supress this info (not many), and if they go directly to your site, it will be empty.

It's not meant for public viewing ( that would make people mad ) but rather just for your own knowledge of where new registrants are coming from.

XanTrax 03-01-2006 09:59 PM

So then where does it get logged/posted for me to view? Or at least where is the default location in the PHP HTTP_REFERER variable?

sde 03-01-2006 10:04 PM

In the user profile, where all the other user profile variables are. So practical use might be to go to 'search users', and view the most recent members, then go to edit their profile to view.

This is why I need to put more thought into the presentation of it. A quick template mod will probably do wonders for the consumption of this info.

dead7 03-02-2006 06:33 PM

Definately a nifty hack -- working great over here so far. I do have one idea, perhaps when it shows in the users' profile it could have the URL within a textarea field.

I've got some referrers that are very long on the newly registered users and it just completely destroys the profile page of the user. I realize only admins can see it but it would be good if we could just have it in the textarea box. This way it would word wrap nicely and be contained for copy/paste etc..

Definately a great start on it, very clever and thanks for your time making it.


All times are GMT. The time now is 11:50 PM.

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.01056 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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