• Welcome to Simple Machines Community Forum. Please login or sign up.
December 05, 2021, 07:11:19 PM

News:

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


Mibbit Ajax IRC Chat

Started by KCToker, June 18, 2008, 11:04:54 PM

Previous topic - Next topic

Ruddy Kitty

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:

QuoteFind[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?

Shambles

Dump a copy of your subs.php as an attachment to your next post.

Ruddy Kitty

Okay, I hope this is the right one.

Shambles

Quote from: Ruddy Kitty on March 15, 2012, 02:54:37 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

Ruddy Kitty

A whole bunch, apparently. But they all have more to the names (Subs-Menu.php, Subs-Package.php, etc.)


Shambles

You see the difference between your subs.php


$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.

Ruddy Kitty

So I need to add THIS LINE: 'chat' => array( 'title' => $txt['chat'], 'href' => $scripturl . '?action=chat', 'show' => true, 'sub_buttons' => array( ), ),

After THIS LINE: '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.

Shambles

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.

Ruddy Kitty

Quote from: Shambles 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.

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?

Shambles

Glad it worked.


Quote from: Ruddy Kitty on March 15, 2012, 03:59:08 PM
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.

lesmond

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



Free Forum Image Hosting



The only person who got all his work done by Friday was Robinson Crusoe

Deezel

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.

Deezel

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.

Rockit

Quote from: lesmond 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

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?

musicus

   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

mokko

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:

Quoteecho"
<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.

Advertisement: