vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Integrating VB user list with other associate programs (https://vborg.vbsupport.ru/showthread.php?t=74045)

docvader 01-09-2005 03:58 AM

Integrating VB user list with other associate programs
 
I'm trying to get my chat program to work with my VB user list. It calls to the VB user list, to take the names of the members automatically, when they enter the chat. This is what the I have my chat program calling to:
Quote:

document.write(" <param name = nickname value = '$fileusername");
In the template phpinclude_start, I have the following:
Quote:

$fileusername = "bbuserinfo[username]";
I think that the two programs are not communicating, because my chat program is not within the vbulletin directory; it is in the main web root, alongside it.

What code would I put, where, to have the chat program (lives at x.russbo.com/hubz/) call to the vbulletin user base (lives at x.russbo.com/vb/)?

Thanks!
rich

Marco van Herwaarden 01-09-2005 07:50 AM

Change into:
PHP Code:

$fileusername $bbuserinfo['username']; 


docvader 01-09-2005 05:19 PM

Thanks. Didn't notice that. But, my chat program is identifying users as $fileusername instead of the vb usernames. I think, it has to do with the fact that my Hubz chat is not located within the vbulletin forum directory. It is in the web root, alongside vbulletin. (./hubz/ and ./vb/ ; not ./vb/hubz/)

Would I code this change into the phpinclude_start templates, or, into the Hubz chat javascript, the relevant line of which is the following:

Quote:

document.write{" <param name = nickname value = '$fileusername'>");
And what change would that be, for Hubz to call within the vbulletin directory?

I think you can see now why $fileusername is showing in my chat window; it can't seem to find the phpinclude_start to pull up the member's user name from the database.

Thanks! Appreciate the help.
rich
http://x.russbo.com/vb/index.php


All times are GMT. The time now is 01:22 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.01145 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_quote_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