News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PJIRC Integrated Chat Mod

Started by dtm.exe, August 10, 2005, 06:07:43 PM

Previous topic - Next topic

Gwion

I need a bit of guidance too.
As I understand it, if you have the default theme it works fine - and indeed, there is the chat button.
I have a different theme though and from what I have read you should add the chat button to .. where? How?
I tried to figure that out from modifictaions.xml,
package-info.xml and readme.txt but couldn't figure it out.
Maybe I simply overlooked it, I am not sure what I have to search for actually .. something with theme/default/..?

Can someone telle me where I have to change what?


dtm.exe

Quote from: Gwion on October 10, 2005, 03:08:31 PM
I need a bit of guidance too.
As I understand it, if you have the default theme it works fine - and indeed, there is the chat button.
I have a different theme though and from what I have read you should add the chat button to .. where? How?
I tried to figure that out from modifictaions.xml,
package-info.xml and readme.txt but couldn't figure it out.
Maybe I simply overlooked it, I am not sure what I have to search for actually .. something with theme/default/..?

Can someone telle me where I have to change what?



How to make mods work with themes?

Gwion

#282
Ok, I guess I deserved this .. :)  but - I know this thread, I have tried to look into the files for anything with /default .. in the package these files are listed:

modification.xml (2662 bytes)
package-info.xml (2214 bytes)
readme.txt (879 bytes)

I have checked the above 3.

Others are:
Chat.template.php (5370 bytes)
pjirc/english.lng (3966 bytes)
pjirc/french.lng (4132 bytes)
pjirc/irc-unsigned.jar (136035 bytes)
pjirc/irc.cab (88866 bytes)
pjirc/irc.jar (149769 bytes)
pjirc/IRCApplet.class (3585 bytes)
pjirc/pixx-english.lng (2633 bytes)
pjirc/pixx-french.lng (2840 bytes)
pjirc/pixx.cab (52280 bytes)
pjirc/pixx.jar (71359 bytes)
pjirc/pjirc.cfg (734 bytes)
pjirc/securedirc-unsigned.cab (1748 bytes)
pjirc/securedirc.cab (7788 bytes)
Chat.php (187 bytes)

and plenty of gifs and au's.

I guess it must be something else than themes/default but how shall I look for that when I don't even know what to look for .. *sigh*

I hate being a pest but I really don't get it ..

The chat works fine with default btw. so all I need to know is how to adopt a different theme.

Ok, I tried to compare the default theme's index.template.php with my theme's index.template.php.
I  found the bit with the chat, copied and pasted it into my themes's file. It did not work.
I got a parse error and it said something like that " must be escaped with /.
That's all very well but I took the bit directly from the working file and included it into the other one - I don't see why it does not work .. *sigh*

MysticBrewing

I really like this mod...but is there a way to get it to install or work properly with tiny portal installed? the 2 mods work great ...as long as you don't try to add the other...  I know there's another chat mod that does work... but it uses everywherechat and well... lets just say they're the laggiest IRC servers out there....


ynneb

Is there a chat room that uses this mod that I can view b4 I install it ?
I want to see if it is worth the learning curve. :)
Thanks

Al42

Dan, thank you so much!

I was looking for a chat mod that would be as close to real IRC as I could get.  You can't get closer than real IRC.

Again, thank you.  I'm a happy camper.

deathwantsme

hey dan, nice mod, thanks for making it. I was wondering if there was anyway to add a few things.

On a different forum, i can do a whois command with rightclick whois on someones name, but i cant do that with pjirc, any idea why?

I want the applet to use the username from my forum as your IRC name, is this possible?

Is there a way to disable nick changes?

Can you have the mod auto identify users who use the applet when they enter the chat room if they use the same password for both IRC and their forum username?

I think this is firefox's problem, but can you disable the backspace button going back so that you have to re enter the chat room and wait for it to load?

dtm.exe

Quote from: deathwantsme on November 06, 2005, 09:05:36 PM
hey dan, nice mod, thanks for making it. I was wondering if there was anyway to add a few things.

On a different forum, i can do a whois command with rightclick whois on someones name, but i cant do that with pjirc, any idea why?

I want the applet to use the username from my forum as your IRC name, is this possible?

Is there a way to disable nick changes?

Can you have the mod auto identify users who use the applet when they enter the chat room if they use the same password for both IRC and their forum username?

I think this is firefox's problem, but can you disable the backspace button going back so that you have to re enter the chat room and wait for it to load?

Fixes such as those will be included in version 1.1, which I'll release when I have the time to update it.

stormlifter

