Advertisement:

Author Topic: AjaxChat Integration (latest version 3.2.1)  (Read 2174589 times)

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5140 on: February 17, 2010, 09:29:22 PM »
For now find....

/chat/lib/template/shoutbox.html

Code: [Select]
<input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />

Add After
Code: [Select]
<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

  • Guest
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5141 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.


Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5142 on: February 17, 2010, 09:55:49 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

  • Guest
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5143 on: February 17, 2010, 10:00:53 PM »
Sheesh another one with an old memory eh?

Thanks bud.

Hows California lately? Still doing them long work shifts?

Offline Melanie Fine

  • Newbie
  • *
  • Posts: 7
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5144 on: February 18, 2010, 02:37:04 PM »
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

Offline jetli68

  • Semi-Newbie
  • *
  • Posts: 90
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5145 on: February 18, 2010, 03:48:06 PM »
when will this be updated for  SMF 2.0 RC2  tia

Offline More-to-life

  • Jr. Member
  • **
  • Posts: 170
    • Welsh Bikers - Motorcycle Forum
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5146 on: February 18, 2010, 04:08:22 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

Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5147 on: February 18, 2010, 04:39:07 PM »
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 »


Offline More-to-life

  • Jr. Member
  • **
  • Posts: 170
    • Welsh Bikers - Motorcycle Forum
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5148 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
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

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5149 on: February 19, 2010, 01:08:45 AM »
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
« Last Edit: February 19, 2010, 01:14:40 AM by mrtrc266 »

Offline gitchuone

  • Semi-Newbie
  • *
  • Posts: 45
Re: AjaxChat Integration
« Reply #5150 on: February 19, 2010, 02:16:26 AM »
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

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
Code: [Select]
      <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

Code: [Select]
      <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;"', '>



Offline Morfus

  • Semi-Newbie
  • *
  • Posts: 11
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5151 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
« Last Edit: February 19, 2010, 10:42:38 AM by Morfus »

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5152 on: February 19, 2010, 09:49:42 PM »
@ 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
Code: [Select]
                <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
Code: [Select]
http://monsters-mansion.com/testsmf2/
« Last Edit: February 21, 2010, 11:42:09 AM by mrtrc266 »

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5153 on: February 19, 2010, 09:54:01 PM »
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.

Offline gitchuone

  • Semi-Newbie
  • *
  • Posts: 45
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5154 on: February 20, 2010, 12:51:39 AM »
You reference the following file...

Quote
yourforum/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!

Offline rocknroller

  • SMF Hero
  • ******
  • Posts: 1,594
  • Gender: Male
  • Justice has been served!
    • boris.jenicek on Facebook
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5155 on: February 20, 2010, 01:36:14 PM »
i have error 500? need hep.

Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »


Offline gitchuone

  • Semi-Newbie
  • *
  • Posts: 45
Re: AjaxChat Integration (latest version 3.2.1)
« Reply #5157 on: February 20, 2010, 07:34:35 PM »
Quote
Here 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.

Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
Re: AjaxChat Integration
« Reply #5158 on: February 20, 2010, 07:56:50 PM »
...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 »


Offline gitchuone

  • Semi-Newbie
  • *
  • Posts: 45
Re: AjaxChat Integration
« Reply #5159 on: February 20, 2010, 08:17:07 PM »
...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.

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

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