vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Display Unread Posts (https://vborg.vbsupport.ru/showthread.php?t=231060)

Paul M 03-01-2010 09:11 PM

Quote:

Originally Posted by masterross (Post 1994681)
This hack overloading mysqld!

Interesting comment from someone who hasnt even downloaded it. Its wrong as well btw.

SuperGLS 03-02-2010 10:32 PM

Paul, you are my hero! One of the last things I've been missing from vB3. I will send you money now.

Working great on 4.0.2.

zeroality 03-03-2010 01:08 AM

Just upgraded to 4.0.2 and updated this MOD. Works just fine except now regular users (or others who do not have permissions to view) can see the excluded "staff" forums when pulling up the new posts search.

Type: Posts; Excluded Forums: Champion's Tower, Forum Games, Reports and Infractions, Contributor Forum; New Posts

The account I tested this on does have permission to view Forum Games, but not the others. Minor nitpick but still would like a fix. Thanks. :)

Paul M 03-03-2010 10:52 AM

I cannot do anything about that - its standard vb functionality. If you think it doesnt work properly then you need to log a bug at vb.com.

masterross 03-03-2010 02:48 PM

Quote:

Originally Posted by Paul M (Post 1994755)
Interesting comment from someone who hasnt even downloaded it. Its wrong as well btw.

Really?

So how you can explain this:

w/o hack:

Attachment 113491

2min after enabled:

Attachment 113492

6min after enabled:

Attachment 113493

If remain active for 1 hour load goes to 90-100


Of-course will work on baby boards with small numbers of members online but did you tried on board with 2000 users online ;)

Paul M 03-03-2010 07:04 PM

Quote:

Originally Posted by masterross (Post 1996141)
Really?

Yes, Really.

Quote:

Originally Posted by masterross (Post 1996141)
So how you can explain this:

I dont explain how other peoples servers are configured.

What I do know is how this works, specifically one, fully indexed select. The average vb4 page uses about 15 such queries per page. Your links show that you are already running high loads in the before screen - if adding one more indexed query to a page is having that sort of dramatic effect then your server is already on the edge of collapse.

I would suggest that you make sure that your server actually created the dateline index (which btw, is done on install, and would take a while on 2 million posts).

Quote:

Originally Posted by masterross (Post 1996141)
Of-course will work on baby boards with small numbers of members online but did you tried on board with 2000 users online ;)

Dont patronise me just because you have a busy forum. Im well aware of whats involved in busy set-ups. I have had this working on high traffic forums, and indeed, added the cutoff feature at the request of one to help control high load queries that would have involved counting 1,000's of posts. You would also do well to remember that this only works on logged in members, not users, from observing your forum tonight, I would guess its more like 800 members online, not 2000 (and I cant tell what you cookie timeout is either).

zeroality 03-04-2010 05:15 AM

Quote:

Originally Posted by Paul M (Post 1995946)
I cannot do anything about that - its standard vb functionality. If you think it doesnt work properly then you need to log a bug at vb.com.

Ah, I see. Well thank you for your great hack and I'm sorry others are being jerks. :)

Will go report as bug right now.

malas2007 03-05-2010 12:21 PM

Installed

www.bonsaifreinds.com/vb

CoZmicShReddeR 03-05-2010 02:30 PM

Wow really nice feature!

SuperGLS 03-05-2010 09:10 PM

After upgrading to 4.0.2 my forum was using database thread marking and this mod was working great. However I didn't want database thread marking (for many other reasons and had never had the site set to this previous of the upgrade... why the upgrade changed it I don't know) so now this mod isn't quite as exciting as it was.

Paul, do you ever see this working with the Inactivity/Cookie Based option rather than the database thread marking option?

Paul M 03-05-2010 10:23 PM

Quote:

Originally Posted by SuperGLS (Post 1998046)
Paul, do you ever see this working with the Inactivity/Cookie Based option rather than the database thread marking option?

Nope.

I cant imagine why anyone would want to use that, its hopeless.

SuperGLS 03-06-2010 12:54 PM

You mean the cookie based marking system? All of the users (myself included) prefer this way, which might be because we've been using it for so long. Oh well.

Paul M 03-06-2010 02:04 PM

Quote:

Originally Posted by SuperGLS (Post 1998445)
You mean the cookie based marking system?

Yes, I did.


Quote:

Originally Posted by SuperGLS (Post 1998445)
All of the users (myself included) prefer this way

Then Im afraid you cannot use the unread part of this mod.

War.Frog 03-06-2010 03:08 PM

How on earth is cookie based marking preferable? It's almost never correct!

SuperGLS 03-06-2010 08:44 PM

Perhaps it was a problem with some other setting/variable/installation but on my site we were getting 5 days of posts coming up as What's New/New Posts even when members had already looked at them. The inactivity/cookie based system is easy as it shows only what has been posted since your last visit. Seems simple to me. I don't know, I think it's strange that people would want it the other way, hah.

No problem Paul. I thought this would be my replacement for the "Welcome box" module that we used to have on vB3 with vBadvanced. That's ok though.

Tauhid 03-15-2010 03:13 PM

Hey Paul,

Back in vb 3.8, this hack used to show

"Unread posts since your last visit" on a different background, with a text saying these are posts unread from your last visit. Beforre in vb 3.8, there was a division between posts unread in the last 24 hours and another division for all other random unread posts.

While now, there is no text showing on the top before each unread thread listings. All the unread posts just shows up. I have all the recommended options turned on.

Automatic Database thread marking
Use Last Visit Date

Paul M 03-15-2010 07:27 PM

That was a feature of vbulletin, not this mod. It does not exist in vb4.

sticky 03-26-2010 09:00 AM

This is one of my favorite mods but a new style I installed seemed to eliminate it showing in the upper right corner.

I'm not sure how to make this work with my new style, it works on all the others, suggestions?

Paul M 03-26-2010 11:41 AM

Have you read the bold brown note in the main post ?

sticky 03-26-2010 01:38 PM

Quote:

Originally Posted by Paul M (Post 2010498)
Have you read the bold brown note in the main post ?

Yep, and I don't understand it.

So, do I reinstall this thing or what? I'm running 4.0.5

I never made a template edit, do I need to revert? I don't know.

Paul M 03-26-2010 06:03 PM

I would guess this is the relevant bit for you ;

Quote:

You must also make sure the template hook (header_userinfo) is present.
You new style is probably missing it.

sticky 03-26-2010 07:03 PM

Quote:

Originally Posted by Paul M (Post 2010686)
I would guess this is the relevant bit for you ;



You new style is probably missing it.

Ah I see!

So, I apologize if this sounds stupid, but how do I add the template hook?

Paul M 03-26-2010 09:33 PM

Its a line of code in the template that looks like this ;

{vb:raw template_hook.header_userinfo}

You need to compare the default header with your custom style header to find where to insert it.

sticky 03-26-2010 11:02 PM

Quote:

Originally Posted by Paul M (Post 2010801)
Its a line of code in the template that looks like this ;

{vb:raw template_hook.header_userinfo}

You need to compare the default header with your custom style header to find where to insert it.

Managed to do it, thanks.

The full code would have been much more helpful ;)

Paul M 03-27-2010 09:28 AM

How could I know the code in your style ?

sticky 03-27-2010 10:02 AM

Quote:

Originally Posted by Paul M (Post 2011004)
How could I know the code in your style ?

I guess you couldn't?

Regardless, thanks :) Oh, and how do you add a space in the template? The style added a search box directly underneath where your mod shows and everything works perfect except for guests who have overlap with the search box and remember me box.

Paul M 03-27-2010 12:30 PM

Not exactly sure what you mean as guests dont have unread posts, but everything is build from phrases, so edit them as you need.

robbiefritz 04-05-2010 01:56 PM

Please see image below. If I only have an unread post, everything shows fine. When I get an unread reputation as well as a post I get this garbled mess. Any ideas? Thanks.

https://vborg.vbsupport.ru/external/2010/04/71.jpg

If it is only 1 unread post, it seems ok. See image.

https://vborg.vbsupport.ru/external/2010/04/72.jpg

Paul M 04-05-2010 09:42 PM

You have old customised phrases in there somewhere, you need to remove them.

youngaussie 04-07-2010 10:16 PM

thanx heaps :D

robbiefritz 04-08-2010 05:03 PM

Paul M, it appears that folks using vbadvanced CMPS are experiencing a problem with their welcome block. See image below.

https://vborg.vbsupport.ru/external/2010/04/74.png
and
https://vborg.vbsupport.ru/external/2010/04/54.jpg

This is the error that occurs once your hack is installed. The folks at vbadvanced are aware of this also and as I asked there, who needs to do what to rectify this? Thanks.

Paul M 04-08-2010 07:39 PM

The block is using and old vb phrase (last_visited_x_at_y) - this phrase is no longer used by vb4, and will get removed at some point. They need to use their own custom phrase.

robbiefritz 04-09-2010 11:57 AM

Quote:

Originally Posted by Paul M (Post 2018051)
The block is using and old vb phrase (last_visited_x_at_y) - this phrase is no longer used by vb4, and will get removed at some point. They need to use their own custom phrase.

Thanks Paul

EcoCav 04-11-2010 07:03 PM

I installed 4.0.3 last night, and now the "unread posts" is forced to the side of the page.

How can I fix this?

https://vborg.vbsupport.ru/external/2010/04/59.png

Paul M 04-11-2010 08:44 PM

No idea. Have you customised some header css ?

EcoCav 04-11-2010 11:11 PM

Ive done nothing at all to the forum. Stock style, no template edits of any kind.

I'll try re installing it.

furst 04-11-2010 11:29 PM

My users have their reputation displayed in their profiles, is there a way that when the notifications show a rep received, when you click it can it redirect to show the rep in the profile instead of showing the thread in user settings? is this possible?

I have a reputation tab in profile.

EcoCav 04-11-2010 11:37 PM

Installed Display Unread Posts and Reputation Comments v4.0.6, and the alignment issue is fixed.

Paul M 04-12-2010 02:14 PM

Quote:

Originally Posted by furst (Post 2019687)
My users have their reputation displayed in their profiles, is there a way that when the notifications show a rep received, when you click it can it redirect to show the rep in the profile instead of showing the thread in user settings? is this possible?

I have a reputation tab in profile.

Not really, no. Default vB does not have a reputation tab in the profile, you only have that because you have another mod (of mine ?) installed.

furst 04-12-2010 11:09 PM

yeah its a mod installed that shows rep in profile.


All times are GMT. The time now is 10:51 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.01842 seconds
  • Memory Usage 1,829KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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