vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   View Posts Since Last Visit Only (https://vborg.vbsupport.ru/showthread.php?t=33665)

Parker Clack 12-30-2001 10:00 PM

This hack was written at the request of my members so that they can view only those posts that have been made to the forum since their last visit. They can either select this from the Show Topics Since pulldown in the forumdisplay or set this as their preferred viewing option in the user control panel.

Again, my thanks go out to Bira for helping me with the code and it wouldn't have been possible without her help.

Parker

TheComputerGuy 12-31-2001 11:55 AM

Nice Forum and Hack!

Parker Clack 12-31-2001 04:31 PM

TheComputerGuy:

Thanks for kudos. Is it working ok for your site?

Pakrer

Quote:

Originally posted by TheComputerGuy
Nice Forum and Hack!

TheComputerGuy 12-31-2001 05:53 PM

Its working on my test board, I am not installing any new hacks for public display until the design is finished ;)

Lionel 12-31-2001 06:30 PM

between this hack and view new posts?

Parker Clack 12-31-2001 06:40 PM

Lionel:

View new posts allows you to view all the new posts in every forum on one page. This allows you to set it to allow you to just see the new posts in a particular forum area that you are interested in only instead of seeing them all on one page.

So instead of setting your Default Thread Views to one or more days you can set this to just show you new posts since you last logged on.

Parker

Lionel 12-31-2001 06:42 PM

I am going to try it

Parker Clack 12-31-2001 07:45 PM

Great.

Let me know how it works for you.

Parker

FWC 12-31-2001 09:11 PM

I installed this, Parker. I'm having a small problem. It works fine when I use the sort option at the bottom of the threadlist. But, when I select it in my user CP it's not working right. When I go to a forum it shows all the posts. The right value is in the sort box at the bottom, but it doesn't drop the old posts until I press go. I've installed it twice. Maybe I'm missing something.

Parker Clack 12-31-2001 10:01 PM

FWC:

I am using version 2.2.0 of vBulletin instead of 2.2.1 and it has changed a little in the forumdisplay.php file.

In forumdisplay.php (your backed up version) look for

Code:

$datecut="";
$stickyids="";
$stickycount=0;
if ($daysprune!=1000) {
  $checkdate = time() - ($daysprune*86400);
  $datecut='AND lastpost >= '.$checkdate;
}

and change this to:

Code:

$datecut="";
$stickyids="";
$stickycount=0;
if ($daysprune!=1000) {
  if ($daysprune=='-2' or $bbuserinfo[daysprune]==-2) {
  $datecut='AND lastpost >= '.$bbuserinfo[lastvisit];       
  } else {
  $checkdate = time() - ($daysprune*86400);
  $datecut='AND lastpost >= '.$checkdate;
  }
}

and see if that fixes your it for you.

Parker


All times are GMT. The time now is 01:42 AM.

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.00967 seconds
  • Memory Usage 1,728KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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