News:

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

Main Menu

Complete PJIRC Integration

Started by 3guk, September 14, 2005, 04:03:08 PM

Previous topic - Next topic

3guk

Link to Mod

The Complete PJIRC Integration mod integrates the java PJIRC client fully with SMF.

It takes user names and gives them to PJIRC meaning that users can easily be identfied by their forum name.

The script also features an auto ident for admins, meaning that admins with registered user names on the IRC server can auto Ident without having to manually type /nickserv identify password.

In addition to this it also provides the admin with a guest dissalow function telling the guest to sign up before they can use the chat service.

This mod is based on OIDanTheManIO's mod but takes it a little further and integrates it much more with SMF.

To Do:

-- Admin Interface
-- Working Properly With Mozilla


Anymore suggestions for things that should be added ?

Elmacik

umm.. this would be great..
but.. where is the file?
Home of Elmacik

3guk

Should be fixed now !!

Let me know if you find any bugs.

Elmacik

i glanced at some chat codes for SMF but saw that chaning the irc server is impossible.
i think this is not operative in PJIRC too ..

is there a way to make it possible?
and isnt it possible to hide the server (name, motd, address etc..) to prevent users to register the others' user names on that server?
Home of Elmacik

3guk

Forgive me if you have misunderstood.

But you want users to be able to change the irc server that it is connected too ? This could be done but the whole idea of a chat script is to help users that dont have any knowledge of irc to be able ot chat in a java window rather than MIRC.

I can however code this for you if you need it ??

I do not think you can hide the irc address and again they could register others names but PJIRC takes the server name from the html code and hence without it there it would not work.

Cheers

Elmacik

thanks for the answer.

i meant to change the irc server myself as the site owner. i didnt mean to let the users change it :)
but i want to learn if its possible for me to do it by editing the files..
or will we need to re-code it for a different server ? (i hope not :( )
Home of Elmacik

Menni

Would you plese tell me exactly what should I do? :)

Elmacik

for a simple usage, just install it via your package manager (in admin panel->packages)
you will see the chat button in default theme ;)
Home of Elmacik

Menni

I have installed pjirc integrated chat mod to no button theme(sitra). Can I install this mod above it?

Elmacik

button appears only in default theme. you have to add the buttons to the other themes manually.
Home of Elmacik

3guk

#10
You just need to edit the chat.template file it all in there and it should be commented for easy use.

Menni

I got mod working in default, but what should I change to make it work in sitra?

3guk

Ok,

If you want it to work with a specific theme then you have to :

Open your themes index.template.php and then around line 445 will be different for each them but it is usually quite a long way down.

Find :
   // Show the [home] and [help] buttons.

echo '

<a href=" http://www.ukslc.org/forum ">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', $context['menu_separator'];


Yours again may look slightly different as I have removed the help button.

But on a new line just underneath it add :          echo' <a href="', $scripturl, '?action=chat">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', $context['menu_separator'];
                     
         

Menni

Now I'm confused. I got pjirc integrated chat mod allready working in my forum. I got your mod working in default but not in sitra theme.
this is what I got:
// Show the [home] and [help] buttons.

echo '
<div class="menu" style="background-image: url(' . $settings['images_url'] . '/menu.jpg); background-repeat: repeat-x; text-align: center;">
<a href="', $scripturl, '">',$txt[103],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />
<a href="', $scripturl, '?action=help" target="_blank">',$txt[119],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">',$txt[182],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">',$txt[2],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">',$txt[79],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';
// Integrated Chat Mod Icon
      if (!$context['user']['is_guest'])
           echo '
                     <a href="http://www.myforum.net/keskustelu/chat.php" target="_blank">Chat</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';
                     
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">',$txt['calendar24'],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// The [Gallery]!
    echo '
            <a href="http://www.myforum.net/galleria/index.php?cat=">Galleria</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">',$txt[34],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />
<a href="', $scripturl, '?action=register">',$txt[97],'</a>';

Menni

I specify that I allready have chat buttons and stuff working (alltough theme is no-button theme;)). But how i modify pjirc integrated chat mod to work like your mod?
Or do I have to remove the other to get your mod working?

marinelife


dtm.exe


deathwantsme

I get 2 buttons for the chat with this in the default CSS and would like to know how to add just 1 button on other CSS' Can anyone help me?

d3v

so seriously what's the difference between this and the one posted by dtm.exe

maybe I got the wrong idea but it seems this is a small hack off his work

KenC

I have a question please ...

I installed the mod via package mgr w/o error, but receive
a "Unable to load the 'main' template" message when trying
to access the chat.  I'm using the default template.

Any thoughts ?

thx


Advertisement: