vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Embedded chat (https://vborg.vbsupport.ru/showthread.php?t=36651)

ThoughtDiver 05-02-2002 08:10 AM

I've got the chat integrated... I have a menu choice that when I click it, it opens a new window (using target=_blank) but I'd like for the new window that pops open with the embedded chat NOT to have the left column.

I've tried to incorporate the following:
http://www.phpportals.com/forums/sho...no+left+column

But I can't seem to get the left column to disappear by adding the lines into chat.php. I tried, as a test to make sure it works, editing download.php and it removed the left menu without problem. No matter what I do, though, I can't remove the left menu for when my users go to "Chat".

I'd like to pop open the new window with chat and just the site's header and footer and no menu options to confuse the user - so they can chat and surf and not be tempted to hit a menu choice on the open chat window.

-Scott

wot-Mike 05-02-2002 10:00 AM

It must be a vB Portal thing, because I honestly don't have a clue what you are talking about :(

And that link won't allow me...

Quote:

Originally posted by ThoughtDiver
I've got the chat integrated... I have a menu choice that when I click it, it opens a new window (using target=_blank) but I'd like for the new window that pops open with the embedded chat NOT to have the left column.

I've tried to incorporate the following:
http://www.phpportals.com/forums/sho...no+left+column

But I can't seem to get the left column to disappear by adding the lines into chat.php. I tried, as a test to make sure it works, editing download.php and it removed the left menu without problem. No matter what I do, though, I can't remove the left menu for when my users go to "Chat".

I'd like to pop open the new window with chat and just the site's header and footer and no menu options to confuse the user - so they can chat and surf and not be tempted to hit a menu choice on the open chat window.

-Scott


ThoughtDiver 05-02-2002 03:42 PM

Yeah, it's a vbportal thing. Sorry for the confusion. To me, vbportal and vbulletin are integrally tied together. :ermm:

Was hoping someone else here had run into the same issue, but should have put more details in my post. :nervous:

-Scott

wot-Mike 05-02-2002 06:39 PM

I know nothing about vbportal, so I can't help you. Maybe the people there can help out with this. The chat script is pretty simple, so that shouldn't be a bother.

If you get some solution for this, then please let me know (in details ;) )

tkeil69575 05-02-2002 06:49 PM

Hi ThoughtDiver,

im using vBportal too but I dont have your problem because I dont use the side menu in the forum.

The problem is, that your complete forum is using the themeheader from vbportal, so you'd want to create a different header (maybe manually in chat.php) or allocate a different themeheader for the chat.php

regards Tina

ThoughtDiver 05-02-2002 07:54 PM

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. :confused:

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:

ThoughtDiver 05-03-2002 09:01 PM

When the chat is working, it works GREAT... but a fair percentage of the time, when you click on the link to open the new window with the chat integrated into it, you get the "Welcome" audio clip but the only thing that loads up is a blank rectangle with the custom background color of the chat app. Closing down and reclicking the link or pressing F5 to refresh the window will normally fix it, but sometimes you have to do this multiple times.

Any ideas? I'm using raidersoft's pro sigmachat.

Thanks,
Scott :ermm:

wot-Mike 05-03-2002 10:27 PM

This is the first time I hear of this.
Does this only happen to you, or all your users?
And what kind of OS are you using? Microsoft is not good in supporting java. What you could try (if you haven't already) is get java support from the source, and maybe that will help.
http://java.sun.com/j2se/1.4/index.html

dawl 05-05-2002 12:17 PM

any updates on the who's in chat portion ?? My users are driving me crazy with this !!

ThoughtDiver 05-05-2002 05:25 PM

Wot-Mike - Just launching the site so not a lot of users, but we've gotten it on several test boxes pretty consistently. I tried putting the pop up window brining up just a normal HTML page sized to what I want and THEN a link to chat from that Window. I was trying to seperate the chat from the javascript to pop open the new window to see if it made a difference. Nope. Right-clicking and choosing refresh seems to be the best way to make it work. I'm working with Chris at raidersoft to try and figure out what the deal is... they are REALLY helpful there supporting their product.

Odil 05-06-2002 12:39 AM

Quote:

Originally posted by wot-Mike
This "hack" will allow you to run a semi-integrated (free or paid) chat room "inside" your forum:

+ It's quite generic and should work with several chat providers (made a seperate template, just for the applet code)
+ The chat room will be displayed within your forum's structure,
+ The chat applet will be sized according to the user's screen resolution (could get scary at 1600x1200 :eek:)
+ People will be logged into the chat room using their forum usernames (if the chat supports auto-login)
+ Invalid characters in usernames will be replaced before logging in to the chat, plus too lengty names will be shortened
+ Easy installation :)

