1. Chat in the modal window

Chat in the modal window

  |   7
Chat in the modal window

Article about how to get chat in the modal window DLE. Working with all DLE versions.
The popup windows is using jquery plugin, so if you are using DLE 8.5 and older, this required jquery to get this popup windows to work, but it's not required if you are using 9.x since jquery is already built-in it it, all you need is javascript code in this tutorial.

Article about how to get chat in the modal window DLE. Working with all DLE versions.

Install:
- 1. Set your preferred chat on the site. For example mChat or iChat.
2. Open the template where you want to insert your chat in the modal window, in your main.tpl file after the tag:
</head>

Insert:
<script type="text/javascript">
function showBlock() {$(function(){
$('#Block').dialog({
autoOpen: true,
show: 'fade',
hide: 'fade',
width: 550,
buttons: {
"Close Window" : function() {
$(this).dialog("close");
}}
});});}
</script>
<div id="Block" title="Your Title Here" style="display:none">
&#123;include file="engine/modules/iChat/run.php"}
</div>
Insert following code in your main.tpl where u want chat to appear:
<center><a style="color:#FF0000" class="Block" href="#" onclick="showBlock(); return false;" class="mainlevel"><img src="{THEME}/images/chat.png" alt=""  /></a></center>
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+8

Comments 7

sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on January 6, 2012 (10:02 pm)
have you tried popup within windows? like rules or anything like that...I don't know if it will work properly but main popup windows is working fine itself I mean the one you wrote tutorial here, but my question is popup within popup because if you use this popup you will have another 2 medal windows if you use admin mode to customize or configure chat...

Thanks for tutorial!


edited: never mind...see it working well in your demo site...good works!
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
Commented By Abdul Ghaffar Attari on January 7, 2012 (1:25 am)
nice work man .. is it possible to enable this function on others pc just by clicking on name of other user login in site .using online module.. so we can chat just like yahoo and facebook on our site .. i hope you understand what am trying to say. bravo thanks for this tut
4 56Forum topics : 44Forum replies : 415Forum likes : 21
dbrasii
dbrasii
V.I.P.
Commented By dbrasii on January 7, 2012 (3:13 am)
You can open with it anything you want. Just replace
  {include file="engine/modules/iChat/run.php"}

to
  {include file="Your Template / Custom php"}


If you want to run both replace also
1 5Forum topics : 4Forum replies : 28Forum likes : 1
Commented By Abdul Ghaffar Attari on January 7, 2012 (8:43 am)
no u dont understand me . i mean just a pop on friend's screen when i hit his name from online vistor's block(online module) on main page to personally chat with him.like facebook or yahoo
4 56Forum topics : 44Forum replies : 415Forum likes : 21
tbenmcp
tbenmcp
DLE TEAM
Commented By tbenmcp on January 7, 2012 (10:42 pm)
ab_uk008,
are you talking about DLE module or regular messenger chat room man..?
20 150Forum topics : 11Forum replies : 248Forum likes : 32

"A True Friend is Someone Who Sees the Pain in Your Eyes while Everyone Else Believes the Smile on Your Face"
Let me Google for you!
Commented By Abdul Ghaffar Attari on January 8, 2012 (2:48 am)
yeah i think so ... or u can say just facebook footer chat module for dle which appears on friends screen without adding him in friend list. actually the problem is adding to friend list because most of them did not know how to accept or invite other friend if any one could help ?.... fellow
4 56Forum topics : 44Forum replies : 415Forum likes : 21
tbenmcp
tbenmcp
DLE TEAM
Commented By tbenmcp on January 10, 2012 (9:45 pm)
well, the problem is all messengers required invite to get in chat...I am sure there are some free chat out there you can use for free like
www.addonchat.com
http://www.everywherechat.com
http://xat.com
20 150Forum topics : 11Forum replies : 248Forum likes : 32

"A True Friend is Someone Who Sees the Pain in Your Eyes while Everyone Else Believes the Smile on Your Face"
Let me Google for you!
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.