PDA

View Full Version : Module to add FlashChat to your vBAdvanced


Pages : [1] 2

Natch
09-22-2004, 03:47 AM
OK - here's a quick job of it - you should play around with the height sizing of the iframe and the table cell to match your forum style.

Create a new template adv_portal_flashchat

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat">
<strong><span class="smallfont">$vba_options[portal_blockbullet] $vboptions[bbtitle] ChatRooms</strong></span>
</td>
</tr>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%" height="600">
<tr>
<td class="alt1">
<div align="center"><iframe src="$vboptions[bburl]/FlashChat/flashchat.php" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></div>
</td>
</tr>
</tbody>
</table>
Then make a new CMPS page with Title FlashChat, Identifier chat and Template adv_portal_flashchat - then set it up however you like and link to it with $vboptions[homeurl]/?page=chat

This has been deliberately not made collapsible cos if you collapse the FlashChat module it will log you out ;)

Natch
09-22-2004, 04:06 AM
Additional: to make your vBulletin menus drop-down over the top of your FlashChat window, use this modification to your inc/flashChatTag.php file:

Find: $tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\"></EMBED>";
Replace with: $tag .= "<PARAM NAME=\"wmode\" VALUE=\"transparent\" />";
$tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\" wmode=\"transparent\"></EMBED>";

Our Sponsors
 

KW802
09-22-2004, 08:59 AM
Natch, for those of us not familiar with the app, do you have a URL for reference? :)

Fiber
09-22-2004, 08:59 PM
Here you go

http://www.mobileforces.org/?page=chat

The script is offered here for $5

http://tufat.com/script.php?script=chat

If you are not a member of Natch's board you can go here to check out a demo of the script.

Just make up a username and password.

http://www.easterpig.com/demo/flashchat/default/

Note Natch's mod above is for the Flashchat to open inside a browser page and the demo link post is not.

Fiber

Our Sponsors
 

pdatotaal
09-23-2004, 10:12 AM
Works! Thanks!! Looks great in window

yinyang
09-25-2004, 03:02 AM
natch - awesome job. is there a way to make a module that will tell you who's in the chat room live without having to click it or any info.php pages?

Fiber
09-26-2004, 01:22 AM
Yinyang there is one over at vbtemplates.com.

Graham
09-26-2004, 07:53 AM
Downloaded the script, followed the instructions but have this error:

Warning: Failed opening '/home/httpd/vhosts/nield.com/httpdocs/includes/config.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/nield.com/httpdocs/flashchat/inc/cmses/vbulletinCMS.php on line 4

anyone?

Graham
09-26-2004, 09:30 AM
No longer an issue, for those you might run into the same problem you need to make some changes to the vBulletinCMS.php file:

change this.

//include(realpath(dirname(__FILE__) . '/../../../') . '/includes/config.php');

include( '../../includes/config.php' );

to this:

include(realpath(dirname(__FILE__) . '/../../../') . '/includes/config.php');

//include( '../../includes/config.php' );


all credit goes to Fiber

Graham
09-26-2004, 02:46 PM
Seam to have another prob, been trying to fix this but its driving me mad :eek: , I´m loged in to my test site following the link to chat bellow, it loads than kicks me and gives me a "page can not be displayed" message!!!

this only happens from a CMPS page when I follow the normal link it works, but still can not log out of my site

I´ve have .nield.com in admin cp for cookies set,


NORMAL LINK: http://www.nield.com/forum/flashchat/flashchat.php

CMPS LINK: http://www.nield.com/index.php?page=chat

user name:test
password:test

Fiber
09-26-2004, 04:35 PM
works fine here on both

dieselpowered
09-29-2004, 06:51 PM
LOL I am sorry, maybe I have been on the comp too long today, however, I do not understand the instructions??

Can you please clarify.

Thanks!

Mike

Fiber
09-29-2004, 07:58 PM
What part do you not understand seems very clear to me?

Graham
09-30-2004, 11:34 AM
Fiber,