- At this time there's no feedback from the chat room to the forum. A "chat monitor" is planned though (version 2)

The install docs and template examples are mainly focussed on the chat provider we use (http://www.raidersoft.com), but it shouldn't be a problem adjusting one or two things to get this thing to work with your own chat provider.

The sizes of the chat applet haven't been tested out fully. I have no clue how bigger resolutions work out. All the rest seems to work fine.

Hope you like it...

[update 1.4]Sizes can now be set more easily, just by editing the chatredirect template, nothing else.
Added support for raidersoft's ICE, which is more flexible with usernames.

Excellent chat, I have it working with no problems on my board. I just have no clue how to force the chat to login people using their VB names. It prompts people to enter a nick. I have my chat setup so people just click on "chat" and it calls up the chat.php.

What do I need to add to set the login names automatically? Chat uses Raidersoft.

Thanks!

Kim :cool:

FWC 05-06-2002 01:12 AM

Quote:

Originally posted by Odil
What do I need to add to set the login names automatically? Chat uses Raidersoft.
If you have Verify Handle set to off in the chat room this happens automatically in chat.php. I'm not sure what the problem could be.

dprice 05-07-2002 02:40 PM

Just noticed that this hack disables the RIGHT-CLICK menu? How would users adjust their font size now?

Is there a "/" command for fonts since right-click no longer works?

tkeil69575 05-07-2002 04:16 PM

hi dprice,
I dont think the hack has anything to do with the fact that the right-click no longer works. I think that a raidersoft problem. Its the same with me.

If you change

<applet codebase="http://freechat.raidersoft.com" archive="scclient4.zip" code="Client.class">

to

<applet codebase="http://freechat.raidersoft.com" archive="scclient.zip" code="Client.class">

then the fonts will work with right click, but it will also allow the users to logout and then they would be able to login again using a different name.

grettings tina

ThoughtDiver 05-07-2002 08:12 PM

I talked with Chris at raidersoft and that is true. The scclient4 does not allow the right-click for font change.

They are also planning on coming out with some updates in a month or so from what I gathered.

dprice 05-08-2002 12:59 PM

Thanks for the info guys.

I did not want the logout buttonfor security reasons. Dont want other members using screen names not belonging to them, therefore I use the autologin feature.

My fix for the small fonts was to login to Raidersoft.coms control panel and under General options, you can make the font 16 standard for all users. Alot bigger than the default.

Where the problem now lies is if a user opens up a new window while in the chat room, the auto-login process will fail due to user already being logged in on other window.

The system will now ask them to enter a name/handle. They can now type whatever they want. What I have done is went into Raidersofts control panel and created account names that I wanted protected (IE. admins/moderators). If a user tries to use one of these names, they will be forced to enter a password.

Is there a way around this? Would like for it to keep looping and force them to close the second chat window. Is there an option or a script that I missed inserting?

Thanks in advance

|-Last-Spirit-| 05-08-2002 01:10 PM

Ok, I got quite some problems here, could someone just write 1 hack instead of letting people mix 2 versions ?

I have a registered irc channel so I don't need one like raiden thingie. So I used jpilot...

Now I installed the "embedded hack" the original thread this was about. That till the point is asks refers to the other hack "jpilotchatembed.zip" for the last template. Then I ignored the start of that hack (as they ask to upload the same stuff I already uploaded from the first hack) and edited my "template_chatbit_without_serv_options.txt" file and used it in the redirect template.

The chat.php included in the second hack screws everything up so I kept using the chat.php from the first hack. The window loads, all the buttons and stuff, but the chat area stays gray and when I choose a room it doesn't do anything, also my browser says it loaded the page but with errors.... and it says something like "class not found" so cound someone plz make 1 installation instructions to set up a embedded chatroom with jpilot with all files you need included (so don't refer to other hacks)

TNX A LOT !!!

wot-Mike 05-08-2002 08:30 PM

Quote:

Originally posted by dprice
...Is there a way around this? Would like for it to keep looping and force them to close the second chat window. Is there an option or a script that I missed inserting?...
In short, unless you set up user accounts within chat, and require valid usernames, then no, there's nothing you can do to stop people from logging in a second time with a different username. I think I stressed a couple of times that the least anyone should do is to set up password protected accounts for admins and mods.
I was thinking about a solution for this, but with my chatroom, very occasionally people get disconnected while they remain logged in in the chat. By entering a different name they can always come back in. Any disconnected usernames will be released after 15 minutes I believe.

I also haven't had time yet to work on the "who's in chat". I'm really bothered by that, but I cant help it :(
Think that when it will be there, it will contain an option to keep people from firing up the thing twice.


And I can't help with the jpilot thing. I know nothing about it :(
The simplest tip I can give is:
suppose you build a html page within the forum structure to hold the chat room, then all the chat specific code that you normally put in the html page, can be placed within the chatbit template. Maybe with a little work, but all output by the forum is just html anyway. The chatbit template is inserted between <TD> tags :)

BrAinZ 05-09-2002 08:46 AM

Thanks for this GREAT hack.. really appreciate it !!

One question I have though, is that I want to open the Chat in a resizeable window WITHOUT my normal HEADER stuff showing at the top.. BUT with my users auto logging in.

Any ideas on how this can be done?

wot-Mike 05-09-2002 01:50 PM

Edit the chat template. That defines what the page looks like. People will still be auto-logged in :)

And you can resize the window anyway, but you can't resize the chat applet itself without logging out and in again. If people want a different sized applet, then all they have to do is play with the "setheight=" and "setwidth=" settings in the url, and hit enter. This will reload the applet with the sizes they've specified

Nam 05-10-2002 08:08 AM

Hi wot-Mike, seems to everybody this is great hack, however I'm wondering if it's display how many users in the chatroom, something like:

There are 5 member browsing the forum
There are 2 member in the chatroom.

Thanks,

dawl 06-04-2002 11:54 AM

Is there any update on the "who's in chat" portion of this ?

wot-Mike 06-06-2002 08:23 PM

Darn! I really thought I'd replied, but it's not here :(

Anyway, I'm running a new version, which shows who's chatting, and it works for most part. But it's still very raw, and there's some stuff I want to add. Give me another week to finish this, or at least finish the main thing. More features could be added later on.

This won't be a simple hack like the current 1.4 or 1.5 version (whichever, I forgot :D ). vBulletin files will need to be edited, and the database will need to be altered slightly.

Anyway, the core of it is similar to the digichat hack with the semi-live who's online. I even wonder if it would be an idea to combine efforts and make one awesome hack for chat purposes. Well, I'm working on it at least.

BrAinZ 06-06-2002 09:51 PM

Been using this hack for a month or so now.. Excellent.. THANKS!

The "Who's Chatting" feature would be a real help though.. Can't wait for one of you Boffs to work it out ;)

Gazer 06-07-2002 03:27 PM

Could someone please tell me where this file goes now i have added the room No : Look at the "template_chatbit_sigmachat.txt" for an example (replace XXXXX with your room number)
I have done that but were does it go now ???
As when i click onto the chat button all i have is a blank screen.
Any ideas thanks
Gazer.

joergh 06-08-2002 02:42 PM

Quote:

I talked with Chris at raidersoft and that is true. The scclient4 does not allow the right-click for font change.

They are also planning on coming out with some updates in a month or so from what I gathered.
Hi,

is there a german client, that also does not allow the right click? At the moment i have scclient6_de. There you can "logout". I tried scclient1-6_de but no success....

Thanks for your time in advance

joergh

wot-Mike 06-09-2002 10:21 AM

Quote:

Originally posted by Gazer
Could someone please tell me where this file goes now i have added the room No : Look at the "template_chatbit_sigmachat.txt" for an example (replace XXXXX with your room number)
I have done that but were does it go now ???
As when i click onto the chat button all i have is a blank screen.
Any ideas thanks
Gazer.

Gazer, RaiderSoft has updated their chatclient to a newer version, and it uses different settings. The "old" chatbit examples don't work anymore. Best thing to do is to log in at RaiderSoft and click Link Instructions.
But here's an example anyway:
PHP Code:

<applet code="Client.class" codebase="http://freechat.raidersoft.com" archive="scclient6_en.zip" width=$setwidth height=$setheight>
   <
param name="port" value="9002">
   <
param name="room" value="XXXXX">
   <
param name="canvaslength" value="2000">
   <
param name="lang" value="en">
   <
param name="layout" value="std"
   <
param name="lopt" value="s+t+a+c+h+d+">
   <
param name="urllist" value="true">
   <
param name="subroom" value="true">
   <
param name="username" value="$username">
   <
param name="exitURL" value="http://yoursite.com">
</
applet

Two things to change here:
XXXXX = your roomnumber
http://yoursite.com


Joergh, what exactly are you looking for? A client without a logout button and where you can change fonts?

joergh 06-09-2002 02:36 PM

@wot-mike.

I am looking for a german chat client like english scclient4 which does not allow right-click/to logout.

I tried t o switch to scclient4 but there are (of course) english buttons and so on. Same thing in german layout :)

