vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Who viewed this thread? (https://vborg.vbsupport.ru/showthread.php?t=61225)

trackpads 10-23-2004 10:32 PM

This is a great hack but would be alot better if you could have the information on a separate page. For example, I have a thread that was 100,000 views and honestly have that on the bottom of every page would make it look horrible. but I would like it on other pages for sure so have a link (option per usergroup) would be perfect.

Thanks again,

-Jason

wi11ie1950 10-27-2004 08:36 AM

Quote:

Originally Posted by wi11ie1950
The mouseover change doesnt work for me no matter how i do it i get:-

Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$'
in /home/wi11iec/public_html/forum/showthread.php on line 460

Do the $+++++ go in as well cause they are not in the text file ??

Ok i worked it out.. I guess the +++++ is from VBs censor considering it spells out w h o r e

It all works great now under 3.0.3 :):)

SaN-DeeP 10-27-2004 10:10 AM

Quote:

Originally Posted by SaN-DeeP
Ok i have some serious issues, i wonder if someone else notice about this

My Server is located in US which mite have GMT - 8:00 timings
weras my forum timings and people are of india GMT + 5:30

Currently It is 9:02 AM here.
and i can see this thing when a user last viewed any particular thread
(Yesterday 07:15 PM)

Help me fix this please.

Thank You for nice hack.

Sandy...

any fix for this :) ?

thanks

wi11ie1950 10-30-2004 01:32 AM

Hi San from what i can see it doesnt use VB country and time settings so if you correct it for India then it will still be wrong for those outside india.
I used the hack to hide the date and time behind the name and show on mouseover :):)

sv1cec 11-18-2004 06:21 AM

Quote:

Originally Posted by wi11ie1950
Hi San from what i can see it doesnt use VB country and time settings so if you correct it for India then it will still be wrong for those outside india.
I used the hack to hide the date and time behind the name and show on mouseover :):)

I have the same problem with San, my server is located in USA, while all times are using Greece time. What puzzled me, was that the way the info is shown, using vbdate function, the time should have been correct.

So, I tried using this code:

PHP Code:

$nothing=vbdate($vboptions['dateformat'].' '.$vboptions['timeformat'], time()); 

and it produces the correct time for my country. However, when it is called from the hack (admitedly with a different syntax, I have no idea what these 'true', and 'false' parameters do) , in showthread, it shows the wrong time.

So, I did some experimentation, and here is what I came up with. If you change the vbdate arguments used in the showthread, a little, you can have it show the proper time.

Change this:

PHP Code:

(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, false) 

to this:

PHP Code:

(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, true) 

Or if you do not want to see "Today" or "Yesterday", but just a plain date and time, change the code to:

[php]
PHP Code:

(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']]) 

Here is a description of the vbdate function. The code is located in includes/functions.php

PHP Code:

function vbdate($format$timestamp TIMENOW$doyestoday false$locale true$adjust true$gmdate false

Rgds
-----------
John

Morgalis 11-21-2004 09:05 AM

Hi there

I am installing this with your Mod Management tool, and I am running into a parse error.

vb 3.0.3

parse error - no details given - at the else in the last part of the paste

Quote:

else
{
// or doing it once an hour
$DB_site->shutdown_query("
INSERT INTO " . TABLE_PREFIX . "threadviews (threadid)
VALUES (" . intval($threadinfo['threadid']) . ')'
);
}
Any suggestions?

VitroX 01-12-2005 11:24 AM

thanks sv1cec for your fix ...

now, is there a way the user list can get sorted first those who has replied and then those who doesnt?, I'm after a way to detect those who dont reply to threads and are only lurking, this could be a way to detect them and that would be very usefull for me.

Lottis 01-17-2005 04:22 PM

Anyone like to help me take the time away?

VitroX 01-20-2005 01:00 PM

Quote:

Originally Posted by Lottis
Anyone like to help me take the time away?

yes, in modified showthread.php file for this hack, look for:
PHP Code:

if (!empty($+++++adarray))
{
        $+++++
adids array_keys($+++++adarray);
        $+++++
sult $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).") ORDER BY username");
        $+++++
ad "";
        while (
$whodata $DB_site->fetch_array($+++++sult))
        {
            $+++++
ad .= "<a href=\"member.php?u=$whodata[userid]\">".fetch_musername($whodata)."</a> (".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], truetruefalse)." ".vbdate($vboptions['timeformat'], $+++++adarray[$whodata['userid']], truetruefalse)."), ";
        }
        if ($+++++
ad)
        {
            $+++++
ad substr($+++++ad0strlen($+++++ad)-2);
        }
        
$total+++++ad = @count($+++++adarray);


and replace it for:
PHP Code:

if (!empty($+++++adarray))
{
        $+++++
adids array_keys($+++++adarray);
        $+++++
sult $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).") ORDER BY username");
        $+++++
ad "";
        while (
$whodata $DB_site->fetch_array($+++++sult))
        {
            $+++++
ad .= "<a href=\"member.php?u=$whodata[userid]\">".fetch_musername($whodata)."</a>, ";
        }
        if ($+++++
ad)
        {
            $+++++
ad substr($+++++ad0strlen($+++++ad)-2);
        }
        
$total+++++ad = @count($+++++adarray);


that should remove the date time info.

James Collins 01-27-2005 12:20 AM

Quote:

Originally Posted by snake-boy
Is this working in V3.0.3 (yet)?

I would VERY much like to install this but don't want to be wasting my time.

Anyone who's running this successfully with 3.0.3, please say 'aye' :) ?

-snake

aye :)

in 3.05 as well (with patch)


All times are GMT. The time now is 11:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01301 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete