Thread: Embedded chat
View Single Post
  #87  
Old 05-02-2002, 07:54 PM
ThoughtDiver ThoughtDiver is offline
 
Join Date: Apr 2002
Location: Fort Wayne, IN
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... I got what I needed to work. I'll try and spell it out in case it is useful for someone else.

I fun vbportal integrated with vbulletin. I added the javachat integration with the pro version of sigmachat from raidersoft.com.

I have a link to chat off my main page. This takes me to the integrated chat in my site and I have it pop up in a new window by using target=_blank in the link.

Since I do have the left column menu operational in my forums area and since the chat is integrated into the forums section, my goal was to get rid of the left column menu ONLY for the chat window.

Why? Because users would click on the visible menu options in the left colum and go to another page on the site, taking them away from the chat session and dropping them from chat. What I wanted was my vbportal/vbintegration site in one browser window, and the chat session in a different browser window with all the menu options not visible to the user so the chat windows was essentially a floating chat window from the moment the user chose to click on the chat link. Okay... way too long of an explanation... but didn't know how to say it otherwise.

What I did - and this may require some familiarity with vbportal. This effectively removes the left column completely from whatever script you edit in part (1).

(1)
At the top of my /forums/chat.php file, I added the following lines:
----------------------------
global $leftcolumnoff;
$leftcolumnoff=1;

(2)
Within the vbp_includes.php file in my root directory, I added an if conditional statement as follows:
----------------------------
// mod - putting below original code in an if statement
global $leftcolumnoff;
if (!$leftcolumnoff) {
// mod

// original code follows
if ($Allow_Forum_Leftcolumn==1) {
if (($bbuserinfo['userid']!=0 and $bbshowleftcolumn)or ($bbuserinfo['userid']==0 and

$Forum_Default_Leftcolumn==1)){
include($nukepath . "/language/lang-$language.php");
require($nukepath . "/includes/forumblocks.php");
forumblocks(left);
if ($action==newreply or $action==newthread or $threadid !=0){
$themeleftcolumn ="";
$closeleftcolumn ="";
}else{
eval("\$themeleftcolumn = \"".gettemplate('P_ForumLeftColumn')."\";");
$closeleftcolumn = "<br></td></tr></table>";
}
$switchdisplay="| <a

href=\"$nukeurl/user.php?s=$session[sessionhash]&action=switchdisplay\"><b>Hide

Leftcolumn</b></a>";
}else{
if ($bbuserinfo['userid']!=0){
$switchdisplay="| <a

href=\"$nukeurl/user.php?s=$session[sessionhash]&action=switchdisplay\"><b>Show

Leftcolumn</b></a>";
}else{
$switchdisplay="";
}
}
}else{
$switchdisplay="";
$showleftcolumn =0;
}
// end original code

// mod
}
// mod - putting above original code in an if statement

Happy Happy.
Now Sleep.
:tired:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01153 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete