PDA

View Full Version : Can not open chat from CMPS navar and the CMPS module


attroll
04-16-2005, 05:33 AM
I got vB Chat working. But I have two problems trying to get it to come up.

1. It will not come up from up from my navbar while on my CMPS frontpage. I keep getting "The page can not be found".

2. It will not come up from the CMPS module. it also says "The page can not be found".

But the weird thing is it works from my navbar while in the forums. I dont understand because I am using the same code in every location.

Can anyone help me and tell me what I am doing wrong?

The only way I can get it to work in these two places is by removing the following code from the link.


onclick="return OpenvBChat();"

I have also tried these codes:

<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]" onclick="return OpenvBChat();">vBChat</a></td>


<td class="vbmenu_control"><a href="forum/vBChat.php?$session[sessionurl]" onclick="return OpenvBChat();">vBChat</a></td>


<td class="vbmenu_control"><a href="$vboptions[bburl]/vBChat.php?$session[sessionurl]" onclick="return OpenvBChat();">vBChat</a></td>

attroll
04-18-2005, 04:42 PM
I guess no one else has had this problem in the past or is right now. I was hoping someone could tell me if I did something wrong?

kyzen
04-29-2005, 02:40 AM
I'm looking for a little chat app to install, but I run vba too, was looking around to see if someone had modified it to work at vba portal... seem's like they haven't :p

ranger2kxlt
04-29-2005, 02:47 AM
I'm in the same boat, doesn't work on the home page but if im in the forums it will :-/

attroll
04-29-2005, 03:15 AM
I can tell you how to make it work. But it is not the way it was designed.

Original code from hack in navbar to Replace:

<script type="text/javascript">
<!--
function OpenvBChat(){
vBChat = window.open('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>
<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]" onclick="return OpenvBChat();">vBChat</a></td>


Replace with:

<td class="vbmenu_control"><a target="_chat" href="$vboptions[bburl]/vBChat.php?$session[sessionurl]">vBChat</a></td>

ChaoticMageDDC
04-29-2005, 10:31 AM
I have this same exact problem... Once you change one to /forum the link on the forums page goes to /forum/forum...

ranger2kxlt
04-29-2005, 01:53 PM
I tried the $vboptions[bburl]/ but that just kills it altogether :-/

greenhybrid
04-29-2005, 07:54 PM
No, no. Get rid of $vboptions[bburl] all together. That would be replaced with domain.com/forum