DataLife engine need help

Discussion in 'HTML & Website Design' started by urhelper, Oct 1, 2012.

  1. #1
    Hi!
    I am running Datalife engine script , i want to create a new tab for showing money from database for users near logout button,
    i write php code for this in engine/modules/newfile-created-byme.php
    <php
    define ( 'DATALIFEENGINE', true );
    include("/engine/modules/sitelogin.php");
    $sqlz = "SELECT * FROM dle_users WHERE user_id=='$member_id[user_id]'";
    $resultz = mysql_query($sqlz);
    $row = mysql_fetch_array($resultz);
    ?>

    <html>
    <li><a href="../wall/cashout.php" title="Account Balance"><span>Rs <? echo $row["money"]; ?> </span></a></li>
    </html>

    i got error undefines variable row in html code

    I want to know that how can i track user name or id of login user to put in "WHERE user_id="
    and than how place in login.tpl file
    i am testing script here http://xfanbux.freehosting.com/3/ for gemini template
    thanks
    bye the way i want to give money to users by adding news (pay per post) is there any easy method to do this or any other script for same
    thanks again
     
    urhelper, Oct 1, 2012 IP
  2. DjMixTape

    DjMixTape Active Member

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #2
    Hello,
    you can use a top authors module, and edit it.
    Example: Instead of 12000 articles - use 12$ (12000/1000)USD
    Is just an ideea.
    When user reach a payout, you will reset the member`s articles count.

    BTW, i saw your site, if you need help, PM me. I know some about DLE, using it for a long time.
     
    DjMixTape, Oct 31, 2012 IP
  3. srirambyrapaneni

    srirambyrapaneni Active Member

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #3
    thank you tape,i need this help too.
     
    srirambyrapaneni, Oct 31, 2012 IP
  4. urhelper

    urhelper Well-Known Member

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    thanx for your help DjMixTape i solve this problem my own atlast i successfully edit .tpl file with required data
     
    urhelper, Nov 3, 2012 IP