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)

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:


All times are GMT. The time now is 04:20 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.01483 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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