DataLife Engine English Support Site » DatalifeEngine Modules » Online Module 2.2
Welcome,. Enter Username, or register.
Login: password:  



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

Author Tak, Category DatalifeEngine Modules1 April 2007.
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' => "?????",



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;
}





10. ?pen engine/skins/default.js

Find:
function createhintbox(){
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;
}
}


And thats about it. winked

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
    • 85
     (Votes #: 9)
  
  • Weed links in the static page
  • Two stage {login}: {login_if} and {login_else}
  • How to translate the calendar all versions
  • The gallery mod
  • Readmore (For News) with AJAX





  • User Group: Member
    Works for me v 7 ! with a little change !
    Joined: 7.04.2008 | ICQ: --


    User Group: Member
    hi
    plz how we remove the ip and proxy from this file???
    Joined: 3.03.2008 | ICQ: --
    #27 x7x


    User Group: Member
    How install this module ?
    Please help me
    Joined: 7.04.2008 | ICQ: --


    User Group: Member
    does it work with last Version???????


    --------------------
    wWw.DzPrO.cH Joined: 21.02.2008 | ICQ: --
    #25 RAJDON


    User Group: Member
    THE BEST !!!! You are good man !!!
    Joined: 6.07.2007 | ICQ: --
    #24 member


    User Group: Member
    what wbout v6 did i have to change something or is the same like v5.7
    Joined: 12.07.2007 | ICQ: --


    User 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....
    Joined: 29.09.2006 | ICQ: --


    User 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?
    Joined: 10.06.2007 | ICQ: --
    #21 mene


    User Group: Member
    Work With 5.7 Very Good

    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 fellow

    and any step use the one for 5.5 and use the install ( install5.3-5.5.php )
    Joined: 5.06.2007 | ICQ: --


    User Group: Member
    add a column in your database through phpmyadmin....
    Joined: 14.04.2007 | ICQ: --


    User 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.

    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


    User Group: Editor
    kaminas,

    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: --


    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: --


    User Group: Member
    thanks
    Joined: 22.03.2007 | ICQ: --


    User Group: Member
    Thanx Tak...
    Joined: 5.04.2007 | ICQ: --
    #14 Tak


    User Group: Editor
    good to hear you are all fixed up. smile


    --------------------
    On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --


    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 wink
    Joined: 5.03.2007 | ICQ: --


    User Group: Member
    kingheart give me ur details ... i will check it for u ....
    Joined: 19.03.2007 | ICQ: --


    User Group: Member
    Tak,

    Hi Tak and thankx any way feel

    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. bully
    Joined: 5.03.2007 | ICQ: --
    #10 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.


    --------------------
    On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --


    User Group: Member
    iranthavan,

    I followed every step but I got nothing in my site plz help me
    Joined: 5.03.2007 | ICQ: --


    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

    :)
    Joined: 19.03.2007 | ICQ: --


    User Group: Member
    Thankx alot

    but
    i did everything you said but i got nothing in main page the module didn't work feel
    Joined: 5.03.2007 | ICQ: --
    #6 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: --


    User Group: Member
    i am getting error here

    i made as you said

    but i get {online}

    only in my site

    so wht to do ?!
    Joined: 9.03.2007 | ICQ: --
    #4 onno


    User Group: Member
    thanks..........

    ---------------------------
    www.FreeSharez.com
    Joined: 18.09.2006 | ICQ: --


    User Group: Member
    Thanks Tak am
    Joined: 8.09.2006 | ICQ: --


    User Group: Editor
    Hi Tak, laughing
    This is very nice...
    I will translate to Persian... smile


    --------------------
    Datalife Engine - Persian Support Site
    Datalife Engine - Persian Templates Joined: 4.08.2006 | ICQ: --


    User Group: Member
    wow .. nice share , thx TaK am


    --------------------
    http://web-stars.info Joined: 30.08.2006 | ICQ: --

    Information

    Members of Guest cannot leave comments.


    Your Ad Here

    Vote

    Datalife Engine is
    Excellent
    Good
    Fair
    Poor
    Bad

    Get Chitika eMiniMalls

    The information

    Online Now:
    Users: 1
    zigmuntt

    Robots: 4
    GooglebotWebAlta Crawler
    AlexaYahoo

    Guests: 6
    Total: 11

    Last Online Users:
    Users: 20
    abdouaniba admin7
    alnoah bethuy
    bitto dato_var4
    funning17 fur9h
    g-mic javad
    kyoko MaCeLMp4
    Magid Motor
    name_less pakio
    sanalreis sma_eslami
    topsoftware whosthis.ee

    Tgs Cloud

    4support, Added, After, Appointmentmodule, BBcode, CHMOD, Cache, Clear, Cropping, Datalifeengine, Description, Dle, EMail, ENGINE_DIRincparseclassphp, Length, Uberat, access, according, adding, additional, administrator, attention, categories, certain, changes, closing, comments, corrected, creation, directly, domain SUPPORT, editing, enginecachesystemStart, errors, everything, files, folder, forum, friends, indispensable, install, installation, installphp, issue, itsinstructions, language, large, listof, moved, myFAQ, notice, opening, opublikovanye, patterns, player, possible, published, question, received, record, referring, registration, removal, responses, roach, script, server, submit, support, system, titla, upgrade, useful, users, using, version, versions, visitors, which, worry

    To show all tags