The links I posted work on my other PC!! plus I can Log in and out no probs, I must have a prob with PC :( weird...... get page can not be displayed.

dieselpowered
10-01-2004, 06:18 PM
What part do you not understand seems very clear to me?

LOL pretty much this part:

Then make a new CMPS page with Title FlashChat, Identifier chat and Template adv_portal_flashchat - then set it up however you like and link to it with $vboptions[homeurl]/?page=chat

I am sorry, I do not mean to be an idiot! :confused:

Mike

Fiber
10-02-2004, 12:01 AM
This is what it means:

Make a New page for VBA CMPS (AdminCp>VBA CMPS>Add Page)

Page Title: FlashChat

Page Identifier: chat

Page Template: adv_portal_flashchat

Select which modules you will include in the page. (more thatn likey none is a good idea.

Click Save and done.

This is what you use to link to that page, whether you put it in the Navbar or wherever you compile your links.

$vboptions[homeurl]/?page=chat


Hope that does it for you.

lieutan
10-04-2004, 01:21 PM
Installed, thx!!!

Was there a way to add it to who's online loc?? Or am I a dunny and missed that part?

Fiber
10-04-2004, 04:45 PM
http://www.vbulletintemplates.com/mods/showthread.php?t=7087&highlight=flashchat

dieselpowered
10-05-2004, 11:53 AM
Fiber thank you for the help my friend! Works like a champ...

The only issue I am having is trying to get the "Whos in Chat" hack to work ;)

Fiber
10-05-2004, 01:12 PM
Whats wrong with it? Give me some details and I will do my best to help.

Fiber

dieselpowered
10-05-2004, 01:27 PM
Well mainly the placement of the coding for the "Whos Chatting" box

I am sorry, right now I am in the office and cannot duplicate the issue, however, I m sure I can screw it up again later ;)

Fiber
10-05-2004, 04:46 PM
Show what you have when you get time and we can look at it.

lieutan
10-05-2004, 07:02 PM
i noticed that when I use this hack it messes up the arcade.. the who's in chat works great but this is the error it gives me when I try to access the arcade, any suggestions??

It has something to do with the phpinclude_start file because when i delete the entry all works fine accept for the who's in chat then... go figure... can you help me??

Fatal error: Cannot redeclare getmicrotime() (previously declared in /www/a/adventurers/htdocs/forums/FlashChat/inc/common.php:123) in /www/a/adventurers/htdocs/forums/includes/functions_arcade.php on line 3

lieutan
10-05-2004, 07:06 PM
Maybe that was a little confusing, what I mean is the chat works great no error anywhere, but when I do the who's online hack my arcade will not work and I get the error above..

It has something to do with the phpinclude_start file because when i delete the entry all works fine accept for the who's in chat then...

there that sounds better :)

Any ideas???

lieutan
10-05-2004, 07:24 PM
never mind I fixed it by disabling this part of the common.php file in flashchat

//function getmicrotime()
//{
//list($usec, $sec) = explode(" ", microtime());
// return ((float)$usec + (float)$sec);
//}

Not sure exactly what that was for but all seems to be working well even thought I diables that section... anyone know what that was for?? All is working great now!!

Damas
10-24-2004, 06:47 PM
i do evry thing but i did not see flashchat on this page

http://www.damasgate.com/index.php?page=chat

and its working fine here

http://www.damasgate.com/vb/FlashChat/flashchat.php

Any help please

memobug
10-25-2004, 12:59 AM
I had a similar problem in trying to include the $chatwho output in my navbar. It worked everywhere else but in the vBadvanced pages.

I can't read your site, but I'll tell you what I had to do. Let us know if it works for you. The variable I was using to display the chatter status was called $chatwho

I had to go into my includes folder and find the vba_cmps_include_bottom.php In there if you search on the word global you will find three sections that have lists of global variables

the first one is in

// ################## Adv No Permissons Page #######################


global $header, $footer, $headinclude, $vboptions, $vbphrase, $bbuserinfo, $stylevar, $session;


the second is after

// ############################ Adv Navbar Function #################################

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;


third is after
// ######################### Function to Print The Page Out ##########################

global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vba_options, $navbar, $cusid, $_REQUEST;



Anyway, try adding

$chatwho,

like this

global $chatwho, $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;


to the front of each of those lists one by one and see if that helps. I don't know where you're using the variable, so I can't be more specific, sorry. Don't forget the comma after the variable name, and if your variable has a different name than $chatwho use that instead.

Regards,

Matt

Damas
10-28-2004, 04:50 PM
its working verey good

Thanks

Drache
10-30-2004, 11:00 PM
It looks good thinking to buy it. But is this script very cpu intensive? How much resource will it use let's say when over 500 ppl in the chatroom?

Fiber
10-31-2004, 01:54 AM
Its not cpu intensive at all!

Fiber
10-31-2004, 01:54 AM
500 people you better get a real chat room!

Bast
11-03-2004, 10:28 PM
Hi! I thought this was cool so I bought the script and installed it and this add-on to vBadvanced. It seems that now, my forum users are unable to log out ..is anyone having these issues?

Thanks :)
Bast

indie
11-04-2004, 06:22 AM
Does anyone using Flashchat have a problem with members not being able to log out of vbulletin after being in the chat room. I found one other person who also has this problem and they have the portal CMPS mod, like me, but I can't see that that has anything to do with it.

this is really annoying, i need to find what it is...

Thanks for any help

indie
11-04-2004, 06:54 AM
PS (I see the person above me has this problem too)

I do not have the hack in this thread. I have flashchat, and the who's chatting mod box on my forum, and as a module (the mod from vbulletintemplates.com). Thanks!

Bast
11-04-2004, 01:32 PM
He he, Hey indie I have solved the problem on my end ..it has something to do with the Cookie Domain option in your vB Admin CP. Fuss around with that a bit .. lemme know if that worked for you

indie
11-05-2004, 02:14 AM
Yea, if you reset the cookie domain it seems to work but the problem reappears later :(

It's like the flashchat is keeping you logged in to vb, even if you are logged out of flashchat.

memobug
11-05-2004, 03:27 AM
I did notice something odd about staying logged in after I left a chat session. After clicking logout the navbar still said "Log out". When I closed the browser window and started a new session I really was logged out, though.

Do you find it happens only after chatting or all the time?

Regards,

Matt

memobug
11-05-2004, 01:55 PM
I found the fix for the logout problem, I think. It comes down to the cookie domain. If your cookie domain is something other than nothing, you might have this login. It really only happens if you try using that flashchat login screen that appears when you exit Flashchat. That little login window would set another, potentially redundant cookie that vbulletin might not be able to clear when it tries to log you out.


The problem was with the cookie domain. Be sure that your cookie path and domain as set in vbulletin's admincp->options->Cookie & Header settings are set the same as the settings in your /inc/cmses/vbulletinCMS.php

Around line 45 I commented out the two lines for setcookie and replaced them with two that include my cookie domain, which was ".mydomain.com"


# instead of how it was:
# setcookie($cookieprefix . 'userid', $rec['id'], time()+2592000, '/');
# setcookie($cookieprefix . 'password', md5($rec['password'] . $licenceNumber), time()+2592000, '/');

# format is setcookie(name, value, expire, path, domain);
# try adding domain like this:
setcookie($cookieprefix . 'userid', $rec['id'], time()+2592000, '/', '.yourdomain.com');
setcookie($cookieprefix . 'password', md5($rec['password'] . $licenceNumber), time()+2592000, '/', '.yourdomain.com');


Regards,

Matt

ryuuchida
12-18-2004, 08:48 AM
Great hack, Natch

celluloi
12-28-2004, 09:14 AM
hello...I have this installed and love it...but I have one question that I'm frustrating myself on because I know it should be painfully easy.

I have positioned my FlashChat module at the top of the center column. However, for the life of me I cannot get a space in between the FlashChat module and the next module down in the column (in this case the News module).

This should really be a simple issue of cellspacing, but no matter where I make my changes, whatever module is under FlashChat, it is always positioned right up against it with no spacing.

I assumed this was a change needing to be made in the adv_portal_flashchat template I made, but again, any changes I have made, have done nothing but adjust the padding and spacing withing the actual FlashChat module.

Any help on this would be much appreciated...even moreso because it should be so simple and I'm beating myself up on it right now. Thank you!

{You can see my issue here --> http://forum.celluloiddream.com }

celluloi
12-28-2004, 09:58 AM
Nevermind...found the answer myself when I was browsing through a post regarding RSS News Feeds...

The adv_portal_flashchat code I copied directly from the originial post here is missing the <br/> and the end of it.

Now I'm really kicking myself for not having seen what was right under my nose the whole time!

Anyway...fixed! :)

juanchi
12-30-2004, 11:02 AM
Anyones knows how to put the who's online hack in a block at vbadvanced CMPS Index? thanks.

error
12-30-2004, 04:23 PM
I get this error when I added the new page in CMPS.

I have double checked that I didn't type in anything wrong.

Thanks
Niklas

PixelFX
01-02-2005, 04:50 PM
Possible Forum Cookie Fix:

After reading above I thought this might help ya guys.

goto: chatchat\inc\cmses

file the vbulletinCMS.php

then file this code:


//$this->userid = isset($_COOKIE[$cookieprefix . 'userid'])?$_COOKIE[$cookieprefix . 'userid']:null;
$this->userid = isset($_COOKIE[$cookieprefix = 'bb' . 'userid'])?$_COOKIE[$cookieprefix = 'bb' . 'userid']:null;
}


