vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Recently Viewed Threads (https://vborg.vbsupport.ru/showthread.php?t=107739)

Logikos 02-10-2006 10:00 PM

Recently Viewed Threads
 
Recently Viewed Threads


What this does
This will show each user a list of Recently Viewed Threads. The idea came from www.SitePoint.com. I found myself using it alot when I came back to the site to check up on some threads I forgot about, or just couldn't find. AJAX enabled - (quick thread title edit and open/close works!)

This was coded to be placed on the forumhome, though you can edit to your needs if you know what your doing.

How this plugin works
The concept of this plugin is simple. When a user clicks on a thread, it will log the user and thread info in the database. The thread will then be marked as viewed using a conditional timestamp comparison. In lamens terms this means that when a user views a thread, it will log the time the thread was viewed. It will not relog the thread information if the user views the same thread within a certain amount of wait time. (Admin CP setting). Default is 5 minutes.

Descriptive Example
LiveWire clicks on a thread titled 'New Hack Posted'. 1 small query is performed to see if I have recently viewed this thread yet.

If I have viewed this thread already, it will check and see when I viewed it. If it was longer then 5 minutes ago, then it will add the new information using 1 more query.

If I have never viewed this thread before, then it will insert it into the database using 1 query.

To do list...
  • Time to install: 2 minutes or less
  • Queries to run: 1 (Installer Controlled)
  • File Mods: 0
  • Templates to edit: 1 (forumhome)
  • Templates to add: 1 (Installer Controlled 'forumhome_recentbit')
  • New Phrases: 0
  • New Plugins: 2
Click It For Support!
Install This Product

Important Note
This product of mine is marked as beta as I'm still working on some code for future releases. vBCron to clean up Database will be released soon as an addon in the below post.

Product History
Sun, Feb 12 2006 - Forumhome Recent Table is can be collapsed
Sun, Feb 12 2006 - Added plugins (The two plugins didn't export for some reason)
Sat, Feb 11 2006 - Beta Released


Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here and double check that you have clicked the Install Button.

Please post bugs and errors here. Hope you like, feedback welcomed! :)

Logikos 02-11-2006 08:45 PM

-Post Reserved-

-=Sniper=- 02-11-2006 09:32 PM

nice, will be using it for sure :)

FleaBag 02-11-2006 10:23 PM

The recently viewed threads don't show up but the shell of the template does. Nothing else seems to work incorrectly.

Logikos 02-12-2006 04:40 AM

Recently Viewed Threads
Version 1.1 Beta

There was a strange bug on my end when exporting the product. It didn't add the plugins to the product, anyway I fixed the little buggy for everyone.

Upgrade
For those of you who installed the 1.0 Beta version and wish to upgrade to v1.1 Beta, please import product-recentlyviewed.xml via AdminCP -> Plugin System -> Manage Products And make sure Allow Overwrite is set to YES

.Tim 02-12-2006 05:36 AM

Quote:

Originally Posted by FleaBag
The recently viewed threads don't show up but the shell of the template does. Nothing else seems to work incorrectly.

Same here. No threads show up for me. :(

Logikos 02-12-2006 06:21 AM

Read the post directly above you.

.Tim 02-12-2006 07:24 AM

I know, I've done that.

.Tim 02-12-2006 07:27 AM

Hmm, I re-uploaded it and it worked this time. Odd.

The Realist 02-12-2006 08:06 AM

Dont work for me its blank.

Installed the new version from scratch as well.


All times are GMT. The time now is 04:08 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.01683 seconds
  • Memory Usage 1,737KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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