vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   New Posts & Threads Since Last visit (https://vborg.vbsupport.ru/showthread.php?t=82774)

Zachery 06-09-2005 10:00 PM

New Posts & Threads Since Last visit
 
Um. I think this one is fairly self explaintiory by now.

It gets a count of the newest posts and threads since their last visit.


Optionally you should add indexes on your post and thread tables for the dateline columns
[sql]
ALTER TABLE `post` ADD INDEX ( `dateline` );
ALTER TABLE `thread` ADD INDEX ( `dateline` );
[/sql]

Chris M 06-10-2005 12:36 AM

Installed and working :)

Satan

Link14716 06-10-2005 12:41 AM

Quote:

Originally Posted by hellsatan
Installed and working :)

Satan

Are you installing everything, hellsatan? :p

Chris M 06-10-2005 12:43 AM

Quote:

Originally Posted by Link14716
Are you installing everything, hellsatan? :p

Of course ;)

Can't expect to understand the plugin system unless you install and test everything now can ya ;)

Satan

Brent H 06-10-2005 01:09 AM

Installed and working :D

ogden2k 06-10-2005 06:05 PM

Just a question, does this work with any type of Read system option? Or just cookie based?

jpt62089 06-10-2005 06:20 PM

*Installed :)

Gary King 06-10-2005 07:04 PM

Installed, but I don't think that is a good location for the text. It should be in the 'Hello, $username' box. IMO.

Logikos 06-10-2005 08:10 PM

Is the same thing as Gary Kings hack?

Reverend 06-10-2005 08:29 PM

Installed plugin but nothing is displayed for me.

ogden2k 06-10-2005 08:30 PM

Ah, I see how this works. It goes by cookie based mark read system. Not bad, but I'd like to see it work with the other read systems too.

Link14716 06-10-2005 08:37 PM

Quote:

Originally Posted by ogden2k
Ah, I see how this works. It goes by cookie based mark read system. Not bad, but I'd like to see it work with the other read systems too.

It shows how many have been made since last visit: the name of the hack itself shows that it doesn't matter whether it is read or not.

ogden2k 06-10-2005 08:55 PM

Right, but if you're using the new mark read system and don't view the threads from your last visit, those posts should still count as new.

Reverend 06-10-2005 08:56 PM

Quote:

Originally Posted by Reverend
Installed plugin but nothing is displayed for me.

My mistake,i forgot to add the navbar edit :o

BTW, i removed the separate (get new posts) link as there is already a link under the posts and threads counts,and i also placed it under the pm stats (same position as Gary's 3.0 hack). Just my own preference.

Thanks for the hack though Zach.

ogden2k 06-10-2005 09:06 PM

Any way to get this to work wherever you are in the forum? I have this beside new posts (just new posts, not threads, so it shows a number and no text).

Reverend 06-10-2005 09:16 PM

Quote:

Originally Posted by ogden2k
Any way to get this to work wherever you are in the forum? I have this beside new posts (just new posts, not threads, so it shows a number and no text).

Just thinking the same thing ogden. Would be useful to have it on more than just the forumhome.

zetetic 06-10-2005 10:51 PM

Quote:

Originally Posted by Reverend
Just thinking the same thing ogden. Would be useful to have it on more than just the forumhome.

Move the plugin to global_start and remove this from the plug-in code:
PHP Code:

AND THIS_SCRIPT == 'index' 

Then it will work on every page.

Reverend 06-11-2005 06:53 PM

Quote:

Originally Posted by tmhall
Move the plugin to global_start and remove this from the plug-in code:
PHP Code:

AND THIS_SCRIPT == 'index' 

Then it will work on every page.

Works a treat. Thanks.

zetetic 06-11-2005 08:01 PM

Quote:

Originally Posted by Reverend
Works a treat. Thanks.

Glad to help. :)

Zachery 06-12-2005 04:14 AM

Quote:

Originally Posted by tmhall
Glad to help. :)

Unless someone else already has done it I will see about updating and adding a number of unread posts to the display :)

burnist 06-12-2005 08:48 AM

Installed, seems to be working fine ;)

[high]* burnist clicks install[/high]

ogden2k 06-12-2005 08:39 PM

Since putting this in global start, if there are no new threads, instead of saying 0 it shows nothing, is this normal?

Reverend 06-12-2005 09:14 PM

Quote:

Originally Posted by ogden2k
Since putting this in global start, if there are no new threads, instead of saying 0 it shows nothing, is this normal?

Mine is ok and shows 0.

However one strange thing did happen earlier,it showed -1 new threads.
No threads were deleted,so don't know why it was a minus count.:confused:

Cheertobi 06-13-2005 01:27 PM

Hi,

does it shows only the number of new posts in forums and threads the user has access to or does it show the number of ALL news posts posted in ALL forums since the last visit?!