Change what is red to your forum cookie prefix if you have changed it from the standard 'bb' to something else in your main forums when you setup vbulletin.

I found this fixed issues I was having. its a great script, well worth the $5 for the flash chat licence.

Demo: http://www.pixelfx.ca/index.php?id=chat

TCB
01-13-2005, 04:09 AM
Does anyone has a block for vbadvanced that shows the people inside the chat? One like this (http://www.vbulletintemplates.com/mods/showthread.php?t=7087&highlight=flashchat) one, but now shown on the frontpage of vbadvanced, instead of forumhome.

This should put some more focus on the chat :D

ncangler
01-19-2005, 11:15 PM
I have added the module and it works great. Thank you! I would like to eliminate the title header blocks to create more window space for chatting. I've attached an image of the screen and circled what I want to eliminate from the adv_portal_flashchat template. I want to eliminate the white bar above "Welcome NCangler" plus the green bar, blue bar with the URL title and the green bar above it. Can someone tell me what I need to cut out to accomplish that? Thanks.

ncangler
01-19-2005, 11:20 PM
Additional: to make your vBulletin menus drop-down over the top of your FlashChat window, use this modification to your inc/flashChatTag.php file:

Find: $tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\"></EMBED>";
Replace with: $tag .= "<PARAM NAME=\"wmode\" VALUE=\"transparent\" />";
$tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\" wmode=\"transparent\"></EMBED>";


I input the above and get the following error message:
Parse error: parse error, unexpected T_VARIABLE in /home/ncangler/public_html/forum/chat/inc/flashChatTag.php on line 23

Any ideas? I'd love to be able to access the drop downs on top of the Chat window. Thanks.

rbl
01-27-2005, 08:59 AM
Can someone tell me what I need to cut out to accomplish that?
Try my changes:
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="0" width="100%">
<tr><td class="tcat" align="left">$vba_options[portal_blockbullet] Chatrooms $vboptions[bbtitle]</td></tr></table>
<table cellpadding="0" cellspacing="0" width="100%"><tr><td class="alt1" valign="top"><iframe src="$vboptions[bburl]/flashchat/flashchat.php" width="100%" height="500" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></td></tr>
</table>

Edit: I've posted the code initially with my own paths and chat names. Be sure you edit those to fit your needs.

ichambers
01-29-2005, 12:10 PM
Does anyone know how to link it from a url to open the popup verison of FlashChat?

ncangler
01-29-2005, 01:43 PM
Hey rbl, thanks for the code. It works perfect! Just what I needed. check it out if you get a chance. www.ncangler.com
Can't thank you enough. :)