#288
Yeah, I installed it and well, now what?  I edited the file with the server and channel params...

I have a modified theme... SO what do I modify to get the chat button to show?

Do I need ports forwarded?

Thanks

I modifed my index.template.php according the supposedly automatic changed made by modi...xml from your mod... that is done, now what?

Alright, well the chat button isn't showing up but I can type the chat in manually.
Thing is no matter what I do it still joins the "#mychannel" even though i have #stormlifter set to the channel.

deathwantsme

You need to go into your template file by Themes>(template name)>index.template.php>edit file and add:
<a href="', $boardurl, '/chat.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '

Make sure you add a space and the code AFTER the ['menu_separator'], ' of what you want the button to come after.

rgarrison

Very nice mod worked great out of the chute installing on RC1 just one question is there a way to make the smileys show up so they can be clicked on and not have to know the symbols.

deathwantsme

Quote from: stormlifter on November 08, 2005, 01:08:40 AMThing is no matter what I do it still joins the "#mychannel" even though i have #stormlifter set to the channel.

post or PM me the code. Ill take a look at it.

dtm.exe

Update: Version 2.0 of this mod will be released following the release of either SMF 1.1 RC2 Public or SMF 1.1 Final.

TANDIONO.COM

Im using SMF 1.0.5 .. I've been using PJIRC for quite a while, but lately im having problem with the connection( can't connect to IRC).. This is the message that I got :

[20:16] Connecting...
[20:16] Unable to connect : java.net.ConnectException : Connection timed out: connect

Is there anything that I need to do? Thanks

Reinno

I´m having the same problem connecting with version 1.1 RC1. Oh well we just have to wait for the new release by Dan the man, I guess. Looking forward to it. The mod looks awesome!  :)

dtm.exe

Quote from: www.Hits.FM on December 05, 2005, 07:20:28 AM
Im using SMF 1.0.5 .. I've been using PJIRC for quite a while, but lately im having problem with the connection( can't connect to IRC).. This is the message that I got :

[20:16] Connecting...
[20:16] Unable to connect : java.net.ConnectException : Connection timed out: connect

Is there anything that I need to do? Thanks

Do you have it configured to connect with the proper server?

Irc_Sandman

HI,

I've just installed your IRC chat mod and it installed ok, no probs, just a couple of questions.

How can i get the 'chat' button/icon to appear on my own themes that i've made? also, how can i make it so that only those that are registered on my forums can access the chat? i'm a moderator on irc.icq.com [nofollow] so i got the rooms and nicks thing covered, just need to make it so that only registered forum members can access that chat.
The chat button doesn't show up when a user isn't logged in, but they can access the chat by typing in the chat page's url, and this is what i don't want.

Love the mod, good work :) thank you in advance :)

p0w3r

Quote from: dtm.exe on August 10, 2005, 10:55:55 PM
Quote from: Matthuffy on August 10, 2005, 09:40:30 PM
coool! thanks it now works :)   just 1 point though, why does it have a huge banner in front of the text :(  is there anyway i can move it higher, i realise that you put it there for SM but can i not move it up so that we can read the text? maybe not??

Not that I know of.  But what you could do is go into /pjirc/ and delete background.gif.

-Dan The Man

1st Great mod, congratulations.
2nd I already removed background.gif but the banner still appears in front of the text. How can i remove that image or move it up?
Thank you.

Irc_Sandman

Quote from: deathwantsme on November 08, 2005, 10:51:41 PM
You need to go into your template file by Themes>(template name)>index.template.php>edit file and add:
<a href="', $boardurl, '/chat.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '

Make sure you add a space and the code AFTER the ['menu_separator'], ' of what you want the button to come after.

Thanks :)

in addition to your procedure, i also realised ya need to find this line
global $context, $settings, $options, $scripturl, $txt;

and change it to
global $context, $boardurl, $settings, $options, $scripturl, $txt;

by adding the 'boardurl' , because you have boardurl being called in the initial code for the menu, you need to add it to the list of variables or it won't work. That's what i had to do anyway and it worked :)

Irc_Sandman

Quote from: Matthuffy on August 10, 2005, 09:40:30 PM
coool! thanks it now works :)   just 1 point though, why does it have a huge banner in front of the text :(  is there anyway i can move it higher, i realise that you put it there for SM but can i not move it up so that we can read the text? maybe not??

to get rid of the background image, open up chat.php, and find this line
<param name="style:backgroundimage" value="true">
and change the value to 'false' like so..
<param name="style:backgroundimage" value="false">

the image doesn't show :)

Advertisement: