vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Passing session in request to external script - how? (https://vborg.vbsupport.ru/showthread.php?t=80298)

Spinball 04-21-2005 02:10 PM

Passing session in request to external script - how?
 
Hi folks,
I have my own ad banner serving script which in showthread does a
PHP Code:

$userip $_SERVER['REMOTE_ADDR'];
$headerbanner file_get_contents("http://www.mydomain.com/ad_serve.php?zoneid=" $forumid "0&ip=" $userip) . "<P></P>";
$footerbanner file_get_contents("http://www.mydomain.com/ad_serve.php?zoneid=" $forumid "1&ip=" $userip) . "<P></P>"

Which serves different banners at the top and bottom of the SHOWTHREAD template depending on the forum. It also records every banner shown in a table and when it shows a new banner, it picks the one in the pool for that location which has been seen least by that person (i.e. ip address).
It works fine, but I have a potential customer who only wants to show his banner once per session.
If I pass the vB session as part of the query string, what code would I have to use and how big a field would I need to store in the database (would it be varchar 32)?
TIA

Ok I figured out that it needs to be ?" . $session['sessionurl'] . but when I put this into showthread, it doesn't have a value. Which is very curious.
Can anyone help, please?

Spinball 04-22-2005 04:36 PM

Obviously not an attractive enough request - mods please close - I'll try again with a different title

Marco van Herwaarden 04-22-2005 06:43 PM

Closed on request.


All times are GMT. The time now is 05:58 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.02991 seconds
  • Memory Usage 1,721KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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