vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Recently Viewed Threads 1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=192561)

Slaxi 10-03-2008 03:12 PM

thanks, works fine with 3.7.3

binevi 10-03-2008 05:14 PM

what about module? can you make a module with this features ?

thnks great hack

Allan 10-03-2008 05:24 PM

yop, good idea ;)

Gio~Logist 10-03-2008 07:01 PM

Quote:

Originally Posted by binevi (Post 1636605)
what about module? can you make a module with this features ?


thnks great hack

Yea, that's definitely possible. I'll see if i have time to make an add-on for this.

TimberFloorAu 10-03-2008 07:10 PM

Can you create a mod, that allows users to view posts that other people have quoted them in? Who Quoted Me kind of thing?

We crudely use:

Code:

http://www.mywebsite.com/forum/search.php?do=process&query=TimberFloorAu&searchdate=lastvisit&showposts=1
Doesnt seem that accurate...

Kkimber 10-03-2008 07:23 PM

installed and works, after clicking two threads when installed.
iis 6 + vb 3.7.3

R-D 10-03-2008 09:25 PM

There seems to be a couple of bugs.

Firstly, threads in the list are arranged by thread ID, not by most recently viewed.

Then, when the database is updated, it appears to only replace the last value. Meaning the first 4 threads you viewed are never removed from the list and the last value (the most recent thread) is constantly updated.



Here's a fix for the second issue. In the showthread_complete plugin, change:
PHP Code:

$recent_threadviews array_slice($recent_threadviews04); 

to:
PHP Code:

$recent_threadviews array_slice($recent_threadviews14); 

That makes sure the first value in the recent_threadviews array is removed.

Gio~Logist 10-04-2008 06:26 AM

Updated the .xml with fixes for both :up:

CristianoDiaz 10-04-2008 06:49 AM

I have it installed, but it is only displaying one recent thread no matter how many I have clicked through. It just keeps replacing the first one. Version 3.7.3 of VB.

R-D 10-04-2008 07:49 AM

There was an unintended side effect in my last fix. :o

Although it corrected the problem if you have 5 threads listed, it also removed a thread from the list when you have less than 5 listed. Here's a better tested quick fix for the showthread_complete plugin.

Replace:
PHP Code:

if(!in_array($threadinfo['threadid'], $recent_threadviews)){
    
$recent_threadviews array_slice($recent_threadviews14); 

With:
PHP Code:

$count_recent_threadviews count($recent_threadviews);
if(!
in_array($threadinfo['threadid'], $recent_threadviews)){

if (
$count_recent_threadviews 4){
    
$recent_threadviews array_slice($recent_threadviews14);




All times are GMT. The time now is 01:52 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.02300 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)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