News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

chatroom button

Started by jake1981, June 11, 2007, 04:33:42 PM

Previous topic - Next topic

jake1981

Link to Mod

..------=================================
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..
I no longer provide support or updates to any of my MODs nor I provide any new themes or MODs in anywhere else expect on my own site (and yes, there's nothing in there) expect for those MODs that I already sent to here that have not yet been approved and if approval requires any changes, I won't provide them no more.

ShadowStriker

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

jake1981

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)
I no longer provide support or updates to any of my MODs nor I provide any new themes or MODs in anywhere else expect on my own site (and yes, there's nothing in there) expect for those MODs that I already sent to here that have not yet been approved and if approval requires any changes, I won't provide them no more.


TEOC2

#4
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.

celine

it means i can't use this one to the other theme?

jake1981

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..
I no longer provide support or updates to any of my MODs nor I provide any new themes or MODs in anywhere else expect on my own site (and yes, there's nothing in there) expect for those MODs that I already sent to here that have not yet been approved and if approval requires any changes, I won't provide them no more.

TEOC2

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.

jake1981

Sure it is but ask someone else to do it for you.
I no longer provide support or updates to any of my MODs nor I provide any new themes or MODs in anywhere else expect on my own site (and yes, there's nothing in there) expect for those MODs that I already sent to here that have not yet been approved and if approval requires any changes, I won't provide them no more.

Tidea

hi, is it possible you can make this compatible with the classic theme too?  Thanks :D)

jake1981

read previous post. Support and updates for my MODs has unfortunately ended.
I no longer provide support or updates to any of my MODs nor I provide any new themes or MODs in anywhere else expect on my own site (and yes, there's nothing in there) expect for those MODs that I already sent to here that have not yet been approved and if approval requires any changes, I won't provide them no more.

mrstime

Where exactly do I input the url for my chatroom?  Thanks. 

jake1981

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..
I no longer provide support or updates to any of my MODs nor I provide any new themes or MODs in anywhere else expect on my own site (and yes, there's nothing in there) expect for those MODs that I already sent to here that have not yet been approved and if approval requires any changes, I won't provide them no more.

pauledude

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?

pauledude

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.

yoggie

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 [nofollow], after I changed the line suchlike pauledude did.

chrisb

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


Urbanite

#17
Mibbit works perfectly with this mod and will open it in a new self-scaling window unlike what Mibbit Ajax IRC Chat 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 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 Mod does and the ability to show the number of users in the chat like FlashChat Integration and Integrated Chat Mod both provide.

Anyone fancy a dabble into that?

Just when you finally get it idiot proof ...along comes a bigger idiot!

stingerman

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.

67fstbck

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!

Advertisement: