News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

mrtrc266

For now find....

/chat/lib/template/shoutbox.html

<input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />


Add After
<input type="image" src="img/pixel.gif" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>

It won't toggle an image or anything but it will turn the sound on/off in the shoutbox

TheListener

Please please remind this old fossil how to change ajax chat to the name of the forum.


mrtrc266

Quote from: Brack1 on February 17, 2010, 09:35:29 PM
Please please remind this old fossil how to change ajax chat to the name of the forum.



It's somewhere located in one of the files in /chat

I can't remember LOL

TheListener

Sheesh another one with an old memory eh?

Thanks bud.

Hows California lately? Still doing them long work shifts?

Melanie Fine

Error message 'Unable to load the 'Shout.english-utf8' language file.'

The mod loaded successfully - it says it is installed, but I have lots of these error messages and cannot see any features/options of the chat at all.

Any ideas?

thank you!
-Melanie

jetli68

when will this be updated for  SMF 2.0 RC2  tia

More-to-life

Quote from: ac99 on November 11, 2009, 04:37:17 PM
Hi there,

Well, after I was unsuccessful with Hark's Park Shoutbox, now it appears that this Ajax Chat doesn't like me either... the problem is that shoutbox shows blank and nothing i can write appears on it. I've tried 4 different browsers, didn't work.



And nothing...



...and nothing...



Damn :(

Below is my configs:


I'll try also the modification for Pretty URL's (which I use in fact):


I've checked permissions to and changed chat/index.php and shoutbox/index.php to 755

Please give me an hand :)


EDIT:
Well... forget, already solved. That line on .htaccess shouldn't be at the end but at the top, above all other Pretty URL's "instructions". Weird, but true :)

Im quoting this & making it bigger so other members dont miss it because its so important as it took me 3 days to work out that this was the problem with the .htaccess file
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

[unplugged]

The RC2 version is attached to a post here.

(That font looks so tiny following the post above....)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



More-to-life

http://www.simplemachines.org/community/index.php?topic=257973.msg2506573#msg2506573

If your having a problem with the chat mod RC2 install & cant see members or any posts the link above might help you solve this issue
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

mrtrc266

#5149
Quote from: welshbikers on February 18, 2010, 04:52:16 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg2506573#msg2506573

If your having a problem with the chat mod RC2 install & cant see members or any posts the link above might help you solve this issue

Thank you welshbikers , I have added to the FAQ's to specifically add that edit to the top of the .htaccess file
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

gitchuone

I'm sure I'm missing this somewhere, and/or this is not entirely updated for use in SMF 2.0 RC2. I've seen your site, and it works like a charm there, so I KNOW it does work.

I'm having trouble getting started.

My index.template.php does not contain the lines I'm supposed to find and replace from step 1.... so... uh, now what?  :o lol

Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here:D

The edits below will add the following to your AJAX Chat Room & Shoutbox.
       

  • Adds all of the BBC Buttons to your Shoutbox.
  • Adds the Font Color Palette to your Shoutbox.
  • Adds custom Smileys to your Chat Room and Shoutbox.
  • Makes the Font Color Palette PopUp in the Shoutbox.
  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.
Here we go.....First just do a couple edits to these files.

yourforum/Themes/yourtheme/index.tempalte.php
Find
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Replace with

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <tr>
            <td width="50%">
                  <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
      </td>
         <td width="50%" align="right">
      <div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
               </td>
            </tr>
         </table>
      <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>




Morfus

#5151
Enable online chat users numbering on chat button, how do i get it to work on a custom theme?
I have a menu in a "TP block" and like to add it into a "div" if it any help :)

EDIT: or just how intregrate the "user online counter"

SMF 1.1.11
TP 1.0 Beta 4
Theme: Noize

Sorry for my bad english.

Regards

mrtrc266

#5152
@ gitchuone

There were a cpl minor changes to the edits for SMF 2's curve, you can simply upload and overwrite you files with these if you like

For the layout
Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Upload Shout.template.php yourforum/Themes/default/

For the smileys
To use the Smileys in this .zip....
Upload config.js to yourforum/chat/js/
Unzip and upload to youforum/chat/img/emoticon

To use your own Smileys
Look at the code here, upload your own Smileys and make the edits to chat/js/config.js accordingly.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608

For the Mute Button in the Shoutbox
Find yourforum/chat/lib/template/shoutbox.html
                <input type="image" src="http://monsters-mansion.com/testsmf2/chat/img/audio.png" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');" name="audioButton" align="absmiddle"/>

Replace this link with the link to your forum
http://monsters-mansion.com/testsmf2/

mrtrc266

Quote from: Morfus on February 19, 2010, 09:56:38 AM
Enable online chat users numbering on chat button, how do i get it to work on a custom theme?
I have a menu in a "TP block" and like to add it into a "div" if it any help :)

EDIT: or just how intregrate the "user online counter"

SMF 1.1.11
TP 1.0 Beta 4
Theme: Noize

Sorry for my bad english.

Regards

You'll have to see where the edits go in the default theme and then find the code close to that in your custom theme. It might take a few tries but you just have to play around with it.

gitchuone

You reference the following file...

Quoteyourforum/Themes/yourtheme/index.tempalte.php

and that's where I got stuck because I found that the file is actually, /yourforum/Themes/theme/Shout.template.php

So far so good. The only thing I've noticed so far is that although I can "see" the new smileys in the popup, when I select them it just prints the code and not the image. I might be missing something in the config.js which I uploaded from your first post on a fresh install of the forum. Will keep hammering at it from this end. Thanks again!

rocknroller


[unplugged]

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



gitchuone

QuoteHere some known issues and fixes caused by either other Mods or some servers

    * If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS

Where this links to gives pretty vague instructions on how to resolve this issue. The post references a .htaccess file, but no path information so I have no idea what .htaccess file to be editing. If someone can clarify this, that would be great.

[unplugged]

Quote from: SunKing on May 11, 2009, 12:12:37 AM
...Put (the edits) in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root)...

That is the .htaccess file I edited to solve my issues with this mod.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



gitchuone

Quote from: SunKing on February 20, 2010, 07:56:50 PM
Quote from: SunKing on May 11, 2009, 12:12:37 AM
...Put (the edits) in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root)...

That is the .htaccess file I edited to solve my issues with this mod.

Thanks for getting back to me on this.

At that path there was no .htaccess file, which is why I questioned the post where you mentioned the SSI.php file. And so, I have created a .htaccess file at this path, but all I've concluded to have in it is this.


RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


Am I missing other parts of
Quote(the edits)
?

Advertisement: