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

Lionel 12-31-2001 10:27 PM

Parker, I look at the template forumdisplay and at the original, but I cannot find <option value="1" $daysprunesel[1]>Show Topics From last day</option>

FWC 12-31-2001 10:30 PM

Quote:

Originally posted by Parker Clack
and see if that fixes your it for you.

Parker

I already had that. I'll look at it some more tomorrow and see if I can figure out what is wrong.

Parker Clack 01-01-2002 01:32 AM

Lionel:

Sorry about that. I forgot that that was something that I added to my board. Just ignore that part. I have updated the file download to take that part out. Thanks for heads up.

Parker

Parker Clack 01-01-2002 01:38 AM

FWC:

Let me know what you find out.

Parker

Gutspiller 01-29-2002 05:52 AM

I started this hack, but I have 2.0.3 and in forumdisplay it says search for

unset($daysprunesel);
$daysprunesel[$daysprune]='selected';

and replace it with

unset($daysprunesel);
if ($bbuserinfo['daysprune']==-2) {
$daysprunesel[17]='selected';
} else {
$daysprunesel[$daysprune]='selected';
}

but I only have

// complete form fields on page
$daysprunesel[$daysprune]='selected';

// look at sorting options:
if ($sortorder!='asc') {
$sqlsortorder='DESC';
$order['desc']='selected';
} else {
$sqlsortorder='';
$order['asc']='selected';
}

from line 320 - 330.

Can somebody help me or let me know what I do on this step. (although there could be others that I need help on to.)

Anybody willing to go through this hack and set it up for 2.0.3 too? :(

Any help would be appreciated.

Thanks.

Lesane 01-29-2002 07:20 AM

nice hack, gonna install this one later :up:

heidit 02-06-2002 04:29 PM

Question: Does this hack show all the forums on the front page, or only those that there have been new threads or posts in?

If not, is there a hack that does that?

Beams 04-06-2002 02:11 PM

Members are saying that there is so many posts since there last visits but when checking there aint as many as it says. I guess this is because we make post in the mods lounge and they cant see it. Is there a option so that the posts in the mods doesn't display to the members??

Beams :D

Parker Clack 04-06-2002 08:41 PM

heidit:

No this won't do that. That is a different hack altogether.

Beams:

I sure that something could be writtent that would total up the posts made in the private areas and not include them in the over all total of the board but I am not sure how to do this.

Parker

Gutspiller 07-04-2003 05:15 PM

In some forums after installing this hack it still shows all threads in the forum. Others it doesn't show any. And in some forums where I know there have been posts within the last 3 or so days it doesn't show any threads, which it shouldn't since I had seen them, but it gives this: There have been no posts in the last 75 days in this forum.

I don't want people to use this and then think the site is dead. For the message to say 75 days is incorrect, because the forum I copied ans pasted that from I made a posted yesterday. What gives?


All times are GMT. The time now is 05:02 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.01091 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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