Thread: IRC Chat
View Single Post
  #19  
Old 09-23-2005, 08:06 AM
Snort_2005 Snort_2005 is offline
 
Join Date: May 2005
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is what I did. I installed vBAdvanced CMPS, and created a new page, page type, template, set identifer as chat, template as homepage_chat, Use module shell template: yes, colspan 0, form code: none, content title Welcome to (site title) chat!, and then created a new template in each skin using the following template code:

Code:
<applet code="IRCApplet.class" archive="irc.jar,pixx.jar" width="100%" height="400">
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<param name="nick" value="$bbuserinfo[username]" />
<param name="alternatenick" value="$bbuserinfo[username]???">
<param name="name" value="$bbuserinfo[username]">
<param name="host" value="(your_server)">
<param name="port" value="(your_server_port)">
<param name="command1" value="/join (yourchan)" />
<param name="useidentserver" value="false" />
<param name="gui" value="pixx" />

<param name="timestamp" value="true" />
<param name="smileys" value="true" />
<param name="highlight" value="true" />
<param name="highlightnick" value="true" />
<param name="quitmessage" value="(your_default_quit_message)" />
<param name="asl" value="true" />
<param name="bitmapsmileys" value="true\" />

<param name="smiley1" value=":) img/sourire.gif" />
<param name="smiley2" value=":-) img/sourire.gif" />
<param name="smiley3" value=":-D img/content.gif" />
<param name="smiley4" value=":d img/content.gif" />
<param name="smiley5" value=":-O img/OH-2.gif" />
<param name="smiley6" value=":o img/OH-1.gif" />
<param name="smiley7" value=":-P img/langue.gif" />
<param name="smiley8" value=":p img/langue.gif" />
<param name="smiley9" value=";-) img/clin-oeuil.gif" />
<param name="smiley10" value=";) img/clin-oeuil.gif" />
<param name="smiley11" value=":-( img/triste.gif" />
<param name="smiley12" value=":( img/triste.gif" />
<param name="smiley13" value=":-| img/OH-3.gif" />
<param name="smiley14" value=":| img/OH-3.gif" />
<param name="smiley15" value=":'( img/pleure.gif" />
<param name="smiley16" value=":$ img/rouge.gif" />
<param name="smiley17" value=":-$ img/rouge.gif" />
<param name="smiley18" value="(H) img/cool.gif" />
<param name="smiley19" value="(h) img/cool.gif" />
<param name="smiley20" value=":-@ mg/enerve1.gif" />
<param name="smiley21" value=":@ img/enerve2.gif">
<param name="smiley22" value=":-S img/roll-eyes.gif" />
<param name="smiley23" value=":s img/roll-eyes.gif" />

<param name="channelfont" value="12 Arial" />
<param name="chanlistfont" value="12 Arial" />

<!param name="nickfield" value="true" />
<!param name="useinfo" value="true" />

<param name="styleselector" value="true" />
<param name="setfontonstyle" value="" />

<param name="backgroundimage" value="true" />
<param name="defaultbackgroundimage" value="img/background.gif" />

<param name="showconnect" value="true" />
<param name="showclose" value="true" />
<param name="showabout" value="false" />
<param name="showhelp" value="false" />
<param name="showstatus" value="true" />
<param name="useinfo" value="false" />
<param name="showchanlist" value="true" />

<param name="authorizedjoinlist" value="all" />
<param name="authorizedleavelist" value="all" />
<param name="authorizedcommandlist" value="all-quit" />
</applet>
</td>
</tr>
</table>
<div><img src="(path_to)clear.gif" height="15" alt="" /></div>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[tablewidth]" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">Info Center</td>
        </tr>
</thead>
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('chat_information')"><img id="collapseimg_chat_information" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chat_information].gif" alt="" border="0" /></a>
                        Information
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_chat_information" style="$vbcollapse[collapseobj_chat_information]">
        <tr>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                This Java client requires Java 1.4.x or higher. If you would like to not use this Java client, or the row above is empty, you can grab an IRC client such as <a href="http://www.mirc.com" target="_new">mIRC<a/> or <a href="http://www.xchat.org" target="_new">XChat</a> and join us on the network <b>(your_server)</b> port <b>(your_server_port)</b>, in the channel <b>(your_channel)</b>.<br /><br />You will have to choose a nickname to use the chat. Keep in mind that this chat room is located on a public network, so simple nicknames may be taken already. If the nickname you have chosen is already in use or is registered by somebody else, your nickname will be changed to something else. See the tips below for information on how to change it.
                        </div>
                </td>
        </tr>
</tbody>
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('chat_rules')"><img id="collapseimg_chat_rules" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chat_rules].gif" alt="" border="0" /></a>
                        Rules
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_chat_rules" style="$vbcollapse[collapseobj_chat_rules]">
        <tr>
                <td class="alt1">
                        <ol class="smallfont">
                                <li class="smallfont">Do not advertise other channels unless they are affiliates, official initialized.org channels (in the motd), or you were given permission by an op or above.</li>
                                <li class="smallfont">Please do not request to be voiced. If you deserve it, it will come to you. Annoying halfops or above about it will delay you getting it.</li>
                                <li class="smallfont">Do not rent-a-op. This also includes throwing random insults at someone a halfop or above just warned.</li>
                                <li class="smallfont">Use common sense. If a halfop or above tells you to stop doing something, stop doing it.</li>
                                <li class="smallfont">Do not complain about being banned from the chat on the forums. The forums and the chat are separate entities. Chances are, complaining on the forums won't solve anything. If you do anything, PM someone of a higher rank than who banned you.</li>
                                <li class="smallfont">Please read the rules for the entire IRC network #GQMR is on by using "/RULES". Those rules also apply to #GQMR since #GQMR is on the network.</li>
                        </ol>
                </td>
        </tr>
</tbody>
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('chat_quicktips')"><img id="collapseimg_chat_quicktips" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chat_quicktips].gif" alt="" border="0" /></a>
                        Quick Tips
                </td>

        </tr>
</tbody>
<tbody id="collapseobj_chat_quicktips" style="$vbcollapse[collapseobj_chat_quicktips]">
        <tr>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                If you would like to perform an action, use <b>/me &lt;action&gt;</b>.
                                <br />If you would like to register your nickname to prevent people from impersonating you, use <b>/nickserv register &lt;password&gt; &lt;email&gt;</b> while you are using the desired nickname.
                                <br />If you have registered your nickname and need to log in, use <b>/nickserv identify &lt;password&gt;</b>.
                        </div>
This is if you have the latest PJIRC uploaded to where the cmps index file is.

You can change the rules to reflect your own channel rules. :>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01390 seconds
  • Memory Usage 1,823KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete