Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: jake1981 on June 11, 2007, 04:33:42 PM

Title: chatroom button
Post by: jake1981 on June 11, 2007, 04:33:42 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=827)

..------=================================
Chatroom Button (crbutton)
Version 1.0

Author: Oskari Rauta/Jake Irons
-----------===============-------------..

WARNING: This is only a CHATROOM _BUTTON_, no chat is included with this.

What's new in 1.01?
===============---.
Critical update: no
Updated uninstallation procedure.

What is this?
=========---.
Special remake of MOD website button that adds a "Chatroom" button to left side of "Logout" or if logout is not shown(user is guest) chatroom will be last button.

This MOD was created because Adrian requested it.

To get more information check my MOD website button on this same site.

Can it be used to something else?
=============================---.
Ofcourse, if you need a button that is placed before logout or as last if user is not logged in to your forum (or hide button from guests), that opens URL to new window, then this is your MOD. Just edit language files and replace following images:
- boarddir/Themes/default/images/english/chatroomButton.gif
- boarddir/Themes/babylon/images/english/chatroomButton.gif

Button generator can be found from:
http://www.marcovanveelen.nl/buttongenerator/

What's different to website button?
===============================---.
- Placing of button
- This button opens target URL to new window
- This MOD has 2 settings. Target URL and new setting: Guest access. Yes, you can choose whether to show or not show this button for your guests.

Can this mod be used WITH website button?
=====================================---.
Yes, variables are named differentially, so this MOD can be used simultaneosly with website Button just fine.

What themes are supported?
======================---.
Default/core and babylon.

What initial languages are supported?
=================================---.
English only. If you need support for another language, you need to do it your self.

I need another button image..
=========================---.
Create it then. There's free button generator that I used to create these at:
http://www.marcovanveelen.nl/buttongenerator/

What kind of chat is included?
==========================---.
No any kind of chat included. This is ONLY a button that fits nicely to smf forum view. You need to have other kind of solution for chat somewhere, just make this button to point to your chatroom.

Will you help me to create chatroom?
================================---.
No, I'm far too busy for help everyone out. But if you want to setup a irc to your site, check http://www.pjirc.com It's pretty nice java irc client and can be customized to blend nicely to smf view.. I recommend it..
Title: Re: chatroom button
Post by: ShadowStriker on June 16, 2007, 02:51:40 PM
awesome, but there is one problem, when you click the button it takes you to a url that has your forum url and the chatroom url. Like this: http://yourforum.com/www.yourchat.com
Title: Re: chatroom button
Post by: jake1981 on June 16, 2007, 07:11:18 PM
Quote from: ShadowStriker on June 16, 2007, 02:51:40 PM
awesome, but there is one problem, when you click the button it takes you to a url that has your forum url and the chatroom url. Like this: http://yourforum.com/www.yourchat.com

Sorry, no problem with mod. You just need to adjust URL where you want it to take you to..

You used following url: www.yourchat.com
and the correct url would be: http://www.yourchat.url

If you do not specify http:// in the beginning, user's web browser is left out of parameters, so it cannot know if www.yourchat.com is a domainname or a sub-directory under current location. So it follows the pattern and thinks it's a directory, creator would had added http:// if it wasn't supposed to be a directory.. (logic)
Title: Re: chatroom button
Post by: ShadowStriker on June 17, 2007, 12:06:31 AM
ok it works now awesome  :D
Title: Re: chatroom button
Post by: TEOC2 on June 21, 2007, 04:36:32 AM
I have a fresh install, im the only member, no posts, no mods, no nothing, i get this error, see attached image.

Sorry, forget that, chmodded and its all fixed now.
Title: Re: chatroom button
Post by: celine on July 05, 2007, 01:31:14 PM
it means i can't use this one to the other theme?
Title: Re: chatroom button
Post by: jake1981 on August 24, 2007, 12:19:27 AM
Quote from: celine on July 05, 2007, 01:31:14 PM
it means i can't use this one to the other theme?

Ofcourse you can.. It's just that it needs to be manually added to other than themes that are supported..
Title: Re: chatroom button
Post by: TEOC2 on September 02, 2007, 04:16:36 AM
Is it possible to add this to the permissions settings?

Our forum has a membergroup for paid up members, we would like it so only this member group can access the chatroom.
Title: Re: chatroom button
Post by: jake1981 on September 03, 2007, 10:58:35 PM
Sure it is but ask someone else to do it for you.
Title: Re: chatroom button
Post by: Tidea on September 04, 2007, 05:37:31 AM
hi, is it possible you can make this compatible with the classic theme too?  Thanks :D)
Title: Re: chatroom button
Post by: jake1981 on September 04, 2007, 07:24:57 AM
read previous post. Support and updates for my MODs has unfortunately ended.
Title: Re: chatroom button
Post by: mrstime on September 05, 2007, 06:43:51 PM
Where exactly do I input the url for my chatroom?  Thanks. 
Title: Re: chatroom button
Post by: jake1981 on October 01, 2007, 09:00:36 AM
administration panel, check features there for chatroom..

If it's invisible, you propably are using utf-8 or unsupported language (not supported at the moment), and then you need to add phrases from standard english language file to your language..
Title: Re: chatroom button
Post by: pauledude on December 23, 2007, 11:40:00 AM
I got this running and using a custom theme.  The chatroom opens in a new tab, not window on my computer. Anyone know how to force a new window, and specifi window size?
Title: Re: chatroom button
Post by: pauledude on December 29, 2007, 02:25:15 PM
Also I can't figure out how to get it not to look for th buttons image file. I am using text buttons on my template. It looks good in Foxfire, but IE gives me a redX box around it.

function show_chatroomButton()
{
   global $context, $txt, $modSettings, $settings;

   if (!$modSettings['chatroomButton_ga'] && $context['user']['is_guest']) return;

   echo '
<td class="maintab_' , $current_action == '_blank' ? 'active_back' : 'back' , '">

                                <a href="', isset($modSettings['chatroomButton_url']) ? $modSettings['chatroomButton_url'] : 'http://flehm.com/Forum/chat2/index.php', '" target="_blank">',
$settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chatroomButton.gif" alt="' .  (isset($txt['chatroomButtonAlt_txt']) ? $txt['chatroomButtonAlt_txt'] : 'Chatroom') . '" style="margin: 2px 0;" border="0" />' : (isset($txt['chatroomButton_txt']) ? $txt['chatroomButton_txt'] : 'Chatroom'), '</a>', $context['menu_separator'];
}


I would guess I need to take out the settings for  use immage buttons. but all the . , " I am not sure how it should be. I havn't learned that much yet.
Thanks for any help.
Title: Re: chatroom button
Post by: yoggie on April 21, 2008, 07:58:34 AM
I think i got problem like pauledude. The chat button in admin mode is not viewed well and I try to unistall it, whew, I got "a leaving line like the code that pauledude quote. can you help me to fix it up? Another prob is... I can not change the link in the button (at menubar) it is still point to roadrunner.cx, after I changed the line suchlike pauledude did.
Title: Re: chatroom button
Post by: chrisb on April 25, 2008, 08:22:03 PM
We used this mod and looks good and we are looking at making changes to it so it can display the following on the site



Show how many users are in the chat at forum
Allows to setup permissions for users to enter the chat room


But not sure where to star to get this to happen, any help would be very helpful

Title: Re: chatroom button
Post by: Urbanite on August 06, 2008, 09:30:10 AM
Mibbit works perfectly with this mod and will open it in a new self-scaling window unlike what Mibbit Ajax IRC Chat (http://custom.simplemachines.org/mods/index.php?mod=1256) provides. (The Mibbit Ajax IRC Chat Mod opens in the same window, retains the forum header and doesn't scale the chat window as you reduce the window size).

Create your own chat room/s and colour schemes in minutes at http://www.mibbit.com/widget.html (http://www.mibbit.com/widget.html) enter the produced code into the Mod and that's it! The beauty with IRC is that it puts practically no strain on your server.

Would be nice to have the means if intergrating the UserName like the Mibbit Ajax IRC Chat (http://custom.simplemachines.org/mods/index.php?mod=1256) Mod does and the ability to show the number of users in the chat like FlashChat Integration (http://custom.simplemachines.org/mods/index.php?mod=611) and Integrated Chat Mod (http://custom.simplemachines.org/mods/index.php?mod=60) both provide.

Anyone fancy a dabble into that?

Title: Re: chatroom button
Post by: stingerman on November 12, 2008, 08:51:59 PM
How do I get the button to appear?  I am using default template and I think just text with hover over color for the button effect.  Anyway to change it so the "chatroom" us somehow different?  Thanks.
Title: Re: chatroom button
Post by: 67fstbck on February 03, 2009, 02:08:26 AM
I've installed this and can't get it to link to my chat page. Now I can't get rid of it! I've uninstalled it from package manager but it still shows on my forums. Please help!
Title: Re: chatroom button
Post by: Joe N on June 28, 2009, 10:22:37 AM
Hi

Instead of CHATROOM, what would I do to name it CHAT?
Title: Re: chatroom button
Post by: dreamers4317 on June 24, 2011, 11:11:39 AM
Hi , this is probably in the wrong place , but I need help, have just uninstalled the chatroom button, as I had ajax "chat" button & a chatroom button, so I thought I could remove the chatroom button, but when I uninstalled it I can only see the banner of the forum ( britsinbulgaria ) & the tab buttons & my avatar, but none of the tabs work & this error message is underneath.
Fatal error: Call to undefined function show_chatroomButton() in /home/buster/RQXN4V59/htdocs/britsinbulgaria.co.uk/forum/Sources/Load.php(1766) : eval()'d code on line 602
Can anyone help me, have contacted the host provider, but I don't know what I have done wrong.
Title: Re: chatroom button
Post by: TheListener on June 24, 2011, 12:28:14 PM
Quote from: dreamers4317 on June 24, 2011, 11:11:39 AM
Hi , this is probably in the wrong place , but I need help, have just uninstalled the chatroom button, as I had ajax "chat" button & a chatroom button, so I thought I could remove the chatroom button, but when I uninstalled it I can only see the banner of the forum ( britsinbulgaria ) & the tab buttons & my avatar, but none of the tabs work & this error message is underneath.
Fatal error: Call to undefined function show_chatroomButton() in /home/buster/RQXN4V59/htdocs/britsinbulgaria.co.uk/forum/Sources/Load.php(1766) : eval()'d code on line 602
Can anyone help me, have contacted the host provider, but I don't know what I have done wrong.

Which chat mod did you have installed?