WP-IRC WordPress Plugin

89 Comments so far

Follow up comments through RSS Feed | Post a comment

  • rokoroko says:

    Hi Sudar,

    I have displayed this error as i have ativated and saved from managed option:

    Warning: fsockopen() [function.fsockopen]: unable to connect to irc.freenode.net:6667 (Connection refused) in /home/fullhd/public_html/wp-content/plugins/wp-irc/wp-irc.php on line 213

    • Sudar says:


      You need to enable socket connection in your php.ini file. Ask your webhosting support team to do it and the Plugin should wok after that.

  • Mafisto says:

    Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /usr/home/web/web195496/wp-content/plugins/wp-irc/wp-irc.php on line 16

    http://www.squnk.dk i try to connect to quakenet.org
    what is wrong here

    • Sudar says:


      You are getting this warning because safe mode is enabled in your webserver.

      In safe mode we cannot set time limit, but I am setting time limit so that the connection doesn’t timeout.

  • Mafisto says:

    So if my host do not alowe safe mode what can i do

    you said :
    but I am setting time limit so that the connection doesn’t timeout.
    can i remove that line 16 or what can i doo

    • Sudar says:


      Comment out that line. It will reset the timeout to the default which is specified in your php.ini file and will also remove the warning message.

      Try it out and let me know if works.

  • Mafisto says:

    Warning: fsockopen() [function.fsockopen]: unable to connect to irc.quakenet.net:6667 (Connection refused) in /usr/home/web/web195496/wp-content/plugins/wp-irc/wp-irc.php on line 210

    so i guees host need to open sockets tho its strange i use another chat on same host on another site ant peaple connect to the channel

    this scripting is very nice i like to speak more abaut that
    anyway the time limit error is gone

    • Sudar says:


      Yeah, I am using fscokopen to open a socket connection with the irc server.

      Nice to know that you like my code. It still needs some cleaning and I will try to see if I can retrieve the information without using sockets.

      You can contact me any time. You can find my email address in the contact page.

  • Mafisto says:

    i sure will do that
    i hope you will be able to come around the fsoxkets

  • Mafisto says:

    hey again did you look at the retrive information without using sockets.
    ye i no we are all bussy with stof we have sorry
    anyway when and if you can fix that problem i have many sugestions and things on my mind in developing this plugin πŸ™‚
    regards kim denmark
    ps do you code in ather language and what language (code)

    • Sudar says:


      I am sorry, I am yet to figure it out.

      Regarding your second question, I can code in a handful of languages like Java, Python, Ruby, JavaScript etc. But I prefer PHP most of the time.

  • Mafisto says:

    hello suder again i like to make this nice plugin to work and maby olso to make some other codes in it so i contacted my host and he move my hole server to another server that work with safe mode off if i put a .htttaces in the root i did that now it saus this
    only thing i need is how many peaple ???? what did i doo wrong
    i send you a mail with some info iff you have use 4 it

    There are currently people in #Anticheat.org
    Get alert when ..

    users count reach mroe than

    Your name

  • Mafisto says:

    hello again i have safe mode off sockets are open
    why dont it tell me how many peaple are in the channel

  • Mirc says:

    turkce mirc indir

  • mirc says:

    Mirc indir yΓΌkle Thanx

  • simon says:

    Hi, nice plugin, got some issue with it…. uhm.. it dosnt want to show how many it is in the channel, im thinking if it requemint open a the port or something else?

    im trying with #php @ quakenet.org..

  • donnyDarko says:

    I’m using wordpress 2.9.1 and I am trying to run your wp-irc plugin. I’m getting the error:

    Warning: fsockopen() [function.fsockopen]: unable to connect to irc.mibbit.com:6667 (Connection timed out) in /home3/mysebsite/public_html/wp-content/plugins/wp-irc/wp-irc.php on line 213
    There are currently 0 people in #jessesfc

    Is this a plugin error with the latest version of wordpress – or is this a hosting error πŸ™

  • Ragle says:

    You indicated earlier that the php.ini file needed to be edited to allow socket connections. Below is the text of my php.ini file. Can you give me some idea of what I need to put in or edit to make this work? I am getting the same socket connection error as the other guy.

    register_globals = off
    allow_url_fopen = off

    expose_php = Off
    max_input_time = 60
    variables_order = “EGPCS”
    extension_dir = ./
    upload_tmp_dir = /tmp
    precision = 12
    SMTP = relay-hosting.secureserver.net
    url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”


  • CAG says:

    Hey there. I have just installed your wp-irc plugin and activated it with all the info. I have been watching it with no result. It simply isn’t doing any thing. Is there a more advanced set up instructions? Thought maybe I’m missing something.

    • Sudar says:

      Check whether you have enabled sockets in your php.ini file.

      • CAG says:

        Okay. I’m sure I’m going to sound like an idiot. But here are the php.ini files located. And what do you mean “sockets”.
        I’m sorry to sound like such a noob, but this is all new to me.

  • brandido says:


    i just uploaded this plugin.

    i activated the plugin.

    so what’s next?

    i dont see the chat page on my site. it is not showing on my site

  • moro says:


    I tried to set up the plugin, but the user doesn’t appear on my Server, so I can’t see how much users there are on the server via WP IRC.
    Server: irc.morosystems.de
    Port: 6667
    Channel: moroNet
    Nickname: ircbot
    Interval: 5
    Alerts: False

    I get no warning/error, please help me!

  • Funny says:

    this is a bad plugin?

  • This plugin is working as is should .. If people know how to make it work, they probaly dont wrote the right server name or have some webhosting issues ..you could se it on my site

    I just translate it to danish btw.

    But one thing is why is it necessary to have a nickname in when its not a “bot” there is actually joining the channel or would it actually be possible to make it join , just for backup if Q is missing ? .. πŸ™‚

    • Sudar says:

      It actually joins the channel, before getting the list of people of who have joined. That’s why you need the nickname.

      • But its not joining the channel at least is not viewable .. :S .. But it show how many people there is .. but i had to disable it because it make my site load slow

  • James says:


    I am a blind user and I think this is going to be a repeat post but I do have an addition to my last post.

    After installing the plugin, I saw where it says you can use a tag like [count] and I am assuming this is the same as a short code? So I could drop this [count] anywhere in my post or page to retrieve the number of people in said channel?

    And my additional question…

    The nickname area. I have a bot in my channel as is and I was using that nick in the nickname area but it was saying 0 people in said channel. Obviously its wrong because the bot itself is in the channel. Do I have to specify a certain nick in this nickname field?

    Thanks in advance

    • Sudar says:

      Hello James,

      The template [count] can be used only within the widget. I am working on creating a shortcode and will let you know once I am done with that.

      I guess the Plugin is facing some problem in trying to connect to irc. You might have to check your server settings.

  • Hello again .. I still want to say as i say before this plugin work nicely, but i seem to have loading issues with site when this is active, it make the site load slowly, and there i have to deactivate this plugin .. is there any way to make it not slow the load of website down ? Or is there a update soonl

    • Sudar says:

      The Plugin is making the site slow, because it has to create socket connections to retrieve the count, on the same request that is serving the page. I am working on an AJAX based solution that will move the socket connection part to a separate request.

      Will let you know once I am done with that.

  • James says:


    Well, in the interim, while awaiting a response, I have discovered a few things regarding my issues stated in my last post.

    First of all, I am on shared hosting with Godaddy and they only allow sockets opened on ports 80 and 443. I find this confusing since I use a Mibbit irc chat wp plugin which allows my wordpress users to chat and the server, irc.sorcery.net, is on port 7000. I figured, since the Mibbit chat plugin is allowing people who visit my website to chat through my website, and as a result, through Godaddy, that the wp Irc plugin should work? I am not all that familiar with sockets, ports, php, etc, so I am sure their is a rational explanation to it all.

    Also, when the wp irc plugin was activated, it was slowing my site down too when it was loading, even to the point of cutting off some of my other activated widgets below it.

    So, unless the socket protocol can be changed, I won’t be able to use this plugin. Well, I could if I upgraded to a virtual dedicated server which would be doubled what I am paying now monthly for shared hosting. I can’t justify that expense just to count the number of people in my channel.

    I could implement a work around which would require an automatic ftp program and a mirc script inside a bot in said channel. The bot would keep track of the number of visitors and store it in a text file, and the ftp program would find that file, upload it to a folder I specify on my wordpress, and place the retrieved file in the place I want. It would then display the number of visitors. It would just be a simple text value so it wouldn’t be all that graphically appealing… But it would work.

    Anyways, it would be a rather clumsy work around.

    I welcome anyone wishing to explain this port 7000 thing as explained above.

    Thanks in advance

    P. S.

    Sorry for the long post. I can go on and on at times. πŸ™‚

    • Sudar says:

      My guess is that Godaddy is blocking the port which the Plugin is using. Let me check.

      But I guess mibbit irc Plugin might be using some other port. Can you give me the url of the Plugin that is working so that I can find out what is happening in the code.

  • James says:


    Thank you for taking the time to check out my issues. Here’s the url to the Mibbit irc chat plugin I am using.


    Thanks in advance

  • Casey says:


    I am trying to use your plugin (great idea by the way) but it seems that it will not correctly display the number of users in the channel, always shows 0. However it does connect to the IRC server. Just don’t know where to go from there.

    Using latest version of WordPress. Could you please check to see if anyone is having this issue as well? Thanks


    • Sudar says:

      I am working on a new version of the plugin. Just give me a couple of days.

      • That sound awesome πŸ™‚ .. No need to hurry , i could wait 2 more weeks if it should be necessary .. πŸ™‚ I Have this thing , you can never complain over free things isnt have a actually deadline πŸ™‚ .. But Good to hear.

    • I had this problem , but i think you have to make sure its 6667 in the Port .. etc .. but i did get mine to work, but because it make the site go more slow , then i disconnected it, i hope admin are trying to fix this somehow πŸ™‚ because its a great plugin.

  • Casey says:


    I was actually able to figure it out without having to edit any of the code. What happened was my IRCd did not have a MOTD set, and the code was looking for the end of the MOTD to continue and grab the /LIST $channel — I added an MOTD to my IRCd and everything works properly now. This is a really cool plugin, and I’m pretty good with PHP so I’ll probably modify it a bit and add some more functionality, but I also can’t wait to see what you have in store for any updates to it! I have some great ideas I think would be awesome to add into it.


  • Any progress on a newer version?

  • Nikita says:

    Hi! I’m trying to get this widget working but it shows 0 people… server is irc.u-net.in #lounge.
    Someone got any clues how to debug it? :]

  • I have now make a “Complety Fresh” install of wordpress with no Plugin what so ever .. and only install theme, and import news, so no plugins at all. Now it works but show 0 on my channel – and the “wp-irc-bot” isnt on my channel if it was suppose to join.

    I am on quakenet

    Server i have tried irc.quaknet.org and se.quakenet.org – port 6667 and in channel wrote my channel name ps3geeks with out #

  • I have disable all things now and now it works as i say ..but where do i need to add that MOTD code what file ?

  • Anonymous says:

    PHP Warning: implode() [function.implode]: Invalid arguments passed in /home/alenhoff/public_html/wp-content/plugins/wp-irc/wp-irc.php on line 98

    the line is
    $content = str_replace(“[users]”, implode(” “,$users), $content);

  • artur says:

    Hmm… doesnt work for me… sockets support is enabled. Not joining a channel.

    • artur says:

      Okej, now I edited the channel in widget and added the # but the bot did not join and it count users to one.. ???

      • artur says:

        Okej, now its suddenly works

        • artur says:

          Right, Im sorry to bother you with so much question. The bot joins and parts the channel when I relaod the page. So, if I go to another URL on my site it joins and then parts. is there a way of making the bot join the channel periodically or maybe even stay online all the time???

          • At least you have a bot there joine i dont have anything there are joining and i am using QUAKENET

            • Sudar says:


              I know the Plugin is not working for you. But unfortunately, I don’t know why it is not working for you πŸ™

              • Yeah but i dont know if it is something to do with Quakenet i dont know because i would love to have this plugin work for me .. πŸ™‚ Still good plugin even i cant use it.

                • Sudar says:

                  Yeah that’s where I am struck. I am not able to find out whether the issue lies in your server code or in my Plugin code πŸ™

                • Anonymous says:

                  Try to connect with two irc-clients from the same host… it might be som local host restriction, or try another open server that you know you can connect with.

                  • artur says:

                    Svend as i said, on IRCnet you cannot connect with two background processes unless truset host. Too many host connection global is the error. I dont know if thats the issue with quakenet.
                    What does the error.log file say? You find it in /var/logs/apache2/error.log

          • Sudar says:

            In the widget, there is an option to specify the time interval at which the Plugin should connect to the irc server. You can specify a slightly higher value there.

            • Anonymous says:

              Yeah, but take a look at this:
              19:03:24 -!- fl400 [www-data@fl400.net] has joined #fl400
              19:03:24 -!- fl400 [www-data@fl400.net] has left #fl400
              19:12:04 -!- fl400 [www-data@fl400.net] has joined #fl400
              19:12:04 -!- fl400 [www-data@fl400.net] has left #fl400
              19:18:41 -!- fl400 [www-data@fl400.net] has joined #fl400
              19:18:41 -!- fl400 [www-data@fl400.net] has left #fl400

              The time interval is varying.. sometimes when I browse through the website it appears. Doesnt really depend on the interval set in settings.

              • Anonymous says:

                Besides, it should be cool if its just stayed there, not joined/parted. Thats irritating πŸ˜‰ I can donate some amount for you to take a look at this πŸ™‚

                • artur says:

                  Thats me not anonymous πŸ˜‰

                  • artur says:

                    19:18:41 -!- fl400 [www-data@fl400.net] has joined #fl400
                    19:18:41 -!- fl400 [www-data@fl400.net] has left #fl400 []
                    19:29:16 -!- fl400 [www-data@fl400.net] has joined #fl400
                    19:29:16 -!- fl400 [www-data@fl400.net] has left #fl400 []
                    19:35:03 -!- fl400 [www-data@fl400.net] has joined #fl400
                    19:35:04 -!- fl400 [www-data@fl400.net] has left #fl400 []
                    21:01:47 -!- fl400 [www-data@fl400.net] has joined #fl400
                    21:01:48 -!- fl400 [www-data@fl400.net] has left #fl400 []

                    The same problem, as soon as I start to browse the bot joins.

  • Zeljko says:

    Script doesnt work for me in 2017….no errors, there are 0 users on channel….. i dont know why.

16 Trackbacks/Pingbacks so far

Leave a Reply to moro Cancel reply

Your email address will not be published. Required fields are marked *