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
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.
thanx for your help DjMixTape i solve this problem my own atlast i successfully edit .tpl file with required data