The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
![]()
I'll see if i can get one made for the CMPS, no garentee though.
- Zero Tolerance |
#3
|
||||
|
||||
![]()
a CMPS module showing the online chat users.
|
#4
|
|||
|
|||
![]()
A cmps module would be great! Thanks for a great hack.
|
#5
|
||||
|
||||
![]()
I've been fooling around with a Chat module for my CMPS and I got it to work. I took part of the stock onlineusers.php file and part of the vBchat php coding that is edited into the index.php file. Making the template was the easy part. I just copied a stock mini module and inserted the html coding from the FORUMHOME edit in the vBChat install. Heres' my adv_portal_chatroom template:
HTML Code:
<script type="text/javascript"> <!-- function OpenvBChat(){ vBChat = window.open('/yourforumdirectory/vBChat.php?$session[sessionurl]','vBChat','directories=no,height='+window.screen.height+',width='+window.screen.width+',location=no,menubar=no,scrollbars=yes,status=no,toolbar=no') return false; } --> </script> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr> <td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] <b>The Chat Room</b></span></td> </tr> <tr> <td class="alt1" colspan="2"><span class="smallfont">Users Currently Inside the Chat Room</span></td> </tr> <tr> <td class="alt2" width="100%"> <div class="smallfont">{$invBChat}</div> </td> </tr> <tr> <td class="alt1" align="center"><a href="/yourforumdirectory/vBChat.php?$session[sessionurl]" onclick='return OpenvBChat();'><span class="smallfont">Open Chat Room</span></a></td> </tr> </table> <br /> Here's my module file - chat_portal.php: PHP Code:
Quote:
Zero, you may want to look at the coding in my chat_portal.php file. It works, but some of the coding may not be needed, or I may have some essential parts missing (any security problems). Warning to others, this does work, but if you want to experiment with it, go ahead. But it may not be 100% yet. One odd thing. I set this up on one of my CMPS pages to experiment with, http://shipmodeling.net/cmps_index.php?page=news It was set up for the Chat Module to be on the right hand side, my News Module in the center and the Online Users to be on the left (see screenshot #3). However as you can see, the Chat shows up on the left where the Online Users should be, the News is ok in the center, but there is a blank space on the right side. It's probally someting stupid that I missed. But I'll keep checking it out. John BTW Zero, great script. I invited some of my members to try out vBChat before releasing it to the whole forum. They loved it! Add on: Found the problem with the Module showing in the wrong side. The eval statement was wrong in my chat_portal.php file. PHP Code:
PHP Code:
|
#6
|
|||
|
|||
![]()
Works great wirewolf! Thanks for sharing!
|
#7
|
||||
|
||||
![]()
You're welcome, knobster. I guess you tried it out. I've had it on my forum for about a week with no problems. So far, so good.
John |
#8
|
|||
|
|||
![]()
This is really great! I have always had trouble getting members active in the chat. As a matter of fact, I wish there was a way to actually have vBchat running in a module on a cmps page. This is the next best thing! Thank you very much!
I do appear to have a small problem. Is there any reason that the module does not show up until someone is in the chat room? If there is no one in chat, the module does not show up. Once someone enters, it appears to stay active. Am I missing something? Thanks again |
#9
|
|||
|
|||
![]()
Got a problem with this. Did everything as stated. Shows up on the left without the eval statement modified.
If I add the statement eval, new modified one it throws it on the right, but everything under it moves too the bottom of the page and is super long (regular width). No longer a box. Any suggestions? |
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|