PDA

View Full Version : Chat Modifications - [CTech] Chat: IRC (Webchat)


CvP
01-05-2011, 10:00 PM
About the Add-on
This add-on utilizes qwebirc (http://qwebirc.org) to provide a web irc interface to your forums. I have created this for my site and releasing here for everyone (free to use). You are not allowed to remove the copyright text.

Features
Easy to configurable admincp options
guest name/prefix
channels to join
server to use
Automatic tab in navbar
stylevars supportFeatures to Come
some navbar related options (dropdown menu)
chat window as a popup window (in menu)
irc:// link in menu
ability to work even if your site is closed (and may be during database problems too)
facebook styled chat (might release it as a separate add-on though)Supported vB Version
check above. It may or may not work on previous versions. I don't really care.

How to Install
Estimate Install Time: less than 2 minutes.
Extract the zip file in your computer
Rename the admincp folder to match your server admincp folder if you have changed it
Upload all the files in /upload to your forum directory
import the product XML using add product in admincp
Configure the product [ admincp > Crimson Tech Products > Chat: IRC ... ]
Enjoy!Support
I will try to support this add-on and add-on users for as long as I can. But no support unless you click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=256645)!
Also, don't forget to rate (https://vborg.vbsupport.ru/showthread.php?t=256645#threadrating) the add-on.


Demo (http://banglagamer.com/forums/chat_irc.php) and Screenshot

http://img259.imageshack.us/img259/9914/capturebe.th.jpg (http://img259.imageshack.us/img259/9914/capturebe.jpg) https://vborg.vbsupport.ru/ (http://img838.imageshack.us/img838/5354/capturemz.jpg)

http://img259.imageshack.us/img259/9914/capturebe.jpg
http://img838.imageshack.us/img838/5354/capturemz.jpg

Version History
0.0.1
Initial Release
0.0.2
Fixed two file names [ .\packages\ctech\chat_irc\plugins\ ]
wol_display.php => online_location_unknown.php
wol_process.php => online_location_process.php
Fixed a typo in chat_irc.php that was affecting guest names
To update: replace the files with new ones. Import the product xml if you wish.

Cheers.

PS: Up until now, I've only been modifying things to suit my needs. This is my first add-on created from scratch :)

CvP
01-06-2011, 07:01 PM
Reserved for future use :)

bulldog51981
01-06-2011, 07:07 PM
Screenshot or demo?

CvP
01-06-2011, 07:42 PM
added. thanks.

OldSchoolDSL
01-06-2011, 07:47 PM
Uses outside content. would like to see one where the content was localhost

Cool idea though

CvP
01-10-2011, 04:19 PM
Uses outside content. would like to see one where the content was localhost

Cool idea though
you are free to host qwebirc on your "localhost" and tell this add-on to use that.
I will probably do it soon and when I do, i will integrate it even further.

VAStudios
01-14-2011, 03:29 PM
So I've attempted to do this myself; but it's time to ask the experts.

I'm trying to get it to link to an EFnet server and channel. So, originally I just changed the server to "http://chat.efnet.org" but that took away the added functionality of knowing the forum-users name and default channels I specified.

I can do it that way and just force people to put in their usernames and the channel; but I'd rather have that information in there already when they click on "Webchat" along with the preset prefix I've defined for them.

I feel like I'm close... and maybe just not using the correct original link because I noticed that by default it is - http://qchat.rizon.net

CvP
01-15-2011, 03:45 AM
It seems EFNet has two instances of webchat.

http://chat.efnet.org
http://chat.efnet.org:9090

We are looking for the 9090 one :)

Jeremy8
01-15-2011, 04:57 AM
is it possible to show users online in a navtab or somewhere on the home page?

CvP
01-15-2011, 05:15 AM
Not with this add-on.

However, if you can run an irc bot on your server, it should be pretty easy to get online user list and display anywhere.

lapiervb
01-15-2011, 11:43 AM
Will this slow down the site or require more bandwidth.

CvP
01-15-2011, 11:50 AM
Will this slow down the site or require more bandwidth.
Not at all.

Dr.osamA
01-17-2011, 10:06 PM
Excellent = 5 stars

installed under test

Jeremy8
01-19-2011, 09:37 PM
So if someone with the username Bob enters the chat, will their name automatically be Bob in the room?

tlwwolfseye
01-19-2011, 10:11 PM
Is there no usergroup permission setting ?

CvP
01-20-2011, 07:06 AM
So if someone with the username Bob enters the chat, will their name automatically be Bob in the room?
yes as long as someone has not registered that nick in IRC.

Is there no usergroup permission setting ?
Since IRC is accessible using any irc client (desktop, web, mobile etc), there is no benefit in blocking it by usergroup as anyone can join using those methods.
What type of usergroup permission are you looking for?

Jeremy8
01-20-2011, 01:15 PM
So what does it do if the user's name is already taken on that network? Does it change their name to that but then the IRC tells them to login etc?

edit: nvm, tested it. puts an underscore after name

CvP
01-20-2011, 01:28 PM
So what does it do if the user's name is already taken on that network? Does it change their name to that but then the IRC tells them to login etc?
If username is taken, it will ask for the password. The user will be renamed to Guestxxxxx after 60 seconds if password is not provided.
If username is taken and that user is online, username will be changed to username_.
This is standard IRC behavior.

Demo is working. If it doesn't load, it means the qwebirc is unavailable at that moment (usually due to updates).

cloferba
02-02-2011, 08:57 PM
can i create my own irc server?

CvP
02-02-2011, 10:08 PM
can i create my own irc server?
You need to run an ircd in your server.
http://en.wikipedia.org/wiki/IRCd

Crogge
02-04-2011, 12:36 AM
Well I tested it today because it looks promising. I installed it and noticed that it takes up to 5 minutes to load, then its working just fine.

Any idea why it takes so much time till it loads the chat? Some users said they get no chat at all and it would show only the website of the IRC server.

CvP
02-04-2011, 03:55 AM
It takes only 2/3 sec for me to load.

You need to understand that this is a "wrapper" for qwebirc which is hosted by the irc server site (or you if you can setup qwebirc yourself). If the irc server site is having problem, it wont load.

Nano_
02-05-2011, 11:47 PM
CvP, any chance to make an option to set permissions to usergroups (like "guests = don't view this page)" and force plugin to set username chat (nick) to be the same as username (forum)?

I have a IRCD running on my VPS only to my site, so i want to enable this function. Probably i'll put some restrictions on IRCD to other clients on server (like clients wich don't connect with qwebirc = killed).

Sorry for poor english.

Regards.

CvP
02-06-2011, 05:38 AM
CvP, any chance to make an option to set permissions to usergroups (like "guests = don't view this page)" and force plugin to set username chat (nick) to be the same as username (forum)?

I have a IRCD running on my VPS only to my site, so i want to enable this function. Probably i'll put some restrictions on IRCD to other clients on server (like clients wich don't connect with qwebirc = killed).

Sorry for poor english.

Regards.
Sure it can be done however what if i use another qwebirc instance?
You will need to
- host qwebirc yourself and
- customize it in someway so your ircd can identify it among all qwebirc instances

I believe it already sets the forum username, does it not?

Crogge
02-07-2011, 09:05 PM
It takes only 2/3 sec for me to load.

You need to understand that this is a "wrapper" for qwebirc which is hosted by the irc server site (or you if you can setup qwebirc yourself). If the irc server site is having problem, it wont load.

Well I guess that explains it, thanks. The target is loading really slow for me so the only option seems to be a local qwebirc.

HansMuenchen
03-27-2011, 08:08 PM
Hello,

I have running a own IRCD Server. I want now to know what I must do to run the addon with a own server?

Thnx
Hans

CvP
03-28-2011, 03:03 AM
Hello,

I have running a own IRCD Server. I want now to know what I must do to run the addon with a own server?

Thnx
Hans

http://qwebirc.org/faq

thunderclap82
04-22-2011, 12:21 AM
Installed and working on our site. The only issue I have is that in the bottom right corner (cut off mind you) you can register your nick. But, after entering the asked for information, no email is sent to register your nick to your password. Minor, but I would like to see if fixed. Still, I like it a lot. Better than the flash alternative.

CvP
04-25-2011, 12:20 PM
Installed and working on our site. The only issue I have is that in the bottom right corner (cut off mind you) you can register your nick. But, after entering the asked for information, no email is sent to register your nick to your password. Minor, but I would like to see if fixed. Still, I like it a lot. Better than the flash alternative.

can you tell me which browser are you using?

LBGSHI
04-27-2011, 08:40 PM
Tried to install, but got the error: Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in [...] Any idea?

Please PM as well if you respond...thanks in advance.

CvP
04-28-2011, 02:56 AM
Tried to install, but got the error: Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1083 in [...] Any idea?

Please PM as well if you respond...thanks in advance.

Make sure you are on latest vBulletin (at least 4.1.0) and try to disable all other mods. Then check again.

Trek
05-22-2011, 01:52 AM
Installed and working great, thanks much!

marinelife
07-16-2011, 03:28 AM
is there a way to remove the tab so I can add my own with group permissions?

daydie
08-21-2011, 12:53 PM
how do i ban users or block any1 spamming

CvP
08-22-2011, 05:14 PM
<a href="http://www.irchelp.org/irchelp/changuide.html" target="_blank">http://www.irchelp.org/irchelp/changuide.html</a>

