Latest topics
» [GAME] Animal Game
by Ace 1 Today at 15:33

» [GAME] What are you doing right now?
by Valoish Today at 14:12

» Need help with some ideas
by skouliki Today at 11:23

» [GAME] Tower of doom Tournament
by dr.kran Yesterday at 20:48

» [GAME] Ban Game
by Ace 1 Yesterday at 18:46

» Forumactif Edge - A Free Modern and Responsive Forum Theme
by IonutzD Yesterday at 14:54

» [GAME] Never have I ever..
by Ace 1 Yesterday at 14:40

» Logo for my forum
by skouliki Yesterday at 13:33

» [GAME] this or that
by Ace 1 Yesterday at 13:16

» Rank forum
by skouliki Yesterday at 13:09

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by Ace 1 Yesterday at 13:08

» [GAME] World Snake
by Ace 1 Yesterday at 13:08

» [GAME] Last Letter Game
by Ace 1 Yesterday at 13:06

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Ace 1 Yesterday at 13:05

» [GAME] Countdown from 200,000
by Ace 1 Yesterday at 13:05

Recent Tutorials
Recent Achievements
Top posting users this month
Who is online?
In total there are 14 users online :: 5 Registered, 0 Hidden and 9 Guests :: 1 Bot

Ace 1, Bigtuber, Harleen, Jazeon, Valoish

[ View the whole list ]

Most users ever online was 172 on Fri 19 Feb 2016, 05:17

ForuMotion Popup ChatBox

View previous topic View next topic Go down

Ange Tuteur
Title :
Coffee Addict
Gender : Male
Age : 20
Posts : 3694
Points : 7793
Reputation : 1870
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostAnge Tuteur on Tue 12 Nov 2013, 03:40

Hello forumers,

This tutorial will help you achieve a popup chatbox for the default ForuMotion ChatBox.


To start you must make sure that you have the default chatbox enabled so navigate to..
Administration Panel > Modules > Chatbox > Configuration

Activate the chatbox : yes and then click validate.

Now that the chatbox is activated we should apply the CSS for the basic style, so please navigate to..
Administration Panel > Display > Pictures and colors > Colors > CSS stylesheet

Paste the code below in your sheet and submit.
box-shadow:0px 10px 6px rgba(255,255,255, 0.2) inset, 0px -10px 6px rgba(0,0,0, 0.2) inset;
padding:10px 20px 10px 20px;
border:1px solid #146;
#chatBox iframe{
To adjust the colors of the button simply edit the background-color of #chatButton. To adjust the height and width modify the height and width properties of #chatBox iframe.

Now that you know how to modify the style you should be ready to edit when you're ready. Let's move on and apply the script for our chatbox.

navigate to..
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management > Create a new script

Title: Popup ChatBox
Placement: In all the pages (If you want the chatbox everywhere)
Javascript Code:
jQuery('body').append('<span id="chatButton" title="Open/Close Chatbox">Open Chat</span><div id="chatBox"><iframe src="/chatbox/"></iframe></div>');
jQuery('#chatButton').css('position', 'fixed').css('right', '0px').css('bottom', '0px');
jQuery('#chatBox iframe').css('position', 'fixed').css('right', '10px').css('bottom', '45px');
When you're finished save the script and your chatbox should be available at the click of a button!

The result:

Clicking the 'Open Chat' button will show/hide the chatbox. If you want to modify the wording, say to another language all you need to do is edit this line:
jQuery('body').append('<span id="chatButton" title="Open/Close Chatbox">Open Chat</span><div id="chatBox"><iframe src="/chatbox/"></iframe></div>');

Lastly to modify the positioning edit this line:
jQuery('#chatButton').css('position', 'fixed').css('right', '0px').css('bottom', '0px');
jQuery('#chatBox iframe').css('position', 'fixed').css('right', '10px').css('bottom', '45px');
If you wish you can take the above out and use your CSS stylesheet to modify the positioning. This is to prevent users who forget to add CSS from messing up their forums layout, so the positioning is done within the script.

Thank you for reading, if you have any questions or comments please feel free to leave them. Enjoy!

Tutorial written by Ange Tuteur.
Reproduction not permitted without consent from the author.

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!

Create a new account

Log in

Already have an account? No problem, log in here.

Log in

Permissions in this forum:
You cannot reply to topics in this forum