vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Who has read a Thread (https://vborg.vbsupport.ru/showthread.php?t=197487)

furnival 08-29-2011 07:56 PM

Great! Thanks Paul M, that was very generous of you to reply, and on a bank holiday too!

Simon Lloyd 05-20-2012 11:18 PM

Hi Paul,
Just installed this, great mod!, is it possible to display a "Top Ten" readers in forumhome..etc?

mangmel 06-17-2012 04:49 AM

really help this ....

oxblood12 06-20-2012 01:21 PM

thanks

viper357 07-04-2012 05:14 AM

Paul, I've noticed this mod doesn't pick up readers that browse the forums with tapatalk, any chance that could be implemented? Probably Forum Runner too.

Paul M 07-04-2012 03:05 PM

Im afraid I cannot account for other 3rd part addons.

viper357 07-04-2012 03:58 PM

Fair enough, although Forum Runner isn't really 3rd party seeing as it's now owned by IB. Pity, as mobile usage certainly is climbing in this new era of smart-phones and tablets and we're having to adapt our forums to accommodate this.

Does anybody else know how to adapt this mod so that it detects Tapatalk and Forum Runner users?

Thanks.

Frosti 07-04-2012 04:25 PM

I get nothing... I don't know what is wrong?I have blocked every usergroup accept Admins but that's all I did in the settings area.
I rebuilt cache and thread stats...

Any suggestions?

Frosti 07-06-2012 03:07 AM

nevermind... i got it now. GOOD MOD!!!

viper357 08-03-2012 07:27 AM

Paul, would the query below be the same for a forum on 4.1.10? Thanks.
Quote:

Originally Posted by Paul M (Post 2204960)
You could certianly run some queries on the table in phpmyadmin.

Code:

select userid, username, count(threadid) as threads_read
from whoread inner join user using (userid)
group by userid order by threads_read desc

Will show you who is reading the most overall.


Paul M 08-03-2012 03:52 PM

That should work on any vb4 database (that has this installed of course).

Midohash 08-04-2012 04:16 PM

Perfect ... Installed ... Thank you

IKShadow 08-05-2012 08:13 PM

I installed the mod on my forum ver. 3.8.4, checked the template and hook is ok.
Code:

<!-- end currently active users -->
</if>

$template_hook[showthread_after_activeusers]

<if condition="$show['popups']">

I don't see any option where to check who read the thread, can someone please upload the link where is it shown ?

CoffeeLovesYou 08-07-2012 11:11 AM

NVM fixed it

viper357 10-21-2012 08:43 AM

Does anybody know how to make this mod recognise users on Tapatalk?

testerv 10-29-2012 07:57 PM

Is there a way to have it display the time of the first (instead of the last) time it was looked at by a user?

ChiNa 11-17-2012 11:30 PM

Installed and Voted!!

Amazing Addon,,, It has really helped us admins realise who is using the forum and who isnot! Thanks a lot Paul,

RWilcox 12-13-2012 04:51 PM

Can somebody tell me the template name to edit the box it's inside?

Tyran1 02-05-2013 08:13 PM

Updated to vB5 ??

Paul M 02-06-2013 12:47 AM

I have not updated any mods to vB5 at this time.

Simon Lloyd 02-06-2013 12:27 PM

Quote:

Originally Posted by ryaan (Post 2390511)
Can somebody tell me the template name to edit the box it's inside?

Display_readers

Tyran1 02-06-2013 07:29 PM

Quote:

Originally Posted by Paul M (Post 2402284)
I have not updated any mods to vB5 at this time.

No, not at this time, in feature to 5.0 Gold or 5.1 ??

Paul M 02-07-2013 01:27 AM

When (if !) I ever have some actual free time, I'll look at some of them.

Tyran1 02-11-2013 10:42 PM

Quote:

Originally Posted by Paul M (Post 2402527)
When (if !) I ever have some actual free time, I'll look at some of them.

Thanks!! This is a very nice Addon!!

viper357 08-04-2013 07:15 PM

Quote:

Originally Posted by viper357 (Post 2374722)
Does anybody know how to make this mod recognise users on Tapatalk?

Can anyone help with this?

viper357 11-24-2013 08:55 AM

Anyone know how to make this mod recognise Tapatalk users?

ozzy47 11-24-2013 09:03 AM

Quote:

Originally Posted by viper357 (Post 2463314)
Anyone know how to make this mod recognise Tapatalk users?


You asked this in post #245 and were answered in post #246

viper357 11-24-2013 11:11 AM

Quote:

Originally Posted by ozzy47 (Post 2463315)
You asked this in post #245 and were answered in post #246

That wasn't an answer, that was simply Paul stating he doesn't account for 3rd party addons. He didn't say it couldn't be done, he just said he won't do it. I'm still asking in the hopes that someone else has been able to modify this to recognise Tapatalk.

DEGE 11-24-2013 01:21 PM

As both a Tapatalk user and a "Who has read a Thread" user, I must say I've requested Tapatalk team if there was any plugin system... any hooks on their product.

Unfortunately they said they don't have plugins yet (perhaps we can convince them to use them). So I've found myself too without solution.

What I did is to modify Tapatalk code. I've "hardcoded" the plugin into their scripts so to say...

I've found out that the file preparing to send the data for the "thread read" is under ...functions/get_thread.php

I've also found out that adding the code before:
PHP Code:

if(!empty($breadcrumbs))
        
$return_data['breadcrumb'] = new xmlrpcval($breadcrumbs'array'); 

(approximately line 1463 in notepad++ )
it works...

And the code I've added is the same that is inside the plugin for 3.8 forums
PHP Code:

        // #################### DEGE ADDS
    
if ($vbulletin->userinfo['userid'] AND $vbulletin->options['wrt'])
{
    
$time TIMENOW;
    
$ipaddress IPADDRESS;
    
$threadid $threadinfo[threadid];
    
$userid $vbulletin->userinfo['userid'];
    
$db->query_write("
        REPLACE INTO " 
TABLE_PREFIX "whoread
        (userid, threadid, dateline, ipaddress)
        VALUES
        (
$userid$threadid$time, '$ipaddress')
    "
);
}  
    
// #################### DEGE ADDS 


As always, do a backup of the file and test it before going online...

Hope this helps.

viper357 11-24-2013 04:59 PM

Thank you Dege, very helpful.:up::up::up:

FirstDz 11-24-2013 08:15 PM

Thank you Paul

Asmod 12-06-2013 07:55 PM

any clue how to make it work for 4.2.2 ?

Max Taxable 12-06-2013 08:01 PM

Quote:

Originally Posted by Asmod (Post 2466390)
any clue how to make it work for 4.2.2 ?

https://vborg.vbsupport.ru/showthread.php?t=230736

Quote:

This modification is not required for vBulletin 4.2 onwards

CrashfAB 03-28-2014 03:16 PM

I need to remove this mod due to the size of the table thats created. If I remove the mod will it remove the table?

CrashfAB 03-28-2014 03:40 PM

Or can I empty the contents of the whoread table without causing any issues with this mod?

Paul M 03-28-2014 09:13 PM

You have read the first post ?

Specifically this ;

Quote:

8. Option to set whoread data records to be cleaned out after xxx days.

CrashfAB 03-28-2014 09:57 PM

Quote:

Originally Posted by Paul M (Post 2490124)
You have read the first post ?

Specifically this ;

Sorry paul but you will have to excuse my ignorance concerning databases. Up until 3 days ago it was taken care of by my partner so I never had to worry about--so I am doing a little learning here :cool:

But I would still like to know if I can delete the contents of the table to clear it out now?

Alan_SP 03-28-2014 10:48 PM

Don't do it manually, do it with option Paul mentions. Just set for how long you want to keep data, for example, use 30 to keep record only for last 30 days.

Mod will automatically clean older info from database in its next cron task.

CrashfAB 03-28-2014 11:38 PM

Quote:

Originally Posted by Alan_SP (Post 2490152)
Don't do it manually, do it with option Paul mentions. Just set for how long you want to keep data, for example, use 30 to keep record only for last 30 days.

Mod will automatically clean older info from database in its next cron task.

Any way to run it manually via scheduled task?

Paul M 03-29-2014 04:30 PM

By default I think its set to 180 days (thats from memory, so may be wrong).

Just set it to 30 or something if you want, the cron runs daily.


All times are GMT. The time now is 11:33 PM.

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.01512 seconds
  • Memory Usage 1,806KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)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
  • (40)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