Can you launch the chatbox right from the nav menu?
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox
View previous topic :: View next topic  
Author Message
TheIceMan
Starter
Starter


Joined: 22 Feb 2005
Posts: 4

PostPosted: Tue Jun 21, 2005 11:48 pm    Post subject: Can you launch the chatbox right from the nav menu? Reply with quote

Right now under module demos you have "chatbox" that takes you to a chat specific page. Is it possible to edit the link in the nav menu, so when you hit the link it launches you right into the chatroom, like when you hit "click to join chat" in the "front" box?

Thanks

and great work btw!
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jun 22, 2005 12:28 am    Post subject: Re: Can you launch the chatbox right from the nav menu? Reply with quote

Actually, I think it is not possible to use javascript for mxBB Nav Menu links, as it is. You would need to modify the script to do that, then...

a) Create a menu item using attributes similar to:

Name:
Click to join chat

Link:
javascript:window.open('modules/mx_chatbox/chatbox.php', '_ChatBox', 'scrollbars=no,resizable=yes,width=600,height=480')

b) Set the View attribute to REG (the chatbox doesn't work for guests).


OTOH, you could probably add a link to page header. Maybe something like this:

Code:
<!-- BEGIN switch_user_logged_in -->
<a href="javascript:void(0);" onclick="window.open('modules/mx_chatbox/chatbox.php', '_ChatBox', 'scrollbars=no,resizable=yes,width=600,height=480')">Click to join Chat</a>
<!-- END switch_user_logged_in -->

Please note the chatbox only works correctly on a popup window.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
TheIceMan
Starter
Starter


Joined: 22 Feb 2005
Posts: 4

PostPosted: Wed Jun 22, 2005 1:54 am    Post subject: Re: Can you launch the chatbox right from the nav menu? Reply with quote

Thanks for the advice, I'll give it a spin and thanks for all your hard work GG! 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum