PDA

View Full Version : vBulletin CMS Widgets - Widget - Easy Chat Box for CMS


Toxic2
12-20-2009, 10:00 PM
A very easy to Make widget for a Chat Box in CMS. RC-4

Edit: Works with Gold 4.0 Edition.

The reason I made this Widget was to have a Chat box for my Site. It is a Temporary solution until a expert Coder develops a Ajax or more elaborate Chat system.

This was really easy to do and the code is a freebie From widget Me, So I tried it 2 or 3 different ways and it works fine.

I have My Site redirected in the Host Cpanel to the Home page (CMS) This way all will see the Chat or announcements In the chat window.

Can be Made to fit 1 column 2 or 3

For those who haven't quite got the hang of Layouts and widgets, I will try to give a Simple How to:

1) In the ACP goto ---> CMs---> Widgets
Make a new widget and name it Chat Box or your Domain Chat Box Make it a Static HTML Save it.

2) In Widgets find your named Chat Box and Click Configure and add the Code below and Save. ( You Can Resize it as you see fit in configure as well as add Colors)

3) In CMS goto ---> Layout manager and Place the Widget where you Like. It is completely customizable in size and color.

You Can See the Optional Layouts in the Screen Shots.

Demo to see it live. HERE (http://asianfuflix.com/forum)

As I said, it is a temporary Soulution and I needed it today.

Example Code to Insert in the Widget go to Outside Link provided to get a personal User ID

<!-- Start http://chat.widget.me HTML Code -->
<script type="text/javascript">
<!--
// The base configurations of the chat widget
// You can change colours and sizes by editing

// Sizes in pixel
// Window width
chat_width="575";

// Window height
chat_height="125";

// Window border size
chat_border="2";

// Colours in hexadecimal
// Window border colour
chat_border_col="C0C0C0";

// Background colour
chat_bg_col="FFFFFF";

// Font type
chat_text_font="Helvetica, Verdana, Geneva";

// Text colour
chat_text_col="000000";

// Font size
chat_text_size="10pt";

// Break line colour
chat_break_col="C0C0C0";

// External CSS file
chat_css="http://";

// Stop change
// Happy chatting
chat_uid="XXXXX"; *** go to outside Link Provided to get your personal User ID ***
This is an example of the Code you will get, It will show up automatically when you get there, Copy and Paste it in your Widget.
//-->
</script>
<script type="text/javascript" src="http://chat.widget.me/chat.js"></script>
<!-- End http://chat.widget.me HTML Code -->

NOTE: The size in the Code is to fit the Demo Shown, you will have to r-size to your own Taste. :)

Please Click Installed to let me Know if this was useful to you

Outside Link HERE (http://shoutbox.widget.me)

There is a Floating Chatbox for all your templates (Sits at Bottom) But I prefer not to do Template edits. Another reason this will do for the Time Being.

If You Try it Let me know how it worked for you.

Toxic2
12-21-2009, 02:22 PM
Reserved for more options if needed

Edit: As M3 Pointed out, to get your own personal User ID ----> to get your own chat_uid go to http://chat.widget.me/

RvG2
12-21-2009, 05:04 PM
cool! gonna try it.

VonDoom
12-21-2009, 05:57 PM
Wow the ridicules amount of 1 stars being passed out around here are getting out of control. I always base my ratings on the mods ability to do as described not on its abilities to do things i "wish" it would do. If i had to guess i would assume these single star ratings are being passed out by people who couldnt code the alphabet let alone a working hack.

This looks promising and like its simplicity in nature. good work.

M3xital
12-21-2009, 07:04 PM
I've just tried it, i copied your code and i had your chat on my board, I mean i was seeing what people was chatting over at your site.
To have your own chat you need to changechat_uid="t46zg";
to get your own chat_uid go to http://chat.widget.me/

Toxic2
12-21-2009, 07:13 PM
That makes sense to have to get your own User ID, I will revise it for folks to do that, That didn't occur to me that would happen thanks for the Update The outside Link is where you would get a user ID, I'll revise it. Did you have any problem with making the widget and Layout? Kinda easy I thought. :)

zonaenlinea
12-21-2009, 07:55 PM
muy bien gracias probando

Toxic2
12-21-2009, 08:09 PM
De nada, voy al Link para el Code Nuevo e Identificacion ID El Code que tengo es un ejemplo

Glad I took Spanish In School LOL

Trek
12-21-2009, 08:33 PM
Nice work, quick and simple. =)

M3xital
12-22-2009, 05:55 AM
That makes sense to have to get your own User ID, I will revise it for folks to do that, That didn't occur to me that would happen thanks for the Update The outside Link is where you would get a user ID, I'll revise it. Did you have any problem with making the widget and Layout? Kinda easy I thought. :)

No problems at all. Was very easy. :)

Toxic2
12-22-2009, 02:34 PM
If you Upgraded to Gold 4.0, you will need to remake the widget, But works Great In the Gold 4.0 Edition :)

cbiweb
12-24-2009, 06:35 PM
I followed the instructions exactly, and don't see the chat box. How do I get it to show up?

Toxic2
12-24-2009, 06:45 PM
Did you go to CMS ---> Layout manager and add it to your CMS layout? when you do, you can drag it to where you want to place it.

cbiweb
12-24-2009, 06:53 PM
I don't understand the whole layout thing yet I guess. Someone else set up the CMS. Went to Layout Manager and saw the Add New Layout button, and added a layout for the widget. From there I'm a little lost, lol.

Toxic2
12-24-2009, 07:07 PM
When you go to CMS layout manager you should see a window open and look for "Home Layout" Then in the Box at left and find chat and click the right arrow to add it to the Home layout. Then drag it where you want to place it.

This is based on you making a new Widget, and put the NEW code in it and saved it

cbiweb
12-24-2009, 07:13 PM
Aha! Got it! The Home Layout was the missing link for me. Thanks!

Toxic2
12-24-2009, 07:20 PM
Your welcome, Remember to re-size the Chat Box, go back to the code in the widget and change height and width to your taste :p

Mike1018
12-27-2009, 01:00 PM
I am unable to get it. When I go to layout Manager, I just see food, Home, News, and etc. Where do I add it, to get it to look like on your demo?

Toxic2
12-28-2009, 02:52 AM
I am unable to get it. When I go to layout Manager, I just see food, Home, News, and etc. Where do I add it, to get it to look like on your demo?

Those who click install, I try to help them get it as they need it to be. :rolleyes:

SharedSpirit
12-28-2009, 02:56 AM
working good, looking good

Gold (PL1), thanks Toxic2 :)

DHewes
01-03-2010, 03:18 PM
This works great as a simple widget, but I wanted something with a fluid width. I found that you can get free code that works EXACTLY the same way as Toxic2 has described here (Thanks for that) over at http://www.shoutmix.com. They also offer a lot more functionality and customization through their control panel (colors, sizes both px and %, etc.) as well as retention...) I went ahead and paid the $2/month for faster refreshes and 3 month retention. Again, same concept as this mod, just cut and paste the code they give you instead of this code.

With both the ShoutMix code and the original code within this mod the shoutbox is running from a remote server and embedded on your site. The code from ShoutMix is actually smaller - basically the size and where to load it from. One huge advantage from ShoutMix is that even with the free code you can change the entire color scheme remotely on their Control Panel and it happens instantly on your web site. I also like the idea of security, where you can only load the ShoutMix on the domain you specify (if you set that).

Here is what it looks like: http://www.ihmsa.net/forum/

Toxic2
01-04-2010, 02:48 AM
I went ahead and paid the $2/month for faster refreshes and 3 month retention. Again, same concept as this mod, just cut and paste the code they give you instead of this code.

If I did that for every Mod I have, it would be 100 dlls easy LOL but I'm glad you got what you needed.

microlight
01-05-2010, 12:03 PM
I have got it all set up on my site http://www.microlightforum.com and can see it OK but it doesn't work.

It says "error (3)" any ideas?

microlight
01-06-2010, 07:57 AM
I found out what the Error (3) is all about people.

It doesn't work with Chrome for some reason.

cagbaazee
01-20-2010, 02:50 AM
Hi.. wanna to install chat before the navbar menu. can some one explain how to do it.

Thanks

Toxic2
03-12-2010, 08:25 AM
Well Finally Valter came out with the Ajax chat that I referred to, so this was a nice mod till Valter graced us with his ajax mod. Thanks Valter !! :) Hope this little Mod came in handy while waiting for the ajax chat. :)