I do not want my users to ask me, why they only can see 2 new postings, but the mod shows them that there are 10 new postings ;)

Regrads,

Tobi

ogden2k 06-13-2005 02:32 PM

Quote:

Originally Posted by Reverend
Mine is ok and shows 0.

However one strange thing did happen earlier,it showed -1 new threads.
No threads were deleted,so don't know why it was a minus count.:confused:

Please show me your XML file to compare to mine, thanks!

Reverend 06-13-2005 07:57 PM

Quote:

Originally Posted by ogden2k
Please show me your XML file to compare to mine, thanks!

Is it ok to post the code here ?

Reverend 06-13-2005 08:31 PM

Here's a screenie to show the " -1 "

Zachery 06-13-2005 11:14 PM

Quote:

Originally Posted by Reverend
Here's a screenie to show the " -1 "

Can't account for that, I've not had that problem on my boards yet....

Reverend 06-14-2005 05:58 PM

Quote:

Originally Posted by Zachery
Can't account for that, I've not had that problem on my boards yet....

It just showed " -4 " :surprised:

Seems as though the thread total decreases each time i view a thread and then go back to it in the same session.

I think this only started when i moved the plugin to global_start and removed some of the code as suggested earlier.

Zachery 06-14-2005 07:06 PM

Quote:

Originally Posted by Reverend
It just showed " -4 " :surprised:

Seems as though the thread total decreases each time i view a thread and then go back to it in the same session.

I think this only started when i moved the plugin to global_start and removed some of the code as suggested earlier.

Then I'd suggest using my original code and not running that somewhat intensive query on every page view.

Reverend 06-14-2005 07:23 PM

Quote:

Originally Posted by Zachery
Then I'd suggest using my original code and not running that somewhat intensive query on every page view.

Yep,fair point Zach,and i have now moved it back to forumhome_start. ;)

ogden2k 06-17-2005 03:45 PM

Sigh, let's hope vB devs come out with a workable solution.

Zachery 06-17-2005 09:30 PM

Quote:

Originally Posted by ogden2k
Sigh, let's hope vB devs come out with a workable solution.

Why would the vB devs come out with somthing? Its always been rejected due to possible server load...

ogden2k 06-20-2005 08:34 PM

True, but it could be an option to turn on / off. On 3.0.x I have had this working in the navbar on every page an have not had any performance issues with ~20 members online.

------
edit:
After playing with this a little more, it works great when you are using the cookie mark read system, but if you are using the Database (automatic forum marking) system then that's where the problem comes in.

Lets say user 1 posts a new thread, user 2 logs in and doesn't read it, the new posts option shows as new like it should, user 2 logs out, logs in 2 days later (
Database Read Marking Limit is set to 1 day) and the new posts still reads as one, but when user 2 clicks on New Posts, nothing shows up- But, if you switch back to cookie base mark read system, the thread will show up.

Is there a fix / work around for this?

Zachery 06-20-2005 09:30 PM

Quote:

Originally Posted by ogden2k
True, but it could be an option to turn on / off. On 3.0.x I have had this working in the navbar on every page an have not had any performance issues with ~20 members online.

------
edit:
After playing with this a little more, it works great when you are using the cookie mark read system, but if you are using the Database (automatic forum marking) system then that's where the problem comes in.

Lets say user 1 posts a new thread, user 2 logs in and doesn't read it, the new posts option shows as new like it should, user 2 logs out, logs in 2 days later (
Database Read Marking Limit is set to 1 day) and the new posts still reads as one, but when user 2 clicks on New Posts, nothing shows up- But, if you switch back to cookie base mark read system, the thread will show up.

Is there a fix / work around for this?

You can add &oldmethod=1 and have it use the old getnew function.

ogden2k 06-20-2005 10:26 PM

I just tried that under the Database (automatic forum marking) system, and the forum with the new thread does show as "new" but when I click on New Posts, the thread does not show, since I logged out and logged in w/o reading that thread.

<a href="search.php?$session[sessionurl]do=getnew&amp;oldmethod=1" accesskey="2">

southernlady 06-23-2005 11:53 AM

Has this been updated to beta 2 yet? Liz

Chris M 06-23-2005 12:00 PM

It works with Beta 2 :)

Satan

southernlady 06-23-2005 12:10 PM

Thanks, :) Liz

southernlady 06-23-2005 12:16 PM

There was something I needed to do in the nav bar specifically for beta 2 that screwed up with this on the thread tools.
Quote:

Add the pagenav popup stuff for it in (look for the <!-- PAGENAV POPUP --> comment)
That's what I was told to do.

Can y'all help? Liz


All times are GMT. The time now is 04:52 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.01455 seconds
  • Memory Usage 1,825KB
  • 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_php_printable
  • (19)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
  • (40)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