1. Profile views

Profile views

  |   2
Profile views

Profile views hack is a hack moded by me from the module who read the news 1.2, the Profile views hack is the hack module to display the details for user account who has visited or view your user profile from your website, the hack will display the user list in popup windows for easy access..

Install steps:

1)Upload the file views.php to /engine/modules/

2) Run an SQL query
Through phpMyAdmin or make a sql fille with the code and import in your db:

DROP TABLE IF EXISTS `dle_read_log`;

CREATE TABLE `dle_read_log` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(50) NOT NULL default 'guest',
`news_id` int(121) NOT NULL default '0',
`date` varchar(50) NOT NULL default '',
`ip` varchar(16) NOT NULL default '',
`is_guest` tinyint(1) NOT NULL default '1',

3) Edit the file



if( $row['fullname'] ) {

Add before

//// START //// Profile views //// http://wesharethe.info //// 

$_IP = $db->safesql($_SERVER['REMOTE_ADDR']);
$date = date( "Y-m-d H:i:s", $_TIME );
$read_log = $db->super_query("SELECT * FROM " . PREFIX ."_read_log WHERE " .(($is_logged)?"name = '{$member_id['name']}'":"ip = '{$_IP}'") ." and news_id = '" .$row['id'] ."' and is_guest='" .(($is_logged)?"0":"1") ."'");
if (!is_array($read_log)) $db->query("INSERT INTO ". USERPREFIX . "_read_log (date,name,news_id,ip,is_guest) values('$date','" .(($is_logged)?$member_id['name']:"guest_".rand(0,15786)) ."','". $row['id'] ."','". $_IP ."','" .(($is_logged)?"0":"1") ."');");

//// END //// Profile views //// http://wesharethe.info ////


Edit the file:


Add this where you like to be diplayed the info

<li><h2>Your Visits : </h2></li>	

<script type="text/javascript">
function showreaders() {
autoOpen: true,
show: 'fade',
hide: 'fade',
width: 400,
height: 300,

buttons: {
"Close" : function() {

if ($('#whoreader-content').height() > 400 ) {

$('#whoreader').dialog( "option", "height", $('#whoreader-content').height() + 60 );
$('#whoreader').dialog( "option", "position", 'center' );
} else {

$('#whoreader').dialog( "option", "height", $('#whoreader-content').height() + 60 );
$('#whoreader').dialog( "option", "position", 'center' );



<div style="cursor:pointer; font-weight:bold; font-size:14px;" onclick="showreaders(); return false;">Profile views: ({all-read-num}) Who is it?</div>

<div id='whoreader' title='Who watched the movie?' style='display:none;overflow:auto;'>
<div id='whoreader-content'>
Members :({u-read-num})<br />
{u-readed}<br />
<br />
Guests :({g-read-num})<br />

All done

Note if you have instaled the module whoreadthenews 1.0 please upgrade to version1.2

Tested on DLE 9.8

Hack made by Dark22 Source

Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.



Comments 2

Commented By m.yMJJ on November 6, 2013 (2:00 am)
Hello. In version 10 Datalife How should I use?

When entering the profile, this error occurs:

Error Number: 1054
The Error returned was:
Unknown column 'name' in 'where clause'

Please advise if you may.
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
Commented By noobos on November 6, 2013 (4:55 am)
are you using the different database prefix? if you use different database prefix then you have to change the sql query code

Change to your database prefix if you use prefix other than "dle" for example if your database prefix is "noobos" then change dle_read_log to noobos_read_log and then run sql again.
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
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.