best regards

joergh

wot-Mike 06-09-2002 03:20 PM

Think something like this hould be used in the chatbit then:
<param name="lopt" value="s+t+a+c+h+d+l-">

l- removes the logout button, I guess

What's also a possibilty in sigmachat 6 is this:
<param name="exitURL" value="javascript: window.close()">

That would make the logout button close the chat window

joergh 06-09-2002 05:13 PM

Thank you! I removed the logout button. It works :)

joergh

BrAinZ 06-09-2002 08:48 PM

Hmm.. Your right the new version doesn't work :(

You still seem to be able to use the older version though.. Looks exactly the same, I wonder what the difference is?

wot-Mike 06-10-2002 09:04 AM

Hey, the above chatbit example is based on the Professional Chat. I don't know if there are different settings for the free version. The best way to get the right settings is to simply check the Link Instructions in your RaiderSoft account. Main thing to check is the port value I think.
Try it with the exact RaiderSoft Link Instructions at first. And if that works, then replace some of the contents of chatbit with the variables $setwidth, $setheight and $username.

If everything checks out, and it still doesn't work, then I think you should contact RaiderSoft about this.

TheWulff 06-10-2002 10:16 PM

wot-Mike, installed this and works great ! Only problem is it doesnt show up who's in chat, any ideas ?

wot-Mike 06-10-2002 10:48 PM

One idea:

wait on the version that actually has a Who's in chat ;)
It's ready enough now, so very soon...

TheWulff 06-11-2002 02:03 AM

OH!!! ;o) Sorry I assumed this one had it, looking forward to it. Thanks for this is a great addition to our board.

Ghostsuit 06-11-2002 12:58 PM

Quote:

Originally posted by wot-Mike
One idea:

wait on the version that actually has a Who's in chat ;)
It's ready enough now, so very soon...

Oh you tease I've been waiting for this for ages the sooner the better. :D I love this hack so much and sounds like it's just going to get better.

jbear6 06-12-2002 02:07 AM

Thanks man, this is a great hack. Easy to install, and works like a charm. Thanks again!

Jbear6

dawl 06-18-2002 06:15 PM

sooon ?? <G> Can ya tell i'm impatient ? LOL

Gazer 06-18-2002 09:32 PM

Quote:

(wot-Mike) But here's an example anyway:
Thanks for the help m8
i will have a look into it now ;)

Regards Gazer.

Gazer 06-18-2002 09:32 PM

Quote:

(wot-Mike) But here's an example anyway:
Thanks for the help m8
i will have a look into it now ;)

Regards Gazer.


All times are GMT. The time now is 03:02 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.01540 seconds
  • Memory Usage 1,863KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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