Advertisement:

Author Topic: Mibbit Ajax IRC Chat  (Read 73648 times)

Offline Ruddy Kitty

  • Jr. Member
  • **
  • Posts: 193
  • Gender: Female
  • A Cure For Optimism
    • Ruddy Kitty's Deviantart
Re: Mibbit Ajax IRC Chat
« Reply #80 on: March 15, 2012, 07:35:59 AM »
Holy cow that was fast :O

Which is weird because I don't have any other mods installed.

Here's what the pop up says:

Quote
Find[Select]
'home' => array( 'title' => $txt['home'], 'href' => $scripturl, 'show' => true, 'sub_buttons' => array( ), 'is_last' => $context['right_to_left'], // 'target' => '_blank', ),
Add After[Select]
'chat' => array( 'title' => $txt['chat'], 'href' => $scripturl . '?action=chat', 'show' => true, 'sub_buttons' => array( ), ),


Not sure what to change or how to change it?

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,083
  • Gender: Male
    • i30 Owners Club
Re: Mibbit Ajax IRC Chat
« Reply #81 on: March 15, 2012, 09:31:38 AM »
Dump a copy of your subs.php as an attachment to your next post.

Offline Ruddy Kitty

  • Jr. Member
  • **
  • Posts: 193
  • Gender: Female
  • A Cure For Optimism
    • Ruddy Kitty's Deviantart
Re: Mibbit Ajax IRC Chat
« Reply #82 on: March 15, 2012, 02:54:37 PM »
Okay, I hope this is the right one.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,083
  • Gender: Male
    • i30 Owners Club
Re: Mibbit Ajax IRC Chat
« Reply #83 on: March 15, 2012, 03:04:59 PM »
Okay, I hope this is the right one.

How many have you got  ???

The mod will try to locate the startpoint string, including tabs & spaces. What you quoted earlier isn't in the format that package manager is being asked to locate, but that's probably the way you copied/pasted it here. Can you requote it showing line breaks, spaces & tabs?

Though looking at what you did post I'm going to guess the bit at the end of the search string (// 'target' => '_blank', ),) is the problem as that isn't in your subs.php

Offline Ruddy Kitty

  • Jr. Member
  • **
  • Posts: 193
  • Gender: Female
  • A Cure For Optimism
    • Ruddy Kitty's Deviantart
Re: Mibbit Ajax IRC Chat
« Reply #84 on: March 15, 2012, 03:09:51 PM »
A whole bunch, apparently. But they all have more to the names (Subs-Menu.php, Subs-Package.php, etc.)


Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,083
  • Gender: Male
    • i30 Owners Club
Re: Mibbit Ajax IRC Chat
« Reply #85 on: March 15, 2012, 03:19:27 PM »
You see the difference between your subs.php

Code: [Select]
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],

...and the screenie you took? The package manager cannot complete the operation because that string I mentioned previously does not exist.

So, your choice is (as before) to either edit your subs.php to include the string (which will make the installation work) or change the modifications.php file within the .zip package to remove the comment line.

Offline Ruddy Kitty

  • Jr. Member
  • **
  • Posts: 193
  • Gender: Female
  • A Cure For Optimism
    • Ruddy Kitty's Deviantart
Re: Mibbit Ajax IRC Chat
« Reply #86 on: March 15, 2012, 03:38:41 PM »
So I need to add THIS LINE:
Code: [Select]
'chat' => array( 'title' => $txt['chat'], 'href' => $scripturl . '?action=chat', 'show' => true, 'sub_buttons' => array( ), ),
After THIS LINE:
Code: [Select]
'home' => array( 'title' => $txt['home'], 'href' => $scripturl, 'show' => true, 'sub_buttons' => array( ), 'is_last' => $context['right_to_left'], // 'target' => '_blank', ),

...correct?

Sorry x.x I'm a bit confused.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,083
  • Gender: Male
    • i30 Owners Club
Re: Mibbit Ajax IRC Chat
« Reply #87 on: March 15, 2012, 03:41:56 PM »
Yes, but you don't have exactly that line with the // 'target' => '_blank', at the end.

Attached is a copy of your subs.php with the missing line inserted, you can upload that and try the package manager again.

Offline Ruddy Kitty

  • Jr. Member
  • **
  • Posts: 193
  • Gender: Female
  • A Cure For Optimism
    • Ruddy Kitty's Deviantart
Re: Mibbit Ajax IRC Chat
« Reply #88 on: March 15, 2012, 03:59:08 PM »
Yes, but you don't have exactly that line with the // 'target' => '_blank', at the end.

Attached is a copy of your subs.php with the missing line inserted, you can upload that and try the package manager again.

Thank you! It worked perfectly.

So now that this is up, it's using the default coloring etc. instead of the mibbit widget. Is that available?

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,083
  • Gender: Male
    • i30 Owners Club
Re: Mibbit Ajax IRC Chat
« Reply #89 on: March 15, 2012, 04:03:18 PM »
Glad it worked.


So now that this is up, it's using the default coloring etc. instead of the mibbit widget. Is that available?
That'll be for someone else to answer I'm afraid - I know nothing about this mod - I'm just a code monkey  8)

Good luck.

Offline lesmond

  • Semi-Newbie
  • *
  • Posts: 97
  • Gender: Male
Re: Mibbit Ajax IRC Chat
« Reply #90 on: June 12, 2012, 10:36:27 AM »
Heads up for anyone that doesn't want the "Chat" tab showing in their menu items for guest's

In your /Sources/subs.php
Code: (find) [Select]
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
Code: (add after) [Select]
$context['allow_chat_view'] = allowedTo('chat_view');
In the chat array

Code: (find) [Select]
                         'chat' => array(
'title' => $txt['chat'],
'href' => $scripturl . '?action=chat',
'show' => true,
'sub_buttons' => array(

Code: (change to) [Select]
   
'chat' => array(
'title' => $txt['chat'],
'href' => $scripturl . '?action=chat',
'show' => $context['allow_chat_view'],
'sub_buttons' => array(


Member view..


Guest view..


Hope this helps someone

Offline Deezel

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Male
  • It Is What It Is
    • Owner/Admin
Re: Mibbit Ajax IRC Chat
« Reply #91 on: September 07, 2012, 12:34:49 PM »
any way to have it so the number of members in the chat shows by the chat button in menu?
I've tried searching this with no luck.

Offline Deezel

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Male
  • It Is What It Is
    • Owner/Admin
Re: Mibbit Ajax IRC Chat
« Reply #92 on: October 11, 2012, 12:36:33 PM »
Sorry to bump the topic.. but does anyone know how i can achieve the above post. Would be simmilar to Private Message count i would assume.

Offline Rockit

  • Newbie
  • *
  • Posts: 1
Re: Mibbit Ajax IRC Chat
« Reply #93 on: January 08, 2013, 08:41:42 AM »
Heads up for anyone that doesn't want the "Chat" tab showing in their menu items for guest's

I have tried this on SMF 2.0.2 and 2.0.3, it only works when i'm logged in as Admin. When i'm logged in as a normal User, it won't work.
Any ideas what's going wrong?

Offline musicus

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
    • Mucic for open ears
Re: Mibbit Ajax IRC Chat
« Reply #94 on: May 16, 2016, 02:52:54 PM »
   I have installed this mod, it also runs. But don`t  get it to the configuration screen.
There are in the admin area in "feature and options," a menu item "IRC-CHAT".
but from the configuration window is nothing to see. I had already installed this mod a long time ago, because I had already changed what. After the Forum has moved to another server, there are any errors, so I uninstalled it again.



Here is the edited files "sub.php" and "Manage settings.php" because an error is determined in it. Please help me. I'm not so good in the edit PHP files

Sorry for my bad english

Offline mokko

  • Semi-Newbie
  • *
  • Posts: 14
Re: Mibbit Ajax IRC Chat in V 2.015
« Reply #95 on: January 28, 2019, 05:59:16 PM »
hy, there are some strange thigns, but here is a siolution.

I installed SMF 2.0.15 , downloaded the Plugin (that is very fine)  :) but I did not get ist to work. I followed the manual installation hints, applied them also to local german files, but - no succsess.
What is perhaps imporant to mention, is, that I had changeded from http://  to htpps:// Maybe only there appears the problem, but take it as a hint, please.

If you look on https://widgetmanager.mibbit.com [nofollow], you can get some information about the concerning content, but, where does than belong to??
O.K, looking to all parts of the package.

The important part is in the file Chat.template.php that you will find in the Templates-directory.
And there is the important part on the end of the file:

Quote
echo"
<iframe width=$width height=$height scrolling='no' frameborder='0'
 src='https://widget.mibbit.com/?server= [nofollow]" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false'>
</iframe></div>";

}

?>

Other than you can see on https://widgetmanager.mibbit.com [nofollow], I had after the istallation noting other to do, than changing "src="
to
src='https://widget.mibbit.com [nofollow].......

If you change in the downloaded Mod this littel part in the   file Chat.template.php before uploading and installing it,  I suppose, it will run from startup.

Regards and best wishes!

// Edit: If the Admiministration wants to split this up to a new thread, welcome, team.