daydie
09-06-2011, 07:15 AM
btw some1 else is admin how? i moved servers hosting, how i become admin again? and remove others?

CvP
09-07-2011, 07:32 AM
btw some1 else is admin how? i moved servers hosting, how i become admin again? and remove others?

admin in channel is not determined by this mod. It is determined by the irc server you are using. If someone has taken over your channel, you need to contact the irc server's support channel; usually /j help

GhostHunter2010
01-28-2012, 01:16 PM
this connect to different server there is no configuration about own server like unreal etc i have 3 servers ... anyways cool idea but not for me lol i already have installed qwebirc an hosted on my own server but if u want this mod to be used m8 u must do more it will be best for people to add own server etc good luck

CvP
01-29-2012, 05:41 PM
this connect to different server there is no configuration about own server like unreal etc i have 3 servers ... anyways cool idea but not for me lol i already have installed qwebirc an hosted on my own server but if u want this mod to be used m8 u must do more it will be best for people to add own server etc good luck
If you already have qwebirc hosted, just use that url in the options and it will work just fine.

GhostHunter2010
01-29-2012, 06:16 PM
i tried didnt work m8

MNNLeafre
01-31-2012, 02:17 AM
Is it possible to put this in the forum home page?

Bisha
01-31-2012, 05:37 PM
Do we need a IRC server?

GhostHunter2010
01-31-2012, 05:56 PM
yes bisha u must have your own unrealircd server or u can run it with someones else server i use the same as this but i host my own servers

CvP
02-03-2012, 03:49 PM
Do we need a IRC server?
No. You can use dalnet, rizon etc.

lolrofllol
02-04-2012, 09:02 AM
Hey I would like to remove the confirmation for people leaving the page when they have qwebirc open

Thanks so much =]

Gadget17
05-25-2012, 07:54 AM
Now with 4.2 we have Navigation manager, how can I change to control the tab from with that?

sectomy
07-05-2012, 11:57 AM
is it possible to replace spaces in names with another character ?
like space = _ ? If yes, how to do it, cause were a Clanboard with all names starting like:
XO Username
so if anyone join the chat, it only displays: XO
and if there more then 1 in the chat, it could be difficult :D

CvP
07-06-2012, 09:37 AM
On chat_irc.php, change bbuserinfo.username to whatever you want. Then save that variable to something else; register that variable to ctech_chat_irc_index tempalte. Then use that variable in below code from template.

<iframe width="{vb:stylevar ctech_chat_irc_width}" height="{vb:stylevar ctech_chat_irc_height}" src="{vb:var vboptions.ctech_chat_irc_server}/?nick={vb:if "$show['member']", {vb:var bbuserinfo.username}, {vb:var ctech_guest}}&channels={vb:var vboptions.ctech_chat_irc_channels}&uio={vb:var vboptions.ctech_chat_irc_uio}"></iframe>

sectomy
07-07-2012, 08:36 AM
hi,

thx but i cant find bbuserinfo in that php file....
could u help me in that case please..
i only want to replace a space in the vbb username to an "_"

so the user can simple go to the chat and use his normal vbb username.

thanks in advance

sectomy
07-13-2012, 09:57 AM
mh.... or could any other help me out with this please ?

ywwz
07-14-2012, 03:13 AM
Installed, works great, One question, how to edit the color of the border??? Thanks!

RedTurtle
07-17-2012, 07:23 AM
hi,

thx but i cant find bbuserinfo in that php file....
could u help me in that case please..
i only want to replace a space in the vbb username to an "_"

so the user can simple go to the chat and use his normal vbb username.

thanks in advance

in chat_irc.php underneath the line that says:

$ctech_guest = $vbulletin->options['ctech_chat_irc_guest_prefix'] . $vbulletin->options['ctech_chat_irc_guest_text'] . rand(1000,9999);

add:

$ctech_user = str_replace(" ", "_", $vbulletin->userinfo['username']);

then underneath the line that says:

$templater->register('ctech_guest', $ctech_guest);

add:

$templater->register('ctech_user', $ctech_user);


Then find your ctech_chat_irc_index template and find {vb:var bbuserinfo.username} and replace it with {vb:var ctech_user}


This fixes the issue of usernames with spaces in them being cut off after the first word. I don't take credit or responsibility for this.

CoffeeLovesYou
08-08-2012, 06:21 AM
Develop for 3.8 please. Tried installing on 3.8.7 forum and I get this;
Fatal error: Call to undefined function render_navbar_template() in forums/chat_irc.php on line 26
Most likely because that isn't a function in 3.8.7, rather for 4.0.x. If you could tell me how to make it compatible, would thank ya bunches. Marked as installed and nominated :D

hype901
08-14-2012, 06:01 PM
How do I get around this error:

[13:58] == *** (qwebirc) Looking up your hostname...
[13:58] == *** (qwebirc) Couldn't look up your hostname!
[13:58] == Disconnected from server: Connection to IRC server failed.

hype901
08-14-2012, 06:06 PM
Okay .. it worked this time.

stoute
09-01-2012, 02:02 PM
:wolfe.freenode.net NOTICE * :*** Looking up your hostname... :wolfe.freenode.net NOTICE * :*** Checking Ident :wolfe.freenode.net NOTICE * :*** Found your hostname :wolfe.freenode.net NOTICE * :*** No Ident response ERROR :Closing Link: 127.0.0.1 (Client Exit)

This is the error that I get when trying to connect.

Guest Username Prefix:
Guest Username: Guest
IRC Server: http://Irc.freenode.net:6667
Channels to Join: GRP
User Interface Options: Mj10cnVlJjc9dHJ1ZSY5PTIxNQ08

rasun2
10-07-2012, 12:26 PM
thank you for this great Add-on :up:

Every time i click to web chat tab it will connect to the cannel #BanglaGamer. Can I choose a new one and set it as default for all users?
Is it possible to connect to euirc channels? If yes how I can do that?

CvP
10-08-2012, 05:48 AM
thank you for this great Add-on :up:

Every time i click to web chat tab it will connect to the cannel #BanglaGamer. Can I choose a new one and set it as default for all users?
Is it possible to connect to euirc channels? If yes how I can do that?

You can configure all these options from admincp options!

rasun2
10-09-2012, 09:58 AM
I couldn’t find these settings. Can you tell me where in the admincp I can make these changes?

TheSupportForum
10-09-2012, 01:02 PM
lol you seriously but a copyright text for an IFRAME template
credit should got to the IRC client that gave the IFRAME code

CvP
10-10-2012, 10:20 AM
I couldn?t find these settings. Can you tell me where in the admincp I can make these changes?

admincp > settings > options > Crimson Tech Chat: IRC

lol you seriously but a copyright text for an IFRAME template
credit should got to the IRC client that gave the IFRAME code

It does a little bit more than iframe code. Who is stopping you from copy pasting iframe code?
Also, the qwebirc is properly credited which you'd see if you weren't blind.
Thanks.

Raptor
03-04-2013, 08:06 AM
is it possible to get this working on vb3.8 ?

NoMatt3r
04-05-2013, 04:55 PM
Get the following error messages:

Warning: include([path]/packages/ctech/chat_irc/plugins/cache_templates.php): failed to open stream: No such file or directory in [path]/includes/class_bootstrap.php(1419) : eval()'d code on line 109

Warning: include(): Failed opening '[path]/packages/ctech/chat_irc/plugins/cache_templates.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in [path]/includes/class_bootstrap.php(1419) : eval()'d code on line 109

Using vBulletin 4.2.0 Patch Level 3

CvP
04-06-2013, 08:06 AM
Did you upload all the files properly?

NoMatt3r
04-07-2013, 05:54 PM
Yes, i've uploaded all files again and tried to re-install but still the same error.

And if i click on the navbar "Webchat" i get 404 Not Found. Really weird. Other addons work fine.

EDIT: Although, i've done nothing the add-on works now as supposed to. It might have been my webserver. Thank you anyway. Great add-on!

franzes80
03-02-2014, 08:49 AM
Hello we have Navigation manager, how can I change to control the tab from with that?I want only users register view webchat

Dragaon
01-07-2015, 11:42 AM
I just installed the mod and I'm getting this when trying to load the chat
qchat.rizon.net uses an invalid security certificate.
The certificate expired on 01/03/2015 03:44 PM.
The current time is 01/07/2015 08:38 AM. (Error code: sec_error_expired_certificate)

I will unload it until this issue is resolved. i hope that's soon, seems like a good mod.

Dragaon
01-07-2015, 02:18 PM
i just changed the server it connects to in options to https://qwebirc.afternet.org and the mod works fine. If the cert gets updated on rizon i'll set it back.

Marked as installed, nice work :)

user25148
08-18-2015, 08:43 PM
Works great. Anyone know how to get it to show up in the forums instead of in its own navtab?

friendlymela
10-08-2015, 08:12 AM
will check it

Ordovicium
07-21-2016, 09:47 PM
Is there a vb5 version available?

Ordovicium
09-02-2016, 08:47 PM
Any chance for a vb5 version?

Dave
09-02-2016, 09:13 PM
Any chance for a vb5 version?

I feel like the chance of that happening is 0%. The developer of this plugin isn't active anymore.