DataLife Engine English Support Site » DatalifeEngine Modules » Online Module 2.2
Welcome,. Enter Username, or register.
Welcome,. Enter Username, or register.
ApadanaGroup's Hosting Services available now with Unbelievable LOW
PRICES,
Unlimited SPACE AND Unlimited Transfer ....Check it out !!!
http://unlimitpackage.net/
Online Module 2.2

Instructions:
1. Upload online.php to engine/modules/
2. Upload online.tpl to templates/the-template-you-use/
3. Run install5.0-5.2.php or install5.3-5.5.php (rename to install.php) so if you use DLE 5.5 then run http://yoursite.com/install5.3-5.5.php
This adds to your database. You will see some russian text telling you to delete install.php after you run it, do it.
4. ?pen engine/modules/sitelogin.php
Find:
@session_destroy();
Add After
setcookie("dle_onl_session","", time() - 3600, "/", $domain);
5. ?pen index.php
5.1. Find:
$tpl->set('{info}',
Add After:
$tpl->set('{online}', $tpl->result['online']);
In DLE 5.5 version:
5.2. find:
$tpl->load_template('main.tpl');
Add after:
require_once ENGINE_DIR.'/modules/online.php';
6. ?pen language/the-language-you-use/website.lng
Find:
'charset'
Add after it:
'online_notusers' => "None.", 'online_notbots' => "None.",
'online_notlusers' => "None.",
'online_notlbots' => "None.",
'online_was' => "<b>Online:</b> ",
'online_back' => "ago",
'online_os' => "<b>?S:</b> ",
'online_browser' => "<b>Browser:</b> ",
'online_country' => "<b>Location:</b> ",
'online_city' => "<b>City:</b> ",
'online_group' => "<b>Usergroup:</b> ",
'online_paddcomments' => "<b>Comments:</b> ",
'online_preadnews' => "<b>Latest Article:</b> ",
'online_pincategory' => "<b>Category:</b> ",
'online_pposin' => "<b>Located in:</b> ",
'online_pmainpage' => "<b>Mainpage.</b>",
'online_lpaddcomments' => "<b>???????? ??????????? ?:</b> ",
'online_lpreadnews' => "<b>????? ???????:</b> ",
'online_lpincategory' => "<b>????????? ? ???????:</b> ",
'online_lpposin' => "<b>????????? ?:</b> ", 'online_lpmainpage' => "<b>????????? ?? ??????? ????????.</b>",
'online_robots' => " Robots",
'online_stamp01' => "Second",
'online_stamp02' => "seconds",
'online_stamp03' => "seconds",
'online_stamp11' => "minute",
'online_stamp12' => "minutes",
'online_stamp13' => "minutes",
'online_stamp21' => "hour",
'online_stamp22' => "hour",
'online_stamp23' => "hours",
'online_stamp31' => "day",
'online_stamp32' => "Day",
'online_stamp33' => "days",
'online_stamp41' => "week",
'online_stamp42' => "week",
'online_stamp43' => "weeks",
'online_stamp51' => "Month",
'online_stamp52' => "months",
'online_stamp53' => "months",
'online_stamp61' => "year",
'online_stamp62' => "year",
'online_stamp63' => "years",
'online_stamp71' => "century",
'online_stamp72' => "????",
'online_stamp73' => "?????",
'online_notlusers' => "None.",
'online_notlbots' => "None.",
'online_was' => "<b>Online:</b> ",
'online_back' => "ago",
'online_os' => "<b>?S:</b> ",
'online_browser' => "<b>Browser:</b> ",
'online_country' => "<b>Location:</b> ",
'online_city' => "<b>City:</b> ",
'online_group' => "<b>Usergroup:</b> ",
'online_paddcomments' => "<b>Comments:</b> ",
'online_preadnews' => "<b>Latest Article:</b> ",
'online_pincategory' => "<b>Category:</b> ",
'online_pposin' => "<b>Located in:</b> ",
'online_pmainpage' => "<b>Mainpage.</b>",
'online_lpaddcomments' => "<b>???????? ??????????? ?:</b> ",
'online_lpreadnews' => "<b>????? ???????:</b> ",
'online_lpincategory' => "<b>????????? ? ???????:</b> ",
'online_lpposin' => "<b>????????? ?:</b> ", 'online_lpmainpage' => "<b>????????? ?? ??????? ????????.</b>",
'online_robots' => " Robots",
'online_stamp01' => "Second",
'online_stamp02' => "seconds",
'online_stamp03' => "seconds",
'online_stamp11' => "minute",
'online_stamp12' => "minutes",
'online_stamp13' => "minutes",
'online_stamp21' => "hour",
'online_stamp22' => "hour",
'online_stamp23' => "hours",
'online_stamp31' => "day",
'online_stamp32' => "Day",
'online_stamp33' => "days",
'online_stamp41' => "week",
'online_stamp42' => "week",
'online_stamp43' => "weeks",
'online_stamp51' => "Month",
'online_stamp52' => "months",
'online_stamp53' => "months",
'online_stamp61' => "year",
'online_stamp62' => "year",
'online_stamp63' => "years",
'online_stamp71' => "century",
'online_stamp72' => "????",
'online_stamp73' => "?????",
7. ?pen engine/init.php
Find:
?>
Add above it
require_once ENGINE_DIR.'/modules/online.php';
8. ?pen templates/the-template-you-use/main.tpl
Add to a module block:
{online}
9. ?pen templates/the-template-you-use/css/style.css
Add:
#hintbox {
text-align : left;
width : 150px;
font-size : 10px;
border : 1px solid #99a1ab;
background-color : #fff;
layer-background-color : #a396d9;
color : #282828;
margin : 10px 0 0 10px;
padding : 3px 5px;
position : absolute;
visibility : hidden;
z-index : 998;
-moz-opacity : 0.9;
-moz-border-radius : 5px;
filter : alpha(opacity="90");
}
.onl_table {
width : 100%;
font-size : 10px;
}
.onl_table td {
padding-right : 5px;
font-size : 10px;
/* ?????????????????, ???? ? ??? ? ??? ???????*/ /* width : 50%;
*/ }
.a_link, .a_link a:link, .a_link a:visited, .a_link_on {
color : #ff0000;
}
.a_link_on a:hover, .a_link_on a:active {
color : #ff0000;
}
.u_link, .u_link a:link, .u_link a:visited, .u_link_on {
color : #666666;
}
.u_link_on a:hover, .u_link_on a:active {
color : #4b73d4;
}
.e_link, .e_link a:link, .e_link a:visited, .e_link_on {
color : #00a400;
}
.e_link_on a:hover, .e_link_on a:active {
color : #00a400;
}
.j_link, .j_link a:link, .j_link a:visited, .j_link_on {
color : #0000ff;
}
.j_link_on a:hover, .j_link_on a:active {
color : #0000ff;
}
.b_link, .b_link a:link, .b_link a:visited, .b_link_on {
color : #666666;
}
.b_link_on a:hover, .b_link_on a:active {
color : #666666;
}
text-align : left;
width : 150px;
font-size : 10px;
border : 1px solid #99a1ab;
background-color : #fff;
layer-background-color : #a396d9;
color : #282828;
margin : 10px 0 0 10px;
padding : 3px 5px;
position : absolute;
visibility : hidden;
z-index : 998;
-moz-opacity : 0.9;
-moz-border-radius : 5px;
filter : alpha(opacity="90");
}
.onl_table {
width : 100%;
font-size : 10px;
}
.onl_table td {
padding-right : 5px;
font-size : 10px;
/* ?????????????????, ???? ? ??? ? ??? ???????*/ /* width : 50%;
*/ }
.a_link, .a_link a:link, .a_link a:visited, .a_link_on {
color : #ff0000;
}
.a_link_on a:hover, .a_link_on a:active {
color : #ff0000;
}
.u_link, .u_link a:link, .u_link a:visited, .u_link_on {
color : #666666;
}
.u_link_on a:hover, .u_link_on a:active {
color : #4b73d4;
}
.e_link, .e_link a:link, .e_link a:visited, .e_link_on {
color : #00a400;
}
.e_link_on a:hover, .e_link_on a:active {
color : #00a400;
}
.j_link, .j_link a:link, .j_link a:visited, .j_link_on {
color : #0000ff;
}
.j_link_on a:hover, .j_link_on a:active {
color : #0000ff;
}
.b_link, .b_link a:link, .b_link a:visited, .b_link_on {
color : #666666;
}
.b_link_on a:hover, .b_link_on a:active {
color : #666666;
}
10. ?pen engine/skins/default.js
Find:
function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}
Replace with:
function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
if ((ie||ns6) && document.getElementById("hintbox")){
drpmenuobj=document.getElementById("hintbox");
drpmenuobj.style.visibility="hidden"
drpmenuobj.style.left=drpmenuobj.style.top=-500;
}
}
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
if ((ie||ns6) && document.getElementById("hintbox")){
drpmenuobj=document.getElementById("hintbox");
drpmenuobj.style.visibility="hidden"
drpmenuobj.style.left=drpmenuobj.style.top=-500;
}
}
And thats about it.
You must register before you can view this text.
Your are currently a guest on this site. Please click here to register
- views: 3216
-
Print
|
|
| |
#29
sorooshab
sorooshab
Joined: 7.04.2008 | ICQ: --
#28
jeanmic
jeanmicUser Group: Member
hi
plz how we remove the ip and proxy from this file???
plz how we remove the ip and proxy from this file???
Joined: 3.03.2008 | ICQ: --
#26
alfawalidou
alfawalidou
User Group: Member
does it work with last Version???????
--------------------
wWw.DzPrO.cH Joined: 21.02.2008 | ICQ: --
#24
member
memberUser Group: Member
what wbout v6 did i have to change something or is the same like v5.7
Joined: 12.07.2007 | ICQ: --
#23
tbenmcp
tbenmcpUser Group: Member
mene, what you are saying is on step #5 posted by Tak...I install this and it working fine on v.5.7.
Tak, I have question sir...
After I logged off, my user name is not listed in last "Users: 20" immediately, how can I change this to be listed immediately after logged off...? because I have to wait about 20-30 minutes (maybe-not sure)...
Thanks for great mod....
Tak, I have question sir...
After I logged off, my user name is not listed in last "Users: 20" immediately, how can I change this to be listed immediately after logged off...? because I have to wait about 20-30 minutes (maybe-not sure)...
Thanks for great mod....
Joined: 29.09.2006 | ICQ: --
#22
NetJunky
NetJunkyUser Group: Member
mene,
I didn't quite understand what you ment. I have got v.5.7 and I want to put ONLINE module, what should I do?
I didn't quite understand what you ment. I have got v.5.7 and I want to put ONLINE module, what should I do?
Joined: 10.06.2007 | ICQ: --
#21
mene
meneUser Group: Member
Work With 5.7 Very Good
Just
5. ?pen index.php
5.1. Find:
Add After:
don't use the one 5.5 but use 5.3 Just on this
and any step use the one for 5.5 and use the install ( install5.3-5.5.php )
Just
5. ?pen index.php
5.1. Find:
$tpl->set('{info}',
Add After:
$tpl->set('{online}', $tpl->result['online']);
don't use the one 5.5 but use 5.3 Just on this
and any step use the one for 5.5 and use the install ( install5.3-5.5.php )
Joined: 5.06.2007 | ICQ: --
#20
Epsilon
EpsilonUser Group: Member
add a column in your database through phpmyadmin....
Joined: 14.04.2007 | ICQ: --
#19
OrangeVirus
OrangeVirusUser Group: Member
Run install5.0-5.2.php or install5.3-5.5.php (rename to install.php) so if you use DLE 5.5 then run http://yoursite.com/install5.3-5.5.php
This adds to your database. You will see some russian text telling you to delete install.php after you run it, do it.
This adds to your database. You will see some russian text telling you to delete install.php after you run it, do it.
WHat if u dont use DLE 5.5 :| u use DLE 4.3 :| and i get an error
Error: Unknown column 'hash' in 'dle__users' in file /home/www/sonex.freehostia.com/install5.3-5.5.php on line 122
or same one with install.php
Joined: 28.05.2007 | ICQ: --
#18
Tak
Tak
User Group: Editor
kaminas,
did you edit the correct .css and add the hintbox code?
check steps 9 & 10 again.
did you edit the correct .css and add the hintbox code?
check steps 9 & 10 again.
--------------------
On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --
#17
kaminas
kaminas
User Group: Member
Thanks. But i have one problem: i don't have info table when curson on username. How to fix it?
Joined: 20.04.2007 | ICQ: --
#14
Tak
Tak
User Group: Editor
good to hear you are all fixed up. 
--------------------
On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --
#13
kingheart
kingheart
User Group: Member
iranthavan,
Thankx alot anyway
the wrong was a line of "online module v1.0" in index.php and now the hack work correctly.
Thankx
Thankx alot anyway
the wrong was a line of "online module v1.0" in index.php and now the hack work correctly.
Thankx
Joined: 5.03.2007 | ICQ: --
#12
iranthavan
iranthavan
User Group: Member
kingheart give me ur details ... i will check it for u ....
Joined: 19.03.2007 | ICQ: --
#11
kingheart
kingheart
User Group: Member
Tak,
Hi Tak and thankx any way
I did every thing you say but the error still I got nothing, the block where I put this tag {online} in the main.tpl where the template i use appear empty.
But, I would like say that i use a template with right bloc not left and Datalife Engine 5.5 version. I don't know if this affect the hack.
plz Tak help me and thnks again.
Hi Tak and thankx any way
I did every thing you say but the error still I got nothing, the block where I put this tag {online} in the main.tpl where the template i use appear empty.
But, I would like say that i use a template with right bloc not left and Datalife Engine 5.5 version. I don't know if this affect the hack.
plz Tak help me and thnks again.
Joined: 5.03.2007 | ICQ: --
#10
Tak
Tak
User Group: Editor
iranthavan,
Thanks mate, you are correct.
Also,
10. ?pen templates/Default/css/style.css
should be:
?pen templates/the-template-you-use/css/style.css
kingheart,
prolly getting nothing if u put the code in the default templates, and you use a custom one.
Just remember all edits to the templates will be the template you are currently using as the default. So where i say default template - that could be anything you are using at the moment, not just the template that comes default on install.
Thanks mate, you are correct.
Also,
10. ?pen templates/Default/css/style.css
should be:
?pen templates/the-template-you-use/css/style.css
kingheart,
prolly getting nothing if u put the code in the default templates, and you use a custom one.
Just remember all edits to the templates will be the template you are currently using as the default. So where i say default template - that could be anything you are using at the moment, not just the template that comes default on install.
--------------------
On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --
#9
kingheart
kingheart
User Group: Member
iranthavan,
I followed every step but I got nothing in my site plz help me
I followed every step but I got nothing in my site plz help me
Joined: 5.03.2007 | ICQ: --
#8
iranthavan
iranthavan
User Group: Member
works like breeze :) kingheart just follow the steps working fine...
tak u have mentioned twice about editing sitelogin.php
point 8 & 4 is it typo r i am missing something here?
and point 6 should be
6. ?pen language/the-language-you-use/website.lng
not
6. ?pen language/the-template-you-use/website.lng
:)
tak u have mentioned twice about editing sitelogin.php
point 8 & 4 is it typo r i am missing something here?
and point 6 should be
6. ?pen language/the-language-you-use/website.lng
not
6. ?pen language/the-template-you-use/website.lng
:)
Joined: 19.03.2007 | ICQ: --
#7
kingheart
kingheart
User Group: Member
Thankx alot
but
i did everything you said but i got nothing in main page the module didn't work
but
i did everything you said but i got nothing in main page the module didn't work
Joined: 5.03.2007 | ICQ: --
#6
Tak
Tak
User Group: Editor
did you do the edits in index.php? better check all again...
--------------------
On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --
#5
Hesham_3del
Hesham_3delUser Group: Member
i am getting error here
i made as you said
but i get {online}
only in my site
so wht to do ?!
i made as you said
but i get {online}
only in my site
so wht to do ?!
Joined: 9.03.2007 | ICQ: --
#4
onno
onnoUser Group: Member
thanks..........
---------------------------
www.FreeSharez.com
---------------------------
www.FreeSharez.com
Joined: 18.09.2006 | ICQ: --
#2
mohammad_1ta
mohammad_1ta
User Group: Editor
Hi Tak,
This is very nice...
I will translate to Persian...
This is very nice...
I will translate to Persian...
--------------------
Datalife Engine - Persian Support Site
Datalife Engine - Persian Templates Joined: 4.08.2006 | ICQ: --
#1
Ciorax
CioraxUser Group: Member
wow .. nice share , thx TaK 
--------------------
http://web-stars.info Joined: 30.08.2006 | ICQ: --




Users: 1
User Group: Member