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)

Gio~Logist 10-02-2008 10:00 PM

Recently Viewed Threads 1.0.0
 
Brought To You By
ModernvB - Vbulletin Solutions & Services
http://www.modernvb.com

Recently Viewed Threads 1.0.0
Allow users to browse through threads in which they've recently viewed. This will be a great hit with your members!

With this modification, members will easily be able to navigate through topics in which they've recently seen, no matter what page they're on! This will help keep your members on track and increase their participation in your community.


Instructions:
[/B]
  • Upload the product
  • Enjoy ;)

Spank 10-03-2008 04:45 AM

That's a pretty sweet idea, I'll install this later on, thanks!

birdie 10-03-2008 06:48 AM

Thanks; installed on 2 forums; works fine on one (3.7) and in case someone asks, it does not work on 3.6.11

carphead 10-03-2008 07:33 AM

How do you add it to a non-standard style?

FreshFroot 10-03-2008 07:41 AM

nice one mate! :D

M-Tuning 10-03-2008 07:46 AM

Doesn't work in my board.

KURTZ 10-03-2008 09:03 AM

queries?

NAZIA 10-03-2008 09:38 AM

install it latter...

apiasto 10-03-2008 09:46 AM

sound nice,will try later

boxhamster 10-03-2008 10:38 AM

installed & works (after clicking two threads when installed :)).

thanks!
Markus

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);



CristianoDiaz 10-04-2008 11:14 AM

Quote:

Originally Posted by R-D (Post 1636996)
There was an unintended side effect in my last fix. :o

Thank you, that solved the problem :)

Gio~Logist 10-04-2008 11:06 PM

Quote:

Originally Posted by CristianoDiaz (Post 1637083)
Thank you, that solved the problem :)

*pounds his head on the table for not noticing*

For those with this problem, just make the change above or uninstall/reinstall. :up:

hrk 10-05-2008 07:35 AM

Doesn't work for me.

where shld the field display?
u didn't mention in clearly.

if under the search bar, then its not there.

Hornstar 10-05-2008 08:00 AM

Thanks for sharing.

Gio~Logist 10-06-2008 09:53 PM

Quote:

Originally Posted by hrk (Post 1637645)
Doesn't work for me.

where shld the field display?
u didn't mention in clearly.

if under the search bar, then its not there.

Should be under the search bar. Have you tried viewing a thread first? Also, what version are you running and can i have a link to your website?

Gio~Logist 10-06-2008 09:54 PM

Quote:

Originally Posted by hornstar1337 (Post 1637661)
Thanks for sharing.

:up:

lodac 10-06-2008 11:30 PM

Great Idea, It would be awesome to do this within a page itself. ex new posts page etc.

hrk 10-07-2008 12:45 AM

Quote:

Originally Posted by Gio~Logist (Post 1638922)
Should be under the search bar. Have you tried viewing a thread first? Also, what version are you running and can i have a link to your website?

its working now. thanks:)

Allan 11-01-2008 05:10 PM

French language ;)

Translator: Lo' (Team vBr)

GreigScott 11-01-2008 10:15 PM

O i love it!

*installed.

Gio~Logist 07-15-2009 01:38 AM

Tested and working on 3.8 :up:

inciarco 10-19-2009 03:48 AM

A Small but Important Bug:

When the Thread's Title is Too Long the Search Menu With Goes Too Long Too, even Occupying the Screen Width. :confused:

How can the Thread's Names be Limited to xxx Characters? :confused:

My Best Regards.

:)

inciarco 10-19-2009 04:22 AM

I Experienced a Little with the Code of One of the Plugins and I Found the Way; perhaps you can Include it in the Next Update of your Mod with an Option in the Control Panel for Admins to Set it:

I added the Following Code on the Plugin "Recently Viewed Threads - Browse Recently Viewed", by

Code:

$recent_thread['title'] = substr($recent_thread['title'], 0, 30);

if (strlen($recent_thread['title'])>=30)
{
$recent_thread['title'] .= '...';
}

You just have to Change the 30 to the Number of Characters You'd Like the Text to be Limited to.

so that Plugin would be:

Code:

if($vbulletin->options['recent_threadviews_enabled'] AND $vbulletin->userinfo['userid'] AND !empty($vbulletin->userinfo['recent_threadviews'])){

        $get_recent_threadviews = $vbulletin->db->query_read("SELECT threadid, title
                                                                                                                FROM " . TABLE_PREFIX . "thread
                                                                                                                WHERE threadid IN (" . $vbulletin->userinfo['recent_threadviews'] . ")
                                                                                                                ORDER BY FIELD(threadid," . $vbulletin->userinfo['recent_threadviews'] . ") DESC
                                                                                                        ");
               
       
        while($recent_thread = $vbulletin->db->fetch_array($get_recent_threadviews)){
       


$recent_thread['title'] = substr($recent_thread['title'], 0, 30);

if (strlen($recent_thread['title'])>=30)
{
$recent_thread['title'] .= '...';
}



                //$recent_thread['title'] = fetch_trimmed_title(fetch_censored_text($lastpostinfo['lastthread']));
                eval('$recently_viewed_threads .= "' . fetch_template('recent_threadviews_navbit') . '";');

        }
       
        eval('$template_hook[navbar_search_menu] .= "' . fetch_template('recent_threadviews_nav') . '";');       
       
}

And that's it.

My Best Regards.

:)


All times are GMT. The time now is 05:49 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.01287 seconds
  • Memory Usage 1,793KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete