PDA

View Full Version : End-User Options - Recently Viewed Threads 1.0.0


Gio~Logist
10-02-2008, 10:00 PM
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
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:

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:
$recent_threadviews = array_slice($recent_threadviews, 0, 4);
to:
$recent_threadviews = array_slice($recent_threadviews, 1, 4);

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:
if(!in_array($threadinfo['threadid'], $recent_threadviews)){

$recent_threadviews = array_slice($recent_threadviews, 1, 4);
With:
$count_recent_threadviews = count($recent_threadviews);
if(!in_array($threadinfo['threadid'], $recent_threadviews)){

if ($count_recent_threadviews > 4){
$recent_threadviews = array_slice($recent_threadviews, 1, 4);
}

CristianoDiaz
10-04-2008, 11:14 AM
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
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
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
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
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

$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:

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($lastposti nfo['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.

:)