Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Addons/Mods Graveyard

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2009, 12:05 PM
Saphira Saphira is offline
Member
 
Join Date: Jan 2009
Posts: 89
Credits: 7,004
Saphira
Default [Mod] Add a chatroom to your adoptables install.

This is pretty straight forward, and pretty easy to implement. I'm not sure if free web hosts will allow this, because CGI:IRC is pretty resource heavy, due to it reloading the page every few seconds per user.

What you will need:

CGI:IRC (.zip)
CGI:IRC (.tar.gz)
Your blank.php file.
An IRC server for CGI:IRC to connect to.

First things first, extract CGI:IRC and upload it to your server. I'm not going to go into detail about how to install CGI:IRC, because it's already fully documented on their website. All I'm going to say about this is that you need to make sure all files are CHMOD'd to 755, otherwise you'll get internal server errors.

Now that we have CGI:IRC uploaded and ready to use, we have to copy and edit our blank.php file. For this, I'm going to name the copied file chat.php.

Now, open your chat.php file, and find where it says:

PHP Code:
$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content); 
This is where we're going to put our login form. When you've found the above three lines, REPLACE THEM with the following:

PHP Code:
$pagecontent getsitecontent("index");
$article_title "Your article title";
$article_content "<script src='http://static.blitzed.org/cgiirc.js'></script>
<form name='cgiirclogin' method='post' onsubmit='return openCgiIrc(this)' action='link to your CGI:IRC irc.cgi file'>
<input type='hidden' name='interface' value='nonjs' />
<input type='hidden' name='Channel' value='channel you want the users to auto connect to, must start with a #' />
<label>Nickname: </label><input type='text' name='Nickname' value='CGI???' />
<input type='submit' value=' Chat! ' />
</form><p>"

The "CGI???" bit is the user's nickname that will be shown in the nickname box automatically (they can change this), the ??? will represent three random numbers.

Now make sure that chat.php is CHMOD'd to 755.

And that's it. Now you should have a working chatroom where people can talk about whatever they want.

If you don't want to/can't set up your own IRC server, there are a lot of them out there which won't mind you having a channel on them. If you're really stuck and can't find any, I'll be happy to point you in the right direction to some. :)

Important note: You MUST leave the http://static.blitzed.org/cgiirc.js link in the script or it WILL NOT WORK.

Coming next: A Java applet client that people can use to connect to the same chatroom.
Reply With Quote
  #2  
Old 05-26-2009, 12:22 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 18,109
Seapyramid
Default RE: [Mod] Add a chatroom to your adoptables install.

I want to offer a word of warning here, mainly for free sites but some paid sites as well. Shout boxes and Chat rooms will use your server resourses extensively and for many hosts... even paid ones... you might find yourself going over in CPU usage. Just a thought so that if you see white pages or suspension pages you have some ideas of where to look.
Reply With Quote
  #3  
Old 05-26-2009, 12:34 PM
Saphira Saphira is offline
Member
 
Join Date: Jan 2009
Posts: 89
Credits: 7,004
Saphira
Default RE: [Mod] Add a chatroom to your adoptables install.

Yeah, I forgot to add that some paid hosts might not allow it, thanks Sea. Make sure you read your ToS agreement with your host before implementing this. :)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for someone to install Mys 1.3.3 Abronsyth Staff Central 5 07-22-2014 06:26 PM
Install(?) error: Unable to access site after install Catfish Questions and Supports 10 07-24-2013 12:41 AM
Is a chatroom needed for Mysidia Adoptables? Hall of Famer Mysidia Adoptables Official Announcement 3 09-28-2011 01:20 PM
need install help please... maximillion Questions and Supports 3 06-07-2011 07:35 AM
Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY] Ashje Addons/Mods Graveyard 2 05-24-2009 04:17 AM


All times are GMT -5. The time now is 02:06 AM.

Currently Active Users: 791 (0 members and 791 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636