Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Chat Room Integration with Vanilla - Testing One Now
I just wanted to share that I had been looking for a chat program that would integrate with Vanilla and the current member database so that our members wouldn't have to sign up again and so they would be using their current usernames and I found a chat called V3 Chat for the very reasonable price of $35 that the programmer Jeff had integrated with a number of other forums and CMS's. We just got it installed yesterday and have been testing it and so far so good. the installation was to install the v3chatrooms folder on the site root and then this code below was added to the menu.php. This gave me an additional tab titled "Chat Room" on the far right.
While the installation seems to work very good and do just what I want it too there is one thing that I would prefer. I would prefer as Mark suggests to have this integration as an extension or addon with the code in the extension folder instead of editing the themes/menu.php as was done. Mainly so that updates won't affect this install.
My question is "Do you see any problems with this install by editing the menu.php file?" other than the updating issue?
You can check out the program at their site here http://www.v3chat.com/chatroom.php and you can see the integration on my forum here at http://www.pasofinohorsedirectory.com/Forum/ . You will have to be registered and logged in to test it so just register and let me know. Jeff also helped me add my iframe code for my banner ad rotator so that my ads would display on the bottom of the chat window. Awesome.
Just wanted to share in case someone else was looking for a chat and to get feedback on how it was integrated and any suggestions on creating an extension setup for it. Thank for any feedback and suggestions.
Here are the instructions.....
#### Start Of Installation Instructions ####
FILE TO EDIT: themes/menu.php
PURPOSE: Creates header menu tab 'Chat Rooms'
Step 1) Add the following code directly to the top of the file before the first
<?php
<?php
if ($this->Context->Session->UserID > 0) {
?>
<script language="JavaScript">
<!--
var userName = "<?php echo $this->Context->Session->User->Name;?>";
var userID = "<?php echo $this->Context->Session->UserID;?>";
// -->
</script>
<script language="JavaScript" type="text/javascript"
src="http://localhost/v3chatrooms/chat.js"></script>
<?php }?>
Step 2) Now scroll to line 34 (approx) which looks like,
echo '</ul>
And replace with this code instead,
if ($this->Context->Session->UserID > 0) {
echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a href="#"
onClick="launchChat();return false;">Chat Room</a></li>';
}else{
echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a
href="people.php">Chat Room</a></li>';
}
echo '</ul>
#### End Of Installation Instructions ####
0
This discussion has been closed.
Comments
#### Start Of Installation Instructions #### FILE TO EDIT: themes/menu.php PURPOSE: Creates header menu tab 'Chat Rooms' Step 1) Add the following code directly to the top of the file before the first <?php <?php if ($this->Context->Session->UserID > 0) { ?> <script language="JavaScript"> <!-- var userName = "<?php echo $this->Context->Session->User->Name;?>"; var userID = "<?php echo $this->Context->Session->UserID;?>"; // --> </script> <script language="JavaScript" type="text/javascript" src="http://localhost/v3chatrooms/chat.js"></script> <?php }?> Step 2) Now scroll to line 34 (approx) which looks like, echo '</ul> And replace with this code instead, if ($this->Context->Session->UserID > 0) { echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a href="#" onClick="launchChat();return false;">Chat Room</a></li>'; }else{ echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a href="people.php">Chat Room</a></li>'; } echo '</ul> #### End Of Installation Instructions ####
looks fine to me...?In regard to 'extensifying' it, you could do something as simple as this:
if(isset($Head) && $Context->Session->User->UserID)
Thanks Everyone for your attention to this !!
Posted: Monday, 16 April 2007 at 3:41PM
I just checked my extensions-mods document and don't see anything I changed except for the CSS, however this is an older version of "Who's online" which I have not updated because it was not broken!
Posted: Monday, 16 April 2007 at 4:31PM