Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Who Viewed This Thread - Enhanced Version Details »»
Who Viewed This Thread - Enhanced Version
Version: 1.3.1, by Ocean Ocean is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-29-2004 Last Update: 12-14-2004 Installs: 69
DB Changes
 
No support by the author.

Who Viewed This Thread - Enhanced Version v1.3.2


Version: 1.3.2
vB Version: 3.0.3
Developer: Ocean
Install Difficulty: Moderately Easy



The original hack this references was done by Gary King (https://vborg.vbsupport.ru/showthread.php?t=61222). I modified his hack in order to gain some additional functionality.

This hack is meant to be installed instead of Gary's original version - not in addition to it (for sanity's sake, as far as managing the code is concerned).


(This was submitted as a seperate hack with Gary's permission. If this belongs in a different group, I'm sure a Moderator will move it accordingly. )


Description:

This hack will allow you to see which users have viewed any given Thread. In addition, there is a second section that is resettable. What this means, is that there are two sections that show a list of users who have viewed the Thread in question.

The first section is a Master List - it shows all users who have viewed that thread at ANY point in time (since the hack was installed).

The second section works like your car's Trip Meter. You can Reset that second section at any time and it will then show only the users that have viewed that thread FROM THAT POINT ON. In addition, this second section will show you the Date/Time of the last Reset, so that you know from what point that second list is showing. This is useful, for example, if you want to be able to see which users have viewed a thread after you have updated it, or after a particular post of interest has been made.

You can choose which UserGroups can view the Who Viewed information, or even if you want all users to be able to see the first section - but only certain UserGroups to see the second.

You can also choose whether you want the Who Viewed information to be displayed directly on the ShowThread page, or if you would prefer to only show a link that opens a Pop Up Window with the Who Viewed information there.




Release Notes:


v1.3.2

Fixed the problem where the Pop-Up Link was visible to users who didn't have permission to view that information. (They still wouldn't be shown the information - but the link shouldn't have been visible to them in the first place)


v1.3.1

Minor modifications to the Aesthetics of the ShowThread page, as well as the Who Viewed Pop Up Window. No functional changes. If you are using v1.3.0, you do not need to upgrade, unless you wish to have the new aesthetics.


v1.3.0

Added the ability to choose whether you want the Who Viewed information to be displayed directly on the ShowThread page (as it was for all prior versions of this hack), or if you would prefer to only show a link that opens a Pop Up Window with the Who Viewed information there. Also consolidated and cleaned up the code.


v1.2.6

Fixed the problem with the "Who Viewed Since" table collapsing the wrong object


v1.2.5

Minor changes to optimize code. No functional changes. If you have v1.2.4, you do not need to upgrade to v1.2.5.


v1.2.4

Reworked the Security Sections so that they are exponentially easier to set. Now, other than choosing which UserGroups you want to have access to this hack, you only need to change ONE variable in order to choose which Security Layout you want to use.


v1.2.3

Updated all of the Security Sections to allow for more flexibility in selecting which UserGroups may view the WhoViewed Information.


v1.2.1

Upgrade Notes have been updated, and an Upgrade Script provided for those who have Gary's original version installed. If you have already successfully installed v1.2 of this hack, there is no need to do anything further.


v1.2

The original hack allowed you to see which users had viewed any particular thread on your board. It was and is an excellent hack - however, I desired some additional functionality, and so I made the following changes:


1. The format of stored User IDs has changed to a comma delineated format. This was done to optimize the code by stripping out the need for an additional explode() and implode().

2. An additional set of information is now being kept and maintained. However, unlike the first set (which will show you who has viewed a particular thread - ever), the second set is resettable at any time by Admins. This gives you a "tripmeter" of sorts, as you can now tell who has viewed a particular thread from the last time you reset that counter for that thread.

3. The date and time of the last reset for each thread is kept and displayed. Otherwise, it would be self-defeating, as you wouldn't remember when you last reset it.

4. This hack has been written so that all functions are for Admins only. Instructions are included for modifying this, if you wish. (Note: Even if you make ALL information viewable to ALL users, only Admins are allowed to Reset Counters. It is recommended that you do not change this)

5. I have the template additions being added at the bottom of the ShowThread page (right above the posting permissions). It seems to make more sense putting it there, as it doesn't get in the way, aesthetically speaking. Basically, if you want to check that section, it's there - if not, you'll never be bothered by it. If you prefer to have it somewhere else, feel free to insert the ShowThread Template portion of the code wherever you wish.



UPGRADE NOTES:

The instructions for this hack assume that you do NOT have any prior version installed.

At the moment, if you already have Gary's original 1.0 version installed, you will either need to completely clear out the existing data, before installing this hack - or you can download the "WhoViewedUpgradeFormat.php" script in order to convert the data format over to the new style.

Instructions are included for upgrading.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 12-07-2004, 09:16 AM
andrew67 andrew67 is offline
 
Join Date: Dec 2001
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

going to go install.. it sounds good Appreciated.
Reply With Quote
  #83  
Old 12-15-2004, 01:14 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by andrew67

going to go install.. it sounds good Appreciated.
I'm glad you like it!
Reply With Quote
  #84  
Old 12-15-2004, 01:14 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha

When you have $whoviewed_display_option = 2;
Those who are not allowed to view "who viewed list" should NOT see the link "List users who viewed this thread" either
Thank you for pointing this out. This problem has been fixed in v1.3.2, which I have just released.

Anyone wishing to upgrade from v1.3.1 to v1.3.2 just needs to re-do steps 6 and 9 (replacing the sections in ShowThread.php, and the SHOWTHREAD template).

Reply With Quote
  #85  
Old 12-19-2004, 01:48 AM
IC-Games IC-Games is offline
 
Join Date: Dec 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

getting a currupt download here, some charectors are out of whack for me
Reply With Quote
  #86  
Old 12-19-2004, 08:20 AM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IC-Games

getting a currupt download here, some charectors are out of whack for me
Which file is giving you problems? Is it the main 1.3.2 Instructions file? If so, I tried downloading it from here and at an initial glance - it seems fine. Perhaps the problem was with your download - and you might want to try it again.
Reply With Quote
  #87  
Old 02-09-2005, 06:53 AM
H2k H2k is offline
 
Join Date: Apr 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was searching for this mod about week and just know find it

it is the hard mod i ever see .. to install it conf me i dont no what line i should edit or add ..

could u please add for me this mod


PHP Code:
// pre-cache templates used by specific actions
$actiontemplates = array();

// ####################### PRE-BACK-END ACTIONS ##########################
function exec_postvar_call_back()
{
    global 
$_REQUEST;
    if (
$_REQUEST['goto'] == 'lastpost' OR $_REQUEST['goto'] == 'newpost' OR $_REQUEST['goto'] == 'postid')
    {
        global 
$noheader;
        
$noheader 1;
    }
}

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
'./includes/functions_bigthree.php');
require_once(
'./includes/functions_showthread.php');
require_once(
'./includes/functions_warning.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

globalize($_REQUEST, array(
    
'perpage' => INT,
    
'pagenumber' => INT,
    
'highlight' => STR,
    
'posted'    => INT,
    
'goto'
));
$hierarchical=$warn_opts['hierarchical'];
$viewoption=$warn_opts['viewoption'];
$buttons=$warn_opts['textbutoption'];
// *********************************************************************************
// set $threadedmode (continued from sessions.php)
if ($vboptions['allowthreadedmode'])
{
    if (!isset(
$threadedmode))
    {
        
DEVDEBUG('$threadedmode is empty');
        if (
$bbuserinfo['threadedmode'] == 3)
        {
            
$threadedmode 0;
        }
        else
        {
            
$threadedmode $bbuserinfo['threadedmode'];
        }
    }

    switch (
$threadedmode)
    {
        case 
1:
            
$show['threadedmode'] = true;
            
$show['hybridmode'] = false;
            
$show['linearmode'] = false;
            break;
        case 
2:
            
$show['threadedmode'] = false;
            
$show['hybridmode'] = true;
            
$show['linearmode'] = false;
            break;
        default:
            
$show['threadedmode'] = false;
            
$show['hybridmode'] = false;
            
$show['linearmode'] = true;
        break;
    }
}
else
{
    
DEVDEBUG('Threadedmode disabled by admin');
    
$threadedmode 0;
    
$show['threadedmode'] = false;
    
$show['linearmode'] = true;
    
$show['hybridmode'] = false;
}

// make an alternate class for the selected threadedmode
$modeclass = array();
for (
$i 0$i 3$i++)
{
    
$modeclass["$i"] = iif($i == $threadedmode'alt2''alt1');
}

// prepare highlight words
if (!empty($_GET['highlight']))
{
    
$highlightwords iif($goto'&''&') . 'highlight=' urlencode($_GET['highlight']);
}
else
{
    
$highlightwords '';
}

// ##############################################################################
// ####################### HANDLE HEADER() CALLS ################################
// ##############################################################################
switch($goto)
{
    
// *********************************************************************************
    // go to next newest
    
case 'nextnewest':
        
$thread verify_id('thread'$threadid11);
        if (
$getnextnewest $DB_site->query_first("
            SELECT threadid
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
            WHERE forumid = 
$thread[forumid] AND lastpost > $thread[lastpost] AND visible = 1 AND open <> 10
            AND deletionlog.primaryid IS NULL
            ORDER BY lastpost
            LIMIT 1
        "
))
        {
            
$threadid $getnextnewest['threadid'];
            unset (
$thread);
        }
        else
        {
            eval(
print_standard_error('error_nonextnewest'));
        }
        break;
    
// *********************************************************************************
    // go to next oldest
    
case 'nextoldest':
        
$thread verify_id('thread'$threadid11);
        if (
$getnextoldest $DB_site->query_first("
            SELECT threadid
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
            WHERE forumid = 
$thread[forumid] AND lastpost < $thread[lastpost] AND visible = 1 AND open <> 10
            AND deletionlog.primaryid IS NULL
            ORDER BY lastpost DESC
            LIMIT 1
        "
))
        {
            
$threadid $getnextoldest['threadid'];
            unset(
$thread);
        }
        else
        {
            eval(
print_standard_error('error_nonextoldest'));
        }
        break;
    
// *********************************************************************************
    // goto last post
    
case 'lastpost':
        
$threadid intval($_REQUEST['threadid']);
        if (!empty(
$_REQUEST['forumid']))
        { 
// this one needs to stay AS $_REQUEST!
            
$forumid verify_id('forum'$forumid10);

            
$thread $DB_site->query_first("
                SELECT threadid
                FROM " 
TABLE_PREFIX "thread AS thread
                LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')
                WHERE forumid IN (
$foruminfo[childlist]) AND visible = 1 AND (sticky = 1 OR sticky = 0)
                AND lastpost >= " 
. ($foruminfo['lastpost'] - 30) . " AND open <> 10 AND deletionlog.primaryid IS NULL
                ORDER BY lastpost DESC
                LIMIT 1
            "
);
            
$threadid $thread['threadid'];
        }

        if (!empty(
$threadid))
        {
            if (
$getlastpost $DB_site->query_first("
                SELECT MAX(postid) AS postid
                FROM " 
TABLE_PREFIX "post AS post
                LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
                WHERE threadid = " 
intval($threadid) . " AND visible = 1 AND deletionlog.primaryid IS NULL
                LIMIT 1
            "
))
            {
                if (
$threadedmode != 1// if linear or hybrid
                
{
                    
exec_header_redirect("showthread.php?$session[sessionurl_js]p=$getlastpost[postid]$highlightwords#post$getlastpost[postid]");
                }
                else 
// if threaded
                
{
                    
$postid $getlastpost['postid'];
                }
            }
        }
        break;
    
// *********************************************************************************
    // goto newest unread post
    
case 'newpost':
        
$threadinfo verify_id('thread'$threadid11);

        if ((
$tview fetch_bbarray_cookie('thread_lastview'$threadid)) > $bbuserinfo['lastvisit'])
        {
            
$bbuserinfo['lastvisit'] = $tview;
        }

        
$posts $DB_site->query_first("
            SELECT MIN(postid) AS postid
            FROM " 
TABLE_PREFIX "post
            WHERE threadid = 
$threadinfo[threadid] AND visible = 1 AND dateline > $bbuserinfo[lastvisit]
            LIMIT 1
        "
);
        if (
$posts['postid'])
        {
            
exec_header_redirect("showthread.php?$session[sessionurl_js]p=$posts[postid]$highlightwords#post$posts[postid]");
        }
        else
        {
            
exec_header_redirect("showthread.php?$session[sessionurl_js]t=$threadinfo[threadid]&goto=lastpost$highlightwords");
        }
        break;
    
// *********************************************************************************
}
// end switch($goto)

// *********************************************************************************
// workaround for header redirect issue from forms with enctype in IE
// (use a scrollIntoView javascript call in the <body> onload event)
$onload '';

// *********************************************************************************
// set $perpage

if (!$perpage)
{
    
$perpage $bbuserinfo['maxposts'];
}

$checkmax explode(','$vboptions['usermaxposts'] . ',' $vboptions['maxposts']);
if (
$perpage OR $perpage max($checkmax))
{
    
$perpage $vboptions['maxposts'];
}

// *********************************************************************************
// set post order
if ($bbuserinfo['postorder'] == 0)
{
    
$postorder '';
}
else
{
    
$postorder 'DESC';
}

// *********************************************************************************
// get thread info
$thread verify_id('thread'$threadid11);
$threadinfo = &$thread;

// *********************************************************************************
// check for visible / deleted thread
if ((!$thread['visible'] OR $thread['isdeleted']) AND !can_moderate($thread['forumid']))
{
    
$idname $vbphrase['thread'];
    eval(
print_standard_error('error_invalidid'));
}

// *********************************************************************************
// jump page if thread is actually a redirect
if ($thread['open'] == 10)
{
    
exec_header_redirect("showthread.php?$session[sessionurl_js]t=$thread[pollid]");
}

// *********************************************************************************
// Tachy goes to coventry
if (in_coventry($thread['postuserid']) AND !can_moderate($thread['forumid']))
{
    
$idname $vbphrase['thread'];
    eval(
print_standard_error('error_invalidid'));
}

// *********************************************************************************
// do word wrapping for the thread title
if ($vboptions['wordwrap'] != 0)
{
    
$thread['title'] = fetch_word_wrapped_string($thread['title']);
}

// *********************************************************************************
// words to highlight from the search engine
if (!empty($highlight))
{

    
$highlight preg_replace('#\*+#s''*'$highlight);
    if (
$highlight != '*')
    {
        
$regexfind = array('\*''\<''\>');
        
$regexreplace = array('[\w.:@*/?=]*?''<''>');
        
$highlight preg_quote(strtolower($highlight), '#');
        
$highlight explode(' '$highlight);
        
$highlight str_replace($regexfind$regexreplace$highlight);
        foreach (
$highlight AS $val)
        {
            if (
$val trim($val))
            {
                
$replacewords[] = htmlspecialchars_uni($val);
            }
        }
    }
}

// *********************************************************************************
// make the forum jump in order to fill the forum caches
$curforumid $thread['forumid'];
construct_forum_jump();

// *********************************************************************************
// get forum info
$forum fetch_foruminfo($thread['forumid']);
$foruminfo = &$forum;

// *********************************************************************************
// check forum permissions
$forumperms fetch_permissions($thread['forumid']);
if (!(
$forumperms CANVIEW))
{
    
print_no_permission();
}
if (!(
$forumperms CANVIEWOTHERS) AND ($thread['postuserid'] != $bbuserinfo['userid'] OR $bbuserinfo['userid'] == 0))
{
    
print_no_permission();
}

// *********************************************************************************
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

// *********************************************************************************
// get ignored users
$ignore = array();
if (
trim($bbuserinfo['ignorelist']))
{
    
$ignorelist preg_split('/( )+/'trim($bbuserinfo['ignorelist']), -1PREG_SPLIT_NO_EMPTY);
    foreach (
$ignorelist AS $ignoreuserid)
    {
        
$ignore["$ignoreuserid"] = 1;
    }
}
DEVDEBUG('ignored users: ' implode(', 'array_keys($ignore)));

// *********************************************************************************
// filter out deletion notices if can't be seen
if (!($forumperms CANSEEDELNOTICE) AND !can_moderate($threadinfo['forumid']))
{
    
$delthreadlimit "AND deletionlog.primaryid IS NULL";
    
$deljoin "LEFT JOIN " TABLE_PREFIX "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')";
    
$linkdeleted false;
}
else
{
    
$delthreadlimit '';
    
$deljoin '';
    
$linkdeleted true;
}

$show['viewpost'] = iif(can_moderate($thread['forumid']), truefalse);
$show['managepost'] = iif(can_moderate($thread['forumid'], 'candeleteposts') OR can_moderate($thread['forumid'], 'canremoveposts'), truefalse);

// *********************************************************************************
// find the page that we should be on to display this post
if (!empty($postid) AND $threadedmode == 0)
{
    
$postinfo verify_id('post'$postid11);
    
$threadid $postinfo['threadid'];

    
$getpagenum $DB_site->query_first("
        SELECT COUNT(*) AS posts
        FROM " 
TABLE_PREFIX "post AS post
        LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
        WHERE threadid = 
$threadid AND visible = 1 AND deletionlog.primaryid IS NULL
        AND dateline " 
iif(!$postorder'<=''>=') . $postinfo[dateline]
    "
);
    
$pagenumber ceil($getpagenum['posts'] / $perpage);
}

// *********************************************************************************
// update views counter
if ($vboptions['threadviewslive'])
{
    
// doing it as they happen
    
$DB_site->shutdown_query("
        UPDATE " 
TABLE_PREFIX "thread
        SET views = views + 1
        WHERE threadid = " 
intval($threadinfo['threadid'])
    );
}
else
{
    
// or doing it once an hour
    
$DB_site->shutdown_query("
        INSERT INTO " 
TABLE_PREFIX "threadviews (threadid)
        VALUES (" 
intval($threadinfo['threadid']) . ')'
    
);
}
// ## <ucs>
if ($vboptions['uttpoints_enablesystem'] == '1')
// It's enabled! Yay!
    
if ($thread['postuserid'] != $bbuserinfo['userid'])
    { 
// Don't give points if the user viewing the thread is the one who created it.
        
if ($vboptions['uttpoints_perview'] != '0' && $forum['uttpoints_perview'] != '0')
        { 
// Both needed values are not 0... good.
                
$givethempoints = ($vboptions['uttpoints_perview'] * $forum['uttpoints_perview']);
        }
    }
    if (isset(
$givethempoints))
    { 
// If they get money....
        // Send the query and we're done.
        
$DB_site->shutdown_query("UPDATE ".TABLE_PREFIX $vboptions[uttpoints_pointtable]." SET ".$vboptions[uttpoints_pointsfield]."=".$vboptions[uttpoints_pointsfield]."+".$givethempoints." WHERE userid='$thread[postuserid]'");
    }
}
// ## </ucs>
// *********************************************************************************
// display ratings if enabled
$show['rating'] = false;
if (
$forum['allowratings'] == 1)
{
    if (
$thread['votenum'] > 0)
    {
        
$thread['voteavg'] = vb_number_format($thread['votetotal'] / $thread['votenum'], 2);
        
$thread['rating'] = round($thread['votetotal'] / $thread['votenum']);
        if (
$thread['votenum'] >= $vboptions['showvotes'])
        {
            
$show['rating'] = true;
        }
    }

    
devdebug("threadinfo[vote] = $threadinfo[vote]");

    if (
$threadinfo['vote'])
    {
        
$voteselected["$threadinfo[vote]"] = HTML_SELECTED;
        
$votechecked["$threadinfo[vote]"] = HTML_CHECKED;
    }
    else
    {
        
$voteselected[0] = HTML_SELECTED;
        
$votechecked[0] = HTML_CHECKED;
    }
}

// *********************************************************************************
// get some vars from the referring page in order
// to put a nice back-to-forum link in the navbar
/*
unset($back);
if (strpos($_SERVER['HTTP_REFERER'], 'forumdisplay') !== false)
{
    if ($vars = strchr($_SERVER['HTTP_REFERER'], '&'))
    {
        $pairs = explode('&', $vars);
        foreach ($pairs AS $v)
        {
            $var = explode('=', $v);
            if ($var[1] != '' and $var[0] != 'forumid')
            {
                $back["$var[0]"] = $var[1];
            }
        }
    }
}
*/

// *********************************************************************************
// set page number
if ($pagenumber 1)
{
    
$pagenumber 1;
}
else if (
$pagenumber ceil(($thread['replycount'] + 1) / $perpage))
{
    
$pagenumber ceil(($thread['replycount'] + 1) / $perpage);
}
// *********************************************************************************
// initialise some stuff...
$limitlower = ($pagenumber 1) * $perpage;
$limitupper = ($pagenumber) * $perpage;
$counter 0;
$threadview fetch_bbarray_cookie('thread_lastview'$thread['threadid']);
$displayed_dateline 0
i really dont understand it .. and this mod is very importen .. i give u my showthread.php i have also modify it and i add a few mods so if u can help me to add it ..

thankyou :nervous:
Reply With Quote
  #88  
Old 02-09-2005, 10:52 AM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by H2k

I was searching for this mod about week and just know find it

it is the hard mod i ever see .. to install it conf me i dont no what line i should edit or add ..

could u please add for me this mod

i really dont understand it .. and this mod is very importen .. i give u my showthread.php i have also modify it and i add a few mods so if u can help me to add it ..

thankyou :nervous:

H2k, I'm not going to do your work for you.

This is not a difficult hack to install. The instructions are clear - and most of it is a matter of finding a particular line of code and inserting additional code either above or below the section you were asked to find.

If you read the instructions carefully, you should not have a problem installing it.
Reply With Quote
  #89  
Old 02-09-2005, 05:38 PM
H2k H2k is offline
 
Join Date: Apr 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

let me tell u the truth i always dont like any one to make my job .. becz i like to learn .. but the truth from your mod .. is really hard.. i have add over then 30 mod in my board.. never is ee a hard mod .. like yours..

becz it is really conf.. as my english is bad..

like ud ont see

after this line add
b4 this line add.

i really can't understand the installing file u have.. it is conf .. really i read it over then 20 time .. i try to make evrything and still not work some time give me error some time .. the view thread dose not show .. and so on

ok i need a help from u to let me undersand this ..


Code:
// pre-cache templates used by specific actions
$actiontemplates = array();
I Replace it with

Code:
// pre-cache templates used by specific actions
$actiontemplates = array(

	'whoviewedpopup' => array(
		'WhoViewedTemplate'
	)

);

Fine

Code:
fetch_bbarray_cookie('thread_lastview', $thread['threadid']);
B4 ADD

Code:
// *********************************************************************************
// initialise some stuff...
$limitlower = ($pagenumber - 1) * $perpage;
$limitupper = ($pagenumber) * $perpage;
$counter = 0;
$threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']);
$displayed_dateline = 0;

Code:
################################################################################
########################## Who Viewed This Thread ##############################
##########################      CONFIGURATION     ##############################
################################################################################




Know after i add this the last one u tell should i add the code from

Code:
// Section - Check if user has already viewed thread, and add UserID if they have not
TO
Code:
		//redirect back to Pop Up Window 
		$url = "showthread.php?$session[sessionurl]do=whoviewedpopup&amp;t=$threadid"; 
		eval(print_standard_redirect('redirecting')); 
	
	}



}
this is i dont understand reasly what code i need to add in this part .. if u can tell me what code .. it will be easy my english is really bad.. and i hope that with your reply u can Tell me example after that put this code.. and iwill be done with this mod
Reply With Quote
  #90  
Old 02-09-2005, 06:40 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by H2k

Hello

Fine

Code:
fetch_bbarray_cookie('thread_lastview', $thread['threadid']);
B4 ADD

Code:
// *********************************************************************************
// initialise some stuff...
$limitlower = ($pagenumber - 1) * $perpage;
$limitupper = ($pagenumber) * $perpage;
$counter = 0;
$threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']);
$displayed_dateline = 0;

That's not the sole amount of code you're supposed to add at that point. You need to add everything BETWEEN



********************************
6. Above, Add:
**********


And this:


********************************

7. Optional Step: In the code you just added in the previous step, there is a Configuration Section. If you wish, you can modify this hack's behavior and permissions there. Instructions can be found within the Configuration Section.

********************************


Quote:
Originally Posted by H2k


Know after i add this the last one u tell should i add the code from

Code:
// Section - Check if user has already viewed thread, and add UserID if they have not
TO
Code:
		//redirect back to Pop Up Window 
		$url = "showthread.php?$session[sessionurl]do=whoviewedpopup&amp;t=$threadid"; 
		eval(print_standard_redirect('redirecting')); 
 
	}
 
 
 
}
this is i dont understand reasly what code i need to add in this part .. if u can tell me what code .. it will be easy my english is really bad.. and i hope that with your reply u can Tell me example after that put this code.. and iwill be done with this mod


No, you're not supposed to add anything. Those are not part of the instructions. That's part of the code you should have added in the previous step.

The instructions are all formatted in an identical manner - they are located between single lines of asterisks, and each instructional step is prefixed with that step's Number.

The problem is that you are not looking for where each instruction begins and ends - you are reading the middle of the code and assuming that it's part of the install instructions, which it is not.

There *is* a configuration section - but that is located within code that you are supposed to be adding. Step 7 indicates this, and tells you that you can optionally configure this hack's behavior by editing the Configuration Section - after it's been added in the appropriate place.
Reply With Quote
  #91  
Old 02-10-2005, 04:42 AM
Jadelit Jadelit is offline
 
Join Date: Feb 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to add the usergroup colors to the list as well?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05771 seconds
  • Memory Usage 2,504KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete