vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request for a tough bit of code (https://vborg.vbsupport.ru/showthread.php?t=30125)

amykhar 10-11-2001 04:05 PM

What I need to do is possible, I just have no clue how to do it. :D

Have you ever seen the Amazon honor system box? The code, on an affiliate's server, accesses a script on Amazon's server. This script then greets the user based on their AMAZON cookie.

I need to do something similar. For a variety of reasons, my front page is hosted on one host and domain, and my forums on another. I would like to have a script on the forums server, that when accessed on the front page server, does two things:

1. It marks the user as being online on the Who's online.

2. It greets the user with their forum name on Who's online.

Anyone have any ideas on how I can accomplish this?

Thanks in advance,
Amy

Palmer ofShinra 10-11-2001 11:42 PM

While I can't give you the code forit, I can give you the basic algorithm.

See, cookies can only be read by the domain that issued them. So your main site can't read your forum cookies.

The trick to getting an off-server page to read a server's cookie is to use a frame. The frame accesses a page on the off-site server and reads the cookie.

You then need to have the off-site script read the cookie and then somehow return that info to the other page.
I can't say I'd know how to do that...


All times are GMT. The time now is 01:33 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.01066 seconds
  • Memory Usage 1,705KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (2)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