Results 1 to 2 of 2
  1. #1

    Default Quick and easy integrated chat with vB! 2-step tutorial

    the whole process should take maybe 10 min tops. This will add a javachat window integrated into your vB forums. It will carry permissions as well. The chat is a simple java chat, powered by freewebs.com. You can edit the code to have any type of chat you want, but i forund this one to be simplest and most effieceint.

    step 1-
    Create a new file. Name it "livechat.php".
    Inside the file, paste this-
    <?php

    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);

    // #################### DEFINE IMPORTANT CONSTANTS #######################
    define('NO_REGISTER_GLOBALS', 1);
    define('THIS_SCRIPT', 'livechat.php'); // change this depending on your filename

    // ################### PRE-CACHE TEMPLATES AND DATA ######################
    // get special phrase groups
    $phrasegroups = array(

    );

    // get special data templates from the datastore
    $specialtemplates = array(

    );

    // pre-cache templates used by all actions
    $globaltemplates = array(
    'livechat',
    );

    // pre-cache templates used by specific actions
    $actiontemplates = array(

    );

    // ######################### REQUIRE BACK-END ############################
    require_once('./global.php');

    // ################################################## #####################
    // ######################## START MAIN SCRIPT ############################
    // ################################################## #####################

    $navbits = array();
    $navbits[$parent] = 'Live Chat';

    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('print_output("' . fetch_template('livechat') . '");');

    ?>
    2. Head to AdminCp < Styles & Templates < Styles Manager < Add new Template.

    Create a new template, name it livechat.

    Paste The Following-(okay, for some reason html is allowed, so posting this code will actually open a chat window in this post. Follow the link to the word document below)

    http://www.freewebs.com/model98chat2/chat.doc

    Replace the red text with a name for your chatroom. It can be anything.

    That's it! After youve done those two quick steps, you will have an integrated java chat with your vB forums! Enjoy.

    Feel free to pm me if you have problems/dont understand.

    Do not fear attempting this. Messing up will not harm your forums at all. You can see mine at http://paintplayers.com/livechat.php

  2. #2

    Default

    now, you may want to add a link to the chat room like any normal person would. This can be done very easily as well. I found the neatest way to do this was to add it to the "Quick links" menu, so that is what i am going to describe.

    Head to admincp < styles and templates < styles manager < edit templates.

    open the navigation/breadcrumb < navbar template.

    search for quick_links

    find
    <if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>

    after that, add

    <td class="vbmenu_control"><a href="/livechat.php">Live Chat</a></td>
    This will add it as the first link in the quicklinks dropdown menu.

Similar Threads

  1. An integrated chatroom for SMF
    By pbcommun in forum Forum Applications
    Replies: 3
    Last Post: 06-24-2008, 12:52 AM
  2. Integrated webmail in Mambo
    By specting in forum General Joomla Discussions
    Replies: 4
    Last Post: 07-21-2005, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •