News:

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

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

Farjo

:) SMF 3.2.1? That's this mod's version number. You are basically on a version 1 or a 2 - you can tell by looking at the bottom of your forum pages.

Caine1978 can you restore a backup from before you ignored the warning message?

Chris62 the answer to your question is in the FAQ, a link to which is on the first post of this thread in big letters.

Groflo have you changed the index.php files to 755? As for the blank option maybe try copying the Shout.english.php  file, changing the 'english' bit to 'french'. If it works then you could repay Hunter generosity providing this great mod by translating all the lines and posting it here :)


audiodef

My bad. That should be SMF 2.0.

A couple of things I've noticed:


  • When I go to the mod download page and select install instructions for 2.0 to be parsed, it returns that this version is not compatible
  • Finding it in the package manager, there is no download link next to it

Is it actually not compatible with SMF 2.0?

Farjo

Yes it is. The mod author has not updated a line in one of the files to say that it is compatible with version 2.0 is all. I am using it with version 2.0, and I know that others are too, so I know that it is compatible.

You have two options. You could either look through the previous several pages until you find the latest version - as Brack1 says "The 2.0 version is attached to a users post on one of the latter pages."

Or you could go into the Advanced bit from the Browse Packages screen to emulate '2.0 RC3' in which event it will work. However do not ignore any other errors on install!

audiodef

Thanks for clarifying that. I found it on this page:

http://www.simplemachines.org/community/index.php?topic=257973.7900

I was able to successfully install the mod by download the zip file to the Packages dir, upon which it showed up in the browse section with an install link.

Nice mod!

Groflo

Quote from: Farjo on August 17, 2011, 02:30:40 PM

Groflo have you changed the index.php files to 755? As for the blank option maybe try copying the Shout.english.php  file, changing the 'english' bit to 'french'. If it works then you could repay Hunter generosity providing this great mod by translating all the lines and posting it here :)

Yes I changed the index.php. But where should I copy the shout.english.php ? I didn't find any shout.*.php file in the directories of my site...
Thanks.

Moreover, I sometimes get an error in the chatbox : "connection status : 0"

Farjo

#8045
Hi, there should be a Shout.english.php file in your Themes/default/languages file (note the capital S) - so copy it to the same location as Shout.french.php.

Please realise that I'm only guessing that this may work - I only make the suggestion as nobody else had replied.

Farjo

Groflo, just noticed that you're running SMF v1 so your files may be in a different location.

Regarding the connection status, see here: http://www.simplemachines.org/community/index.php?topic=257973.msg1997858#msg1997858

Caine1978

not that I know of... the best thing I can think of is what I'm trying to do now, which is uninstall/delete/reboot it from scratch...


Caine1978

I just noticed something...

I'm using [SMF 2.0 RC5] and the newest mod only says RC3

TheListener

Quote from: Caine1978 on August 17, 2011, 04:43:17 PM
I just noticed something...

I'm using [SMF 2.0 RC5] and the newest mod only says RC3

Like Farjo and myself have said we are both using 2.0.

Farjo

The attached file is compatible with SMF version 2; I have presumptuously named it 3.2.2  :)

It is .HuNTeR.'s "3.2.1 RC3 curve friendly" file with the following changes:

  • It will install in version 2.0,
  • It will correctly modify the index.template.php file,
  • The language names will show correctly (e.g. Português instead of Portuguأھs),
  • It will work using Chrome (thanks again to hcfwesker).

Thank you to .HuNTeR. for such a great mod :)

nw

First of all,

Thanks to the mod writer, it looks like a great mod and I'm looking forward to use it.

I've emulated my site to RC3 in order to use this mod. However, there are 2 errors and I'd really appreciate your help.

1st error: White blank page
I've looked at the older posts and tried everything I could find. I've fixed the 755 permissions on both chat/index.php and shoutbox/index.php. I've also add the .htaccess file in both chat and shoutbox folders, have deleted them when it didn't work, have tried the combination of having one in the chat folder and none on shoutbox folder, etc etc. I've make sure that the users have the permission to access chat from the admin panel. However, the chat still show a clean white page with no user and messages.


2nd error: Subs.php errors
I keep getting these messages on top of the page when I load the chat:

QuoteNotice: Undefined index: mytab_Custom_URL in /home/.../forum/Sources/Subs.php on line 3919
Notice: Undefined index: mytab_Custom_URL in /home/.../forum/Sources/Subs.php on line 3921

And these are the specific lines from the Subs.php file:

Quote3919   "{$modSettings['mytab_Custom_URL']}" => array(
       3920   'title' => !empty($modSettings['mytab_label']) ? $modSettings['mytab_label'] : '',
       3921   'href' => $scripturl . '?action=' . $modSettings['mytab_Custom_URL'],
       3922      'show' => $context['show_mytab'] && !empty($modSettings['mytab_label']) &&         
         ),

Would anyone know how to fix this? Thanks in advance.



Farjo

Have you got some sort of menu admin mod? And do you have a portal?

nw

Hi, Farjo.

I'm not using any portal but I do have a few mods such as SubAccounts Mod, notCapcha, MultiForum, etc. Do you think this might be causing it?

audiodef

How do I hide the chat link from unregistered users?

Farjo

nw, I was wondering where the code in subs.php came from? It's in the menu block right? Doesn't look like what's added by default to me. Can you paste up 10 lines before and after. Do you have a mod called MyTab?

audiodef, the answer was posted up here recently so look through the previous pages.

audiodef


audiodef

I was looking for this also, so I could hide the chat link from unregistered users, and it works on my installation. Why isn't this the default code for the mod? Just curious.

Quote from: SunKing on July 31, 2011, 06:38:08 PM
Open Subs.php and find 'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),


change it to 'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(
),


Farjo

You found it, nice one.

As for the default, I assume it's because AjaxChat (on which this mod is based) by default allows guest access.

nw

Thanks Farjo, I don't have a mod called MyTab. As you said it wasn't in the default so I commented it out and it takes care of the 2nd problem. I guess it's safe to assume that bits of code is the problem. Although now that I took it out, I realised that it's for the subaccount feature, in order for members to be able to switch account through a drop down button.

Here are some snippets of the code:

if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),

"{$modSettings['mytab_Custom_URL']}" => array(
'title' => !empty($modSettings['mytab_label']) ? $modSettings['mytab_label'] : '',
'href' => $scripturl . '?action=' . $modSettings['mytab_Custom_URL'],
'show' => $context['show_mytab'] && !empty($modSettings['mytab_label']) && !empty($modSettings['mytab_OnorOff']),
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),






Advertisement: