Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1256)
------------------------------------------------------------
SMF Mibbit Ajax IRC Mod by KCToker
------------------------------------------------------------
This mod will add a feature to your site to let your users connect to IRC and chat with other users.
This mod adds an admin page to configure several settings about the mod. These can be found at:
Configuration > Features and Options > IRC Chat
Currently this mod is designed to only work with SMF 1.1.11 and SMF 2.0 RC3.
Version : V1.7/2.0
Version History:
1.1: Added forgotten section of code.
1.2: Corrected minor syntax error.
1.3: Added an isset() check for widget parameters; syntax improvements.
1.4: Added check to see if user was a guest, will now give guests the nick of MibbitUser and will append a random number between 1 and 10,000 to the end.
1.5: This is currently the ONLY SMF 1.1.5 version of this mod.
1.6: Updated code to support SMF 2.0 RC3. Updated version for SMF 1.1.11 coming soon.
1.7: Code updated to work with SMF 1.1.11. From now on, all releases with version number 1.x will be for SMF 1.x series. All releases with version number 2.x will be for SMF 2.x series. This should help to ease confusion between versions. This is the latest version for SMF 1.1.11
----------
2.0: Updated version number to reflect version change mentioned in notes for v1.7. This is the latest version for SMF 2.0 RC3
Mibbit Ajax IRC Widget ©2010 Mibbit
screenshot please?
Sorry about that, screenshots up as well as a demo site linked to in the description.
How does an IRC Chat work? I mean what I need besides this MOD?
Man I really needed something like this. This seems to look better than PJIRC and doesn't need the Java client to run in the background. But sadly I have SMF 1.1.5 and can't upgrade because TinyPortal doesn't support it. Can you make it for SMF 1.1.5 too?
Quote from: jossanaijr on June 19, 2008, 07:03:06 AM
How does an IRC Chat work? I mean what I need besides this MOD?
This (http://computer.howstuffworks.com/chat-room.htm) is a pretty good explanation of what is going on with IRC. To make it working, you need to join an IRC server (this can be setup in the admin panel of this mod). By default it will use irc.mibbit.com. Some others include irc.coldfront.net and irc.esper.net. Once connected you can type "/j #ChanName" replace ChanName with whatever name you want for your channel. If nobody else owns it, you can register it for free with that servers "ChanServ" service. Type "/cs help" when connected for more info.
Quote from: 786Fighter on June 19, 2008, 11:25:02 AM
Man I really needed something like this. This seems to look better than PJIRC and doesn't need the Java client to run in the background. But sadly I have SMF 1.1.5 and can't upgrade because TinyPortal doesn't support it. Can you make it for SMF 1.1.5 too?
My comp, which has my MySQL server and Apache, is down for the rest of the week, but when I get them back up I'll see what I can do about it.
Quote from: KCToker on June 19, 2008, 03:41:46 PM
Quote from: jossanaijr on June 19, 2008, 07:03:06 AM
How does an IRC Chat work? I mean what I need besides this MOD?
This (http://computer.howstuffworks.com/chat-room.htm) is a pretty good explanation of what is going on with IRC. To make it working, you need to join an IRC server (this can be setup in the admin panel of this mod). By default it will use irc.mibbit.com. Some others include irc.coldfront.net and irc.esper.net. Once connected you can type "/j #ChanName" replace ChanName with whatever name you want for your channel. If nobody else owns it, you can register it for free with that servers "ChanServ" service. Type "/cs help" when connected for more info.
Thank you!
nice chat but how is possible create new channel irc?
I was looking for them too, I use SMF 1.1.5 - are there any developments for SMF 1.1.5 support?
Well, my computer parts finally got here. I've modified it to work with SMF 1.1.5. The name of the file is Mibbit_Ajax_IRC_1.5_SMF1.
Enjoy!
I'm getting this error on the package manager install
./Sources/ModSettings.php Test failed
so is it still safe to install? Just upgraded to 1.1.5
This is a simple great mod. How would I make this so that only registered users can access the chat/link. I don't want random guests visiting my irc channel. Will there be permission options in the future?
I would really like to see a live demo before I tried it.
In theory, I think this mod is one of the best IRC chat SMF mods ever, but I really need to see it LIVE.
Quote from: 786Fighter on June 19, 2008, 11:25:02 AM
Man I really needed something like this. This seems to look better than PJIRC and doesn't need the Java client to run in the background. But sadly I have SMF 1.1.5 and can't upgrade because TinyPortal doesn't support it. Can you make it for SMF 1.1.5 too?
If you have Tinyportal then you can just add the iframe code into an article and link to it as you normally would. ;)
Technically, you don't need to install the mod at all.
Is there a way to get this working with phpFreeChat (http://www.phpfreechat.net/)? I have set up a chatroom on my site using phpFreeChat, I have installed this mod, and I need to know how to configure it. I have typed the url of the phpFreeChat installation I made, typed "My room" into the "IRC channels" as that is the default room name.
What else might I need to do to get this to work? I'd like to use my own hosting for the chat room rather than the free IRC servers listed above.
Thanks for your help.
Any plans on adding in a script to auto identify channel admins? How about option to allow or disallow viewing for guests? Option to open in a new window?
Other than the 3 options above, looks like a good mod to have for IRC.
If I wanted to change the tab from "chat" to "IRC", where would (I make those changes?
add a button to the beta 3?
im not finding what the edits say to do, at all.
edit:
nevermind, they are in the subs, but i dont have time to pick thru the rest, and the instructions are a bit different that what the actual file is for the beta 3. will have to bypass.. thanks.
I have SMF 2.0 Beta 3.1 Public and I get errors trying to install both versions.
www.pulaskicountyweb.com/smf
If you are looking for a chat server that can cope with more than ~50 users on a shared server then presently IRC is the only way to go. The down of that is your room is a "public area" and can be searched through any of the IRC search portals such as http://irc.netsplit.de/channels/?chat=SearchHere (http://irc.netsplit.de/channels/?chat=SearchHere)
Any would-be "outside" guest would have to enter the exact name of your room to find it, not as easy a task as you may think as they also have to enter the name of the IRC host where it was registered. The bottom line is if its found in this search, they can join your room.
If you want to try it and aren't familiar with IRC (Internet Relay Chat) follow these instruction
Go to http://www.mibbit.com/ (http://www.mibbit.com/)
Sign on with your intended NickName
Go into the "Live help channel" (top right)
Register your NickName (to change to a new NickName type /nick YourNewNick)
type /nickserv register UrPassword UrMail( leave email blank the first time)
Enter your intended new room name
type /join #RoomName
Register your RoomName
type /chanserv register #RoomName UrPassword Desc (you have to enter a description for your room)
If you have any difficulties there's always somebody there to help you
Then using the Mibitt mod enter an IRC server or choose a local server from the list here http://freenode.net/irc_servers.shtml (http://freenode.net/irc_servers.shtml)
followed by your #RoomName1,#RoomName2,etc (no spaces)
You are now the proud owner of your SMF/IRC chat with no limit on the number of users!
Im getting
QuoteAn Error Has Occurred!
Unable to load the 'main' template.
Link: http://romdatabase.xtreemhost.com/index.php?action=chat
Not sure whats going on :-[
Is there a file im missing?
I've been into all the chat mods in recent days, this one stands out above the rest as it's IRC based thus there is no limit on the number of members you can have in the chat (The best of the rest FlashChat or phpFreeChat = 20~50 users). Mibbit also uniquely allows you to join multiple rooms at the time of entry (Integrated Chat = 1 Room). You will have to know or learn a bit of IRC protocol to get it up and running, but we like the challenge right?
If I might suggest a few enhancements to this mod that would make it more than likely "The Best Chat Mod"
Additional Features:
(OPT)= OPTional:
Open in a new scalable window (OPT without forum header)
Lists chatters the at the bottom of forum :same as I-Chat (OPT shows what room chatters are in & (OPT) double clicking that room will take you there) (OPT users in chat shown at the top of forum, welcome area, :same as I-Chat)
OPT Chat menu button to show number of users in chat looks something like [CHAT 3 USERS] etc :same as FlashChat).
Allow the iexplorer tab to show [people said stuff] Mibbit Default http://www.downloadsquad.com/2008/04/14/mibbit-web-based-irc-client-makes-irc-look-easy/ (http://www.downloadsquad.com/2008/04/14/mibbit-web-based-irc-client-makes-irc-look-easy/) http://www.downloadsquad.com/2008/04/14/mibbit-web-based-irc-client-makes-irc-look-easy/ http://ajaxian.com/archives/mibbit-ajax-based-irc-client (http://ajaxian.com/archives/mibbit-ajax-based-irc-client)
I receive this error in the Tracking area from my profile.
"8: Undefined variable: user_info?pretty;action=chat"
I only have one other mod installed and that is the Pretty URLs mod.
Do you have any suggestions as to how to fix this? Please do reply back soon!
We would love an update for 1.1.5 mate...this is a great mod and we need it.
QuoteWell, my computer parts finally got here. I've modified it to work with SMF 1.1.5. The name of the file is Mibbit_Ajax_IRC_1.5_SMF1.
Guys, you keep asking him to update to 1.15 but he already has and quite a few posts ago.. lol ;)
Going to try it myself! Hope I don't go through the extra BS hahaha!
Thanks for this great mod!!
Well, I went through the BS lol! I tried to install and got this QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Execute Modification ./Sources/ModSettings.php Test failed
Then I tried using SMF Package Parser and got this error
Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:184
Errors encountered while parsing XML file:
1. SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 36: parser error : Specification mandate value for attribute for
2. SimpleXMLElement::__construct() [simplexmlelement.--construct]: <install for "SMF 1.1.5">
3. SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^
4. SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 36: parser error : attributes construct error
5. SimpleXMLElement::__construct() [simplexmlelement.--construct]: <install for "SMF 1.1.5">
6. SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^
7. SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 36: parser error : Couldn't find end of Start Tag install line 36
8. SimpleXMLElement::__construct() [simplexmlelement.--construct]: <install for "SMF 1.1.5">
9. SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^
10. SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 41: parser error : Opening and ending tag mismatch: package-info line 24 and install
11. SimpleXMLElement::__construct() [simplexmlelement.--construct]: </install>
12. SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^
13. SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 44: parser error : Extra content at the end of the document
14. SimpleXMLElement::__construct() [simplexmlelement.--construct]: <uninstall>
15. SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^
Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(184): SimpleXMLElement->__construct('<?xml version="...')
#1 /home/sleepy1/public_html/PackageParser/index.php(125): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all')
#2 /home/sleepy1/public_html/PackageParser/index.php(823): parseArchive('/tmp/phpg0Kpff', 'install', 'all')
#3 {main}
XML File:
Warning: file_get_contents(/home/sleepy1/backend/temp/packageparser/package-info.xml) [function.file-get-contents]: failed to open stream: No such file or directory in /home/sleepy1/public_html/PackageParser/index.php on line 209
So dunno what the deal is... Please help out thanks!
After installing this my sites keep crashing. Apparently Apache keeps restarting and this didn't happen until about an hour after installing this. It also won't let me uninstall because my packages directory isn't "writeable" but I CHMOD 777 it and made it recursive.
Help please? Anybody?
I'm not using this mod, but got the original idea to create something custom after reading about it and thought would comment on things I've done with my custom setup that you may want to implement with this mod.
In the chat.template.php I'd suggest adding something similiar to the below code. Basically what I did here is allow the forum username to follow the user into the chat if they're logged in, otherwise automatically come in with guest_xx where xx is random number.
function template_main()
{
global $context;
echo ' <div style="margin:0 auto;text-align:center">';
if ($context['user']['is_logged']) {
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
<tr class="titlebg">
<td>Chat</td>
</tr>
<tr>
<td class="windowbg">
<iframe width=100% height=500 scrolling=no style="border:0" src="http://embed.mibbit.com/?channel=%23computerhope&nick=', $context['user']['username'], '&noServerMotd=true"></iframe>
</td>
</tr>
</table>';
}
else {
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
<tr class="titlebg">
<td>Chat</td>
</tr>
<tr>
<td class="windowbg">
<iframe width=100% height=500 scrolling=no style="border:0" src="http://embed.mibbit.com/?channel=%23computerhope&nick=guest_%3F%3F&noServerMotd=true"></iframe>
</td>
</tr>
</table>';
}
Finally, I don't believe there would be a way to interface with mibbit and SMF to show users at the bottom. But I was able to create a work around to this by having a bot in the IRC channel send stats to a javascript file and that javascript file be displayed at the bottom of the forum. Below is an example of what I now have being displayed at the bottom of my forums.
QuoteUsers in chat (5):
JohnK, ComputerHope, guest_67, Carbon, mountainpete
Total logins: 652. Total lines typed: 7,360. Last action: September 15, 2008, 5:3:32 (MST).
Join the chat now (IRC: irc.mibbit.com #computerhope)
Visit this link (http://www.computerhope.com/forum/index.php) to visit the forums main page, live stats similiar to above example at bottom of page.
If you want to just see an example of chat without going through main forum page click this link (http://www.computerhope.com/forum/index.php?action=chat).
Quote from: trigatch4 on September 05, 2008, 08:32:42 PM
After installing this my sites keep crashing. Apparently Apache keeps restarting and this didn't happen until about an hour after installing this. It also won't let me uninstall because my packages directory isn't "writeable" but I CHMOD 777 it and made it recursive.
Help please? Anybody?
Quote from: WVBowhunter on July 02, 2008, 06:35:25 PM
I'm getting this error on the package manager install
./Sources/ModSettings.php Test failed
so is it still safe to install? Just upgraded to 1.1.5
I HAVE THE SAME PROBLEM AS THE SECOND QUOTE...
smf 1.1.5
TP v0.9.8
ALSO...MY SERVER SETTINGS IN THE ADMIN > IRC CHAT SECTION ARE NOT SAVING...
...AND NO ONE IS RESPONDING....
NOT VERY ACCOUNTABLE.
PLEASE HELP!!!!
does this not work on 1.1.6?
does this work on a different theme? because im using shiny blue theme.
I dont think there's going to be any support for this mod.
see my (and others) previous posts. they go un-noticed.
does anyone know of another chat mod that works with 1.1.5?
Quote from: psynx on October 07, 2008, 11:24:18 AM
does this work on a different theme? because im using shiny blue theme.
The "themes" are infinitely configurable ( if you have the time ). Set them up in "My Preferences" then use the "id=7e17601c14e6abc029e399e4e08679a4" etc that it generates to set the color scheme and many other settings for your chat that all your fellow chatters will use.
I am running 1.1.6 theme Default.
I went to install and i got this error:
Execute Modification ./Sources/ModSettings.php Test failed
So I completed the install everything went fine so I went to that file to see why there was the error I see what the problem is.
It is supposed to:
Find:
$txt['cache_memcached'] = 'Memcache settings';
Add Before:
$txt['mods_cat_chat'] = 'IRC Chat';
$txt['ircServer'] = 'IRC server to connect to';
$txt['ircChannels'] = 'IRC Channel(s) to connect to';
$txt['ircPost'] = 'Suffix to append to the end of each name';
$txt['ircWidth'] = 'Width of IRC window (in pixels)';
$txt['ircHeight'] = 'Height of IRC window (in pixels)';
Problem is this line:
$txt['cache_memcached'] = 'Memcache settings';
Is not in my ModSettings. I even searched for parts of the line to see if another mod edited it. Its not in there so where abouts should I add it. Whats the next line after the one we are supposed to find I will search for that one and add it just before.
Below I attached my ModSettings.php where in it should I add it?
Anyone? cause now when I try to set the settings and hit save it refreshes and nothing is in there it just like erases it all. I dont know if the above problem has something to do with that. SO can someone help me fix it.
Ok I fixed that problem now I have the problem of where I put the IRC channel name my irc channel name is "Caleb'sArmyLife" but I thinkin the input area wher eyou put your channel name when I put that people are joining the channel "Caleb" so it isnt reading the " ' " when it see the " ' " in the channel name "Caleb'sArmyLife" it only reads what is before it. How do I correct this?
and after installing this mod I now get these errors.
8: Undefined variable: user_info
File: /www/free-site-host.com/c/a/l/calebsarmylife/htdocs/Themes/default/Chat.template.php (main sub template - eval?)
Line: 37
I get this error. I got it after installing this mod. I am running version 1.1.6 and theme default
Line 37 in chat.template.php is:
if ($user_info['is_guest']) {
Here are a few lines before and after including the line 37:
if (isset($modSettings['ircPost'])) {
$suffix = $modSettings['ircPost'];
} else {
$suffix = 'Guest';
}
if ($user_info['is_guest']) {
$userchatname = 'MibbitUser' . rand(1,10000);
} else {
$userchatname = $context['user']['name'] . $suffix;
}
$channels = str_replace("#","%23",$channels);
$userchatname = str_replace(" ","_",$userchatname);
$userchatname = str_replace(".","_",$userchatname);
echo' <div style="margin:0 auto;text-align:center">';
echo"
<iframe width=$width height=$height scrolling='no' frameborder='0'
src='http://embed.mibbit.com/?server=" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false'>
</iframe></div>";
}
For anyone using this and running the default SMF theme, here is the ID for a Mibbit theme I made to match the default SMF theme. You can enter it in the preferences section of your Mibbit account.
e038358aae6b1ed2e06d32c693875961
Yea still getting errors that are weird after this install that I cant figure out.
Fixed - [chat] in index.template needed to be ['chat'] that was what was causing the errors
Hi to all,
when I install this mod on my Forum (SMF 1.1.6) than I get an error message (see screenshot in attachment). The error has something with ModSettings.php to do, but I don't understand exactly what is wrong:
Quote6. Modifikation ausführen ./Sources/ModSettings.php Fehler
Hope, that someone can help out.
Best regards,
LinuxFanatic
after i install it and try clicking chat and the part where you choose your screename and below the click to join chat button i get this error:
Closing Link: [207.192.75.252] (CGI:IRC -- No access)
Any ideas?
So, greast mod.. got it working fine in 1.1.7 once I corrected the modsettings in the installer for my particular version..
Did (in the case of 1.1.7) have one error that was typographical..
Chat.template.php line 37 needed changed to:
if ($context['user']['is_guest']) {
Quote from: HR on December 21, 2008, 04:38:17 PM
So, greast mod.. got it working fine in 1.1.7 once I corrected the modsettings in the installer for my particular version..
Did (in the case of 1.1.7) have one error that was typographical..
Chat.template.php line 37 needed changed to:
if ($context['user']['is_guest']) {
Thanks. That fixed the error for 2.0B4 as well.
Quote from: mrhope on September 15, 2008, 07:15:06 AM
I'm not using this mod, but got the original idea to create something custom after reading about it and thought would comment on things I've done with my custom setup that you may want to implement with this mod.
Mrhope, thanks for your input, it has been a while since I've been on here.... Real life takes over sometimes, you know how it is...
Much of what you have done is along the lines of what I had been asking. Now all we have to do is figure out how you did it! Any more info on what instruction to give the Bot and how to do it, presumably this is Mibbits own Bot? Also what is the SMF script and where in what file is it placed?
Your chat stats page looks good too, is this SMF or a HTML page?
Yeah definately know how real life can take control. I know we've talked on my forums but I thought I'd also mention this on this thread so others know the answer.
Well the bot I did for the forum is actually a custom bot I wrote in Perl. But here is what it is doing to help maybe explain it better.
- On each new user login or logout and/or 10-15 new text lines do the below
- Generate new .js (javascript) file containing the information about who's logged in, what was last said, etc. I do a .js file because I can then just refer to that file from SMF and any other page.
I'm just doing:
<script language="JavaScript" src="http://www.computerhope.com/chat.js"></script>
and the chat.js file just has javascript document writes in it with quotes if any escaped out.
- Once generated FTP the .js file (as well as the chat stats) to the server.
As far as the stats they're generated with pisg (http://pisg.sourceforge.net/). I've modified the pisg.cfg to point to the users forum profile URL and picture. Unfortunately this requires that I manually update the pisg.cfg each time the user changes their profile picture, but was the best solution I could come to.
As we mentioned on my forums I'll see what I can do to make hopebot (the bot I wrote) available to everyone that wants it once I get the time to clean up the code.
Many thanks MrHope I for one wait with anticipation on the hopebot! :)
Any word on when SMF 2.0 RC1 version of this mod will be available?
mrhope this is a great thing you are working on... since i had to go this route (moving the chat off my server because of the load) i lost all my chatters because they never knew if anyone was in the room and they will never go look... if there is a way to show the users it might bring my chat back :)
Please keep us updated!
Hey there, i just installed this mod and i can't access it.
This might be because i already had the Ajax Chat installed (only want to uninstall it after seeing this one up and runing eh) and no IRC Chat button appeared), so I don't know if it's even working lol
Any link to access the IRC? Like http://www.mysite.com/irc.php?
Hello wise ones...
Been running with this for a while now, just a bit of fine tuning required, is there a means of changing the width to a percentage as opposed to fixed pixel width? It would allow a much slicker auto sizing of the chat area.
$txt['ircWidth'] = 'Width of IRC window (in pixels)';
$txt['ircHeight'] = 'Height of IRC window (in pixels)';
Don't mind inserting the necessary info manually if it has to be that way, obviously would much prefer if it could be entered into the "setup" though.
Closing Link: [207.192.75.252] (CGI:IRC -- No access)
What does that mean?
Im trying to let it connect to: irc.swiftirc.net
Also tried: irc.swiftirc.net:6667
getting that error?
If I connect to quakenet, it DOES work. Just not swiftirc?
I finally got this mod to half work but it only lets 3 users in through mibbit at a time? is there a setting for max users? smf 2.0 beta 3.1 public mibbit 1.4 (my chat button doesnt show but a direct url link works) I routed it to my own IRC Network if that would make a difference.
any news for SMF 2.0 RC1?
thanks!
Hello.. I want to tell for every body that i using this mod for 1.1.5 on my 1.1.9.
if some body get a problem whit that it not find the some file in ./source/ or other location then you can send me the error and the information i need below and i should fix a install that have fix the problem for you.
1. make sure you are using v. 1.1.9
2. What modifications are installed?
3. What files are the installation says that it is wrong?
4. which theme is it you plan to use it on?
Please guide me to change its width, I want to make it more........... tell from which file I can do it mannually...........
Quote from: KCToker on June 18, 2008, 11:04:54 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1256)
------------------------------------------------------------
SMF Mibbit Ajax IRC Mod by KCToker
------------------------------------------------------------
This mod will add a feature to your site to let your users connect to IRC and chat with other users.
This mod adds an admin page to configure several settings about the mod. These can be found at:
Configuration > Features and Options > IRC Chat
Currently this mod is designed to only work with SMF 2.0 Beta 3.1.
Version : V1.4
Version History:
1.1: Added forgotten section of code
1.2: Corrected minor syntax error
1.3: Added an isset() check for widget parameters; syntax improvements
1.4: Added check to see if user was a guest, will now give guests the nick of MibbitUser and will append a random number between 1 and 10,000 to the end
Mibbit Ajax IRC Widget ©2008 Mibbit
Where abouts do I install this?
hi all
how to registred on irc (http://www.mibbit.com)
instaled on smf 2.0 rc1.2 on this packed
Quote from: cieplutki on August 13, 2009, 06:45:20 PM
hi all
how to registred on irc (http://www.mibbit.com)
instaled on smf 2.0 rc1.2 on this packed
well, i know this mod hasn't really been updated since then. However, would like to try if anyone is up for making this mod for SMF 2.0 RC3? Thank you!
Quote from: Achilles. on April 29, 2010, 02:42:33 AM
Quote from: cieplutki on August 13, 2009, 06:45:20 PM
hi all
how to registred on irc (http://www.mibbit.com)
instaled on smf 2.0 rc1.2 on this packed
well, i know this mod hasn't really been updated since then. However, would like to try if anyone is up for making this mod for SMF 2.0 RC3? Thank you!
or atleast any other MOD that works like this one? ;)
I'm running it on SMF 2.0 RC3.
I had to do some manual edits to install it, but it does work with no changes to the codes provided (excluding the fix mentioned at the top of this page).
QuoteSo, greast mod.. got it working fine in 1.1.7 once I corrected the modsettings in the installer for my particular version..
Did (in the case of 1.1.7) have one error that was typographical..
Chat.template.php line 37 needed changed to:
Code: [Select] (http://www.simplemachines.org/community/javascript:void(0);)if ($context['user']['is_guest']) {
Sorry for the incredibly long wait for an update guys. RL got in the way massively ( >:( Army). Just updated the mod to V1.6. The new version works perfectly with SMF 2.0 RC3. An updated version for SMF 1.1.11 is on the way and should drop in a couple of days.
Again guys, sorry for the long wait :(
Error log (default settings):
Undefined index: ircChannels
Undefined index: ircServer
Undefined index: ircHeight
Undefined index: ircWidth
And add please $charset parameter, by example:
echo"
<iframe width=$width height=$height scrolling='no' frameborder='0'
src='http://embed.mibbit.com/?server=" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false&charset=" . $charset . "'>
</iframe></div>";
Updated version for SMF 1.1.11 is now out! I also did a bit of messing with the version numbers which should help to ease confusion about which one should be used.
Quote from: Bugo on August 30, 2010, 11:21:10 AM
Error log (default settings):
Undefined index: ircChannels
Undefined index: ircServer
Undefined index: ircHeight
Undefined index: ircWidth
And add please $charset parameter, by example:
echo"
<iframe width=$width height=$height scrolling='no' frameborder='0'
src='http://embed.mibbit.com/?server=" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false&charset=" . $charset . "'>
</iframe></div>";
Which version of SMF were you using when you got those errors?
Also for charsets, I haven't really dealt with them much, but looking at Mibbit's wiki for supported charsets, it shouldn't be too hard to add of drop-down option in the config page. My only concern would be with an admin's selection of a non-default charset and creating problems for end-users using a different charset.
Again I haven't dealt with charsets much but I'll look into it.
Quote from: KCToker on August 31, 2010, 09:14:08 AM
Which version of SMF were you using when you got those errors?
Rhetorical (or stupid) question? SMF 2.0 RC3.
Quote from: Bugo on August 31, 2010, 09:47:34 AM
Quote from: KCToker on August 31, 2010, 09:14:08 AM
Which version of SMF were you using when you got those errors?
Rhetorical (or stupid) question? SMF 2.0 RC3.
I thought that was it, but I wanted to make sure.
The only thing its sending to the error log is the notice that no values have been entered when it does the check to see if values have been entered XD. If the check comes back negative (meaning no values were entered in the config page) then it sets the values at defaults hard-coded into the script (600x450 widget size, irc.mibbit.com server, #mibbit channel).
I don't think I get this. I went to ibit and set up an account. I chose my nickname and tried to use it on my site. I was told that my nickname was already in use and it wouldn't connect me on my site.
I thought I'd be creating our own chat room which we could use on the site and as I'm the first on my site to connect to it I have to wonder why my username could already be taken.
How do I get rid of the ad's at the top of the chat?
Will mod work with RC4?
Bobn..working for me in rc4
Any chance for an 2.0 RC4 update to fix the subs.php code addtion?
Hi.
i am using latest one on 2.0 RC5.its working normally atm.But i need 1 more thing.On chat login screen there is just nickname field.I wanna use nick and password field (it can work if nick registered).Also you can check my chat on here -> http://hex.us.gg/index.php?action=chat
Regards.
Quote from: Senkusha on January 19, 2011, 09:56:10 PM
Any chance for an 2.0 RC4 update to fix the subs.php code addtion?
I noted that I needed to manually make this change/fix.
Feature Requests:
- Select pixel/percentage choice for the iframe.
- Enable the ability to add a user selected theme to better integrate into the SMF.
(I'm using: src='http://embed.mibbit.com/?server=" . $server . "&channel=" . $channels . "&settings=1529ea977baeb4471a913b48465ca96e" . "&nick=" . $userchatname . "&noServerTab=false'>)
- Linktree does not appear to be correctly updating (I haven't checked into this fully, but I know it isn't working correctly across themes).
Thanks a ton if you are able to check back here at all KCToker, great mod, hope to see more updates! = )
Hi,
i have a little problem with the mod for the mibbit irc, im using the smf 2.0 rc5 but the mibbit irc is for the 1.x or 2.0 rc3, i dowloaded the Mibbit_Ajax_IRC_2.0.zip.
the mod is installed on the webserver and i can change the height and widht and irc server/chan but the mod dosnt work on the forum itself. to me i dont know about any phpcoding or something :-\ can anybody help me?
greets
Installed on RC 5 but there is no chat button?
yap thats my prob too, the addon is installled but smf rc5 cant open the addon. I hope KCToker makes a update for rc5.
If you guys parse the modification you can add the button (notice the subs.php talk just above your posts guys).
I'm not having much luck getting this working on 1.1.13, which is what my host has available to use.
Would you recommend upgrading SMF to RC3, or somehow shoe-horning this into my 1.1.13 install? The issue is there is no chat button nor is there a configuration section for it once installed. I'm not a complete noob to PHP, but this is a bit beyond my skills.
Edited to add that viewing the page source after this mod is installed, I see that the link is in the menu, but there is no label in between the anchor tags so it looks like this:
<td valign="top" class="maintab_back">
<a href="http://lootwhorindramafest.com/index.php">Home</a>
</td>
<td valign="top" class="maintab_back">
<a href="http://lootwhorindramafest.com/index.php?action=chat"></a>
</td>
<td valign="top" class="maintab_back">
<a href="http://lootwhorindramafest.com/index.php?action=help">Help</a>
</td>
Edit Again:
Found where it was set, in the index.template.php and the index.english.php, but I can't see why it's not working.
This value in index.english.php: "$txt['chat'] = 'Chat';"
Corresponds to this chunk in index.template.php:
// Show the [chat] button.
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=chat">' , $txt['chat'] , '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Not sure what the issue is :(
can u u guys give tell me how to run this in SMF 2.0 RC5
...or 2.0.1??
...*blows dust off of thread*
I'm pretty sure I won't be getting an answer to this since it has been so long, however...
I've finally come to add a chat to my site (mibbit irc chat) and received these problems upon installation (see attachment).
How do I fix this? Also, can I continue the installation without my forum exploding?
Please help, thanks!
Quote from: Ruddy Kitty on March 15, 2012, 07:20:37 AM
I'm pretty sure I won't be getting an answer to this since it has been so long, however...
Wrong :P
Quote from: Ruddy Kitty on March 15, 2012, 07:20:37 AM
I've finally come to add a chat to my site (mibbit irc chat) and received these problems upon installation (see attachment).
How do I fix this? Also, can I continue the installation without my forum exploding?
Click the little pencil-on-paper icon to the left, to display a popup of the string in subs.php that's being searched for. Chances are you have a mod installed that changed the line being searched for. I wouldn't proceed with the installation (but I personally would change the mod to fit the line being searched - others might change the line in subs.php to fit the mod)
Holy cow that was fast :O
Which is weird because I don't have any other mods installed.
Here's what the pop up says:
QuoteFind[Select]
'home' => array( 'title' => $txt['home'], 'href' => $scripturl, 'show' => true, 'sub_buttons' => array( ), 'is_last' => $context['right_to_left'], // 'target' => '_blank', ),
Add After[Select]
'chat' => array( 'title' => $txt['chat'], 'href' => $scripturl . '?action=chat', 'show' => true, 'sub_buttons' => array( ), ),
Not sure what to change or how to change it?
Dump a copy of your subs.php as an attachment to your next post.
Okay, I hope this is the right one.
Quote from: Ruddy Kitty on March 15, 2012, 02:54:37 PM
Okay, I hope this is the right one.
How many have you got ???
The mod will try to locate the startpoint string, including tabs & spaces. What you quoted earlier isn't in the format that package manager is being asked to locate, but that's probably the way you copied/pasted it here. Can you requote it showing line breaks, spaces & tabs?
Though looking at what you
did post I'm going to guess the bit at the end of the search string (
// 'target' => '_blank', ),) is the problem as that isn't in your subs.php
A whole bunch, apparently. But they all have more to the names (Subs-Menu.php, Subs-Package.php, etc.)
You see the difference between your subs.php
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
...and the screenie you took? The package manager cannot complete the operation because that string I mentioned previously does not exist.
So, your choice is (as before) to either edit your subs.php to include the string (which will make the installation work) or change the modifications.php file within the .zip package to remove the comment line.
So I need to add THIS LINE: 'chat' => array( 'title' => $txt['chat'], 'href' => $scripturl . '?action=chat', 'show' => true, 'sub_buttons' => array( ), ),
After THIS LINE: 'home' => array( 'title' => $txt['home'], 'href' => $scripturl, 'show' => true, 'sub_buttons' => array( ), 'is_last' => $context['right_to_left'], // 'target' => '_blank', ),
...correct?
Sorry x.x I'm a bit confused.
Yes, but you don't have exactly that line with the // 'target' => '_blank', at the end.
Attached is a copy of your subs.php with the missing line inserted, you can upload that and try the package manager again.
Quote from: Shambles on March 15, 2012, 03:41:56 PM
Yes, but you don't have exactly that line with the // 'target' => '_blank', at the end.
Attached is a copy of your subs.php with the missing line inserted, you can upload that and try the package manager again.
Thank you! It worked perfectly.
So now that this is up, it's using the default coloring etc. instead of the mibbit widget. Is that available?
Glad it worked.
Quote from: Ruddy Kitty on March 15, 2012, 03:59:08 PM
So now that this is up, it's using the default coloring etc. instead of the mibbit widget. Is that available?
That'll be for someone else to answer I'm afraid - I know nothing about this mod - I'm just a code monkey 8)
Good luck.
Heads up for anyone that doesn't want the "Chat" tab showing in their menu items for guest's
In your /Sources/subs.php
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
$context['allow_chat_view'] = allowedTo('chat_view');
In the chat array
'chat' => array(
'title' => $txt['chat'],
'href' => $scripturl . '?action=chat',
'show' => true,
'sub_buttons' => array(
'chat' => array(
'title' => $txt['chat'],
'href' => $scripturl . '?action=chat',
'show' => $context['allow_chat_view'],
'sub_buttons' => array(
Member view..
(http://i48.tinypic.com/142a13b.jpg)
Guest view..
(http://i47.tinypic.com/119aqlj.jpg)
Hope this helps someone
any way to have it so the number of members in the chat shows by the chat button in menu?
I've tried searching this with no luck.
Sorry to bump the topic.. but does anyone know how i can achieve the above post. Would be simmilar to Private Message count i would assume.
Quote from: lesmond on June 12, 2012, 10:36:27 AM
Heads up for anyone that doesn't want the "Chat" tab showing in their menu items for guest's
I have tried this on SMF 2.0.2 and 2.0.3, it only works when i'm logged in as Admin. When i'm logged in as a normal User, it won't work.
Any ideas what's going wrong?
I have installed this mod, it also runs. But don`t get it to the configuration screen.
There are in the admin area in "feature and options," a menu item "IRC-CHAT".
but from the configuration window is nothing to see. I had already installed this mod a long time ago, because I had already changed what. After the Forum has moved to another server, there are any errors, so I uninstalled it again.
(http://music-society.de/gallery/1_16_05_16_8_44_53.png)
Here is the edited files "sub.php" and "Manage settings.php" because an error is determined in it. Please help me. I'm not so good in the edit PHP files
Sorry for my bad english
hy, there are some strange thigns, but here is a siolution.
I installed SMF 2.0.15 , downloaded the Plugin (that is very fine) :) but I did not get ist to work. I followed the manual installation hints, applied them also to local german files, but - no succsess.
What is perhaps imporant to mention, is, that I had changeded from http:// to htpps:// Maybe only there appears the problem, but take it as a hint, please.
If you look on https://widgetmanager.mibbit.com, you can get some information about the concerning content, but, where does than belong to??
O.K, looking to all parts of the package.
The important part is in the file Chat.template.php that you will find in the Templates-directory.
And there is the important part on the end of the file:
Quoteecho"
<iframe width=$width height=$height scrolling='no' frameborder='0'
src='https://widget.mibbit.com/?server=" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false'>
</iframe></div>";
}
?>
Other than you can see on https://widgetmanager.mibbit.com, I had after the istallation noting other to do, than changing "src="
to
src='https://widget.mibbit.com.......
If you change in the downloaded Mod this littel part in the file Chat.template.php before uploading and installing it, I suppose, it will run from startup.
Regards and best wishes!
// Edit: If the Admiministration wants to split this up to a new thread, welcome, team.