PDA

View Full Version : Display count of unread posts in welcome box


Paul M
18 Sep 2005, 23:38
This modification is no longer supported.
It will remain available for download and use, but the thread is no longer monitored.

* This hack only works if you use the new database thread marking system, if you don't, then you probably should be. *

With the new marking system I have found a simple count of the new posts since your last visit to be less informative and useful than it used to be - esp as the GetNew function now excludes threads you have read, but includes threads from before your last visit. Therefore I decided to try a new system that counts the actual number of posts that are still considered unread by you, and will show up in a GetNew search.

In fact this hack gives you two options (with a new setting in the vBulletin Options > General Settings). If set to yes, it will only count the unread posts since your last visit, if set to no it will count all posts considered unread. This setting reflects the divider in the GetNew display.

To install this hack simply download the xml file to your pc and then import it into vbulletin as a product - then alter the ACP setting to your preferred option (the default is 'no' (i.e. all unread posts).

Note: This hack injects the result direct into the navbar template during page construction, thus avoiding the need for a template edit. This requires that a certain text combination exists in your template. This will be fine for most boards that use a navbar based on the vB default, but you should bear this in mind if you have a totally custom navbar.



History:

v1.01 : First Release.
v1.02 : Minor changes, no update necessary.

Boofo
19 Sep 2005, 00:59
Nice mod but you might want to remove the echo query out of the xml file or some newbies are really going to be confused. ;)

Paul M
19 Sep 2005, 01:16
Yeah, I suppose so.

Since it was commented out it wouldn't actually do anything, but removed anyway. :)

Boofo
19 Sep 2005, 01:27
Yeah, I suppose so.

Since it was commented out it wouldn't actually do anything, but removed anyway. :)

Just trying to save you tons of "why does it run 2 queries that are the same" questions you were bound to get. ;)

Kirk Y
19 Sep 2005, 01:47
Nice to know you think so highly of us Boofo. Ha ha... great idea.

* acidburn0520 clicks install

Boofo
19 Sep 2005, 03:33
Nice to know you think so highly of us Boofo. Ha ha... great idea.

* acidburn0520 clicks install

I was hoping I didn't have to classify you as "newbie", but if you insist. ;)

geoff4787
19 Sep 2005, 05:32
Where do I upload "products"? I have no product manager in my admin panel and I am running the latest version of VB.

Boofo
19 Sep 2005, 07:37
Before anyone jumps in here, I have talked to this gentlemen in another thread and explained the differences between 3.0 and 3.5. 'Nuff said. ;)

GoNz00
19 Sep 2005, 08:40
was hoping this worked on rc2 :( oh well.

geoff4787
19 Sep 2005, 08:40
edit...nevermind.

trancetopia
19 Sep 2005, 10:57
I've installed this product but the "new post" bit has not appeared

Using RC3.

Any ideas why this wont work?

Thanks,
Paul

GrendelKhan{TSU
19 Sep 2005, 11:58
works great thx!
(RC2)

<< clicks install

dookie
19 Sep 2005, 12:34
Works on RC3 *install*

GoNz00
19 Sep 2005, 12:44
i installed on rc2 to but didnt get the new posts count

Paul M
19 Sep 2005, 14:04
trancetopia & GoNz00 (and anyone else).

It will work on any 3.5 version, however, did you read all the smallprint ?

1. Are you using a custom style (specifically the navbar template) ?

2. Are you using the database based thread marking system - if not then it won't work.

trancetopia
19 Sep 2005, 14:09
trancetopia & GoNz00 (and anyone else).

It will work on any 3.5 version, however, did you read all the smallprint ?

1. Are you using a custom style (specifically the navbar template) ?

2. Are you using the database based thread marking system - if not then it won't work.

Hi Paul, thanks for getting back.

Ahhhh, i'm not using the databased thread marking system so there is my problem. Going to switch it over and give it a try.

Many thanks.

trancetopia
19 Sep 2005, 14:12
Sweet it's working now. Great mod.

GoNz00
19 Sep 2005, 14:12
trancetopia & GoNz00 (and anyone else).

It will work on any 3.5 version, however, did you read all the smallprint ?

1. Are you using a custom style (specifically the navbar template) ?

2. Are you using the database based thread marking system - if not then it won't work.

thanks it works now :)

for those wondering where to look

admin cp / vBulletin Options > General Settings > Thread/Forum Read Marking Type > set to database

Paul M
19 Sep 2005, 16:47
I've highlighted the requirement in bold to make it slightly more obvious.

JJR512
19 Sep 2005, 17:06
This hack adds a line under the "Welcome, user" line in the right edge of the navbar. This might not be noticed by some people, especially those already used to using the "New Posts" link (between Calendar and Search). I'm thinking this might be better if, instead of the new line, if the existing "New Posts" link was changed to either say, "X New Posts" (X is the number), or "No New Posts". What do you think?

Paul M
19 Sep 2005, 17:13
I'm happy with the link where it is (as this is how we do it on our forum) so thanks for the idea, but I don't intend to change it. :) You are of course free to alter it as you want if you plan to use it on your own forum, however, I can only support it as supplied. :)

utw-Mephisto
19 Sep 2005, 18:42
Everybody has allways "1 unread post" and when clicking it it say "no unread posts" ;(

Huijting
19 Sep 2005, 19:41
:squareeyed: Got it working now :squareeyed:

But :rolleyes: :-) is there a cmps version.

In my forum it's working great but on my homepage it isn't redirected to my vbul folder.

Thnx in advance,

Rob

Paul M
20 Sep 2005, 00:12
Everybody has allways "1 unread post" and when clicking it it say "no unread posts" ;(Do you have a forum where "Index New Posts in Search Engine" is set to 'no' ? - this would be my guess as 3.5 currently excludes these from a GetNew display.

(I reported this as a bug and it's fixed in the next version - RC4 ?).

Paul M
20 Sep 2005, 00:17
:squareeyed: Got it working now :squareeyed:

But :rolleyes: :-) is there a cmps version.

In my forum it's working great but on my homepage it isn't redirected to my vbul folder.

Thnx in advance,

RobSorry - I don't have or use cmps.

utw-Mephisto
20 Sep 2005, 00:24
Do you have a forum where "Index New Posts in Search Engine" is set to 'no' ? - this would be my guess as 3.5 currently excludes these from a GetNew display.

(I reported this as a bug and it's fixed in the next version - RC4 ?).

I found it .. I have a hidden (Archive) forum .. there was one post in there :)

Boofo
20 Sep 2005, 02:38
Do you have a forum where "Index New Posts in Search Engine" is set to 'no' ? - this would be my guess as 3.5 currently excludes these from a GetNew display.

(I reported this as a bug and it's fixed in the next version - RC4 ?).

How can that be a bug? That would make sense on how it should work.

Paul M
20 Sep 2005, 03:21
How can that be a bug? That would make sense on how it should work.Not really - excluding posts from the search index is to stop people searching for them with a text search - it has nothing to do GetNew (or GetDaily) which are for finding all the new posts since your visit (or today).

Huijting
20 Sep 2005, 08:48
Sorry - I don't have or use cmps.

Fixed it , hope U don't mind , made a minor change :

Changed
<a href='search.php?do=getnew'>
to
<a href='http://www.huijting.nl/vbul/search.php?do=getnew'>

Rob

Paul M
04 Oct 2005, 00:52
Fixed it , hope U don't mind , made a minor change Nope, I don't mind, you can change it as you see fit on your forum. :)

TygerTyger
04 Oct 2005, 12:54
Works very well except it counts my own post as an unread post, and it's quite annoying. By this I mean I make a post and the unread count goes up to 1, I click on unread posts and it goes back to zero. Is there any way to stop this?

Using it on 3.5 Gold.

Paul M
04 Oct 2005, 15:06
Works very well except it counts my own post as an unread post, and it's quite annoying. By this I mean I make a post and the unread count goes up to 1, I click on unread posts and it goes back to zero. Is there any way to stop this?
It's a feature of the way vB and the database marking system works atm - basically when you create a new thread/post it is initially considered to be unread, even by you. Therefore when you are taken back to the thread display, the post is counted as unread, of course it then becomes marked as read (by yourself) so the display will update when you click on unread posts.

thc34
04 Oct 2005, 18:14
thank

TygerTyger
05 Oct 2005, 12:27
It's a feature of the way vB and the database marking system works atm - basically when you create a new thread/post it is initially considered to be unread, even by you. Therefore when you are taken back to the thread display, the post is counted as unread, of course it then becomes marked as read (by yourself) so the display will update when you click on unread posts.

Interesting. I guess there's not really much motivation for the vB guys to fix that as it's only really a problem for mods, so is there any chance of a workaround/fix?

Paul M
05 Oct 2005, 19:02
Interesting. I guess there's not really much motivation for the vB guys to fix that as it's only really a problem for mods, so is there any chance of a workaround/fix?I reported it as a bug and Jelsoft have fixed it for new threads [in the next release] but they won't do it for posts, as there could be other unread posts in between you viewing a thread and replying (I'm still not entirely sure why this would be a problem).

I suppose it would be possible to add some plugin code to mark them as read as part of this hack, and i'll look at it sometime in the future, but it's not a big priority for me atm.

TygerTyger
05 Oct 2005, 19:05
Np, thanks for taking the time. Don't quite understand the distinction either, there could just as easily be a new thread as a new post in that time.

shungo
06 Oct 2005, 09:36
weird, but after installing it on gold version, i dont see options in user CP :o

Paul M
06 Oct 2005, 09:48
Um, there are no options to see in usercp, what are you expecting ?

shungo
07 Oct 2005, 11:53
Sorry, i confused between acp and usercp when reading above :D

shungo
07 Oct 2005, 11:57
BTW, it's no possible to have phrase like these: xxx posts since your last visit (date time) ?

Paul M
07 Oct 2005, 17:25
The date and time are already on the next line, why would you want them twice ?

Rogerl
07 Oct 2005, 17:47
Works fine, but it sent the server load through the roof so I had to remove it

Paul M
07 Oct 2005, 17:57
You must have fun with getnew/getdaily searches then, since it's basically the same.

RZ500
08 Oct 2005, 02:33
Works like a Charm Tanks

Bounce
09 Oct 2005, 04:19
/me installs another one :rolleyes:

Rhoads
09 Oct 2005, 12:13
Click Intall

What is the Portal Output Global Variables for this hack, It give me a error page on the CMPS.

Paul M
09 Oct 2005, 21:38
What is the Portal Output Global Variables for this hack, It give me a error page on the CMPS.Sorry, I don't know what you are asking, I don't use CMPS.

secret1980
10 Oct 2005, 14:16
installed but not working :( I logged out & logged back in but nothin as such came :( i am using 3.5.0 gold :)

RZ500
10 Oct 2005, 15:46
I did it in it works grat in 3.5 Thanks

Paul M
10 Oct 2005, 15:48
installed but not working :( I logged out & logged back in but nothin as such came :( i am using 3.5.0 gold :)Do you have database thread marking turned on ?

havefun
10 Oct 2005, 16:05
/me klicked install

works fine, thx again :)

RZ500
10 Oct 2005, 19:08
I have one question, where do I need to edit to change the info in Sapnish?

Paul M
10 Oct 2005, 19:15
I have one question, where do I need to edit to change the info in Sapnish?You will need to edit the actual plugin, unless you want to wait for the phrased version (Probably later this week, I'm slowly going though my hacks).

weaver
14 Oct 2005, 05:43
Paul - how can I change this so my RSS forums aren't included in the search for new posts for this plugin? I have the opt out extension (http://www.vbulletin.org/forum/showthread.php?t=91025) installed for new posts and "get daily" searches, but it would be nice if I could opt them out of this one as well.

Paul M
14 Oct 2005, 07:32
You would have to edit the code (or turn off the search permission for that forum).

weaver
14 Oct 2005, 19:34
You would have to edit the code (or turn off the search permission for that forum).

I turned the search engine permission off for those forums through the forum manager but it hasn't affected the new post count in the welcome panel.

Can you offer some guidance on how I would edit the code to exclude those forums? I'm guessing it's a conditional statement with the forum ids but I don't know how to construct it or where to place it.

SpanishHarlem
14 Oct 2005, 20:17
ok what have I done wrong? lol it show's how many new posts twice.

Paul M
14 Oct 2005, 22:00
I turned the search engine permission off for those forums through the forum manager but it hasn't affected the new post count in the welcome panel. Did you actually go into forum permissions screens, it's not the search indexing option in the normal forum edit screen.

Can you offer some guidance on how I would edit the code to exclude those forums? I'm guessing it's a conditional statement with the forum ids but I don't know how to construct it or where to place it.When I have the time, I'm rather busy atm.

weaver
15 Oct 2005, 18:46
Did you actually go into forum permissions screens, it's not the search indexing option in the normal forum edit screen.

Yes, the opt out option is working fine but just not with the number of posts showing up in the welcome panel.


When I have the time, I'm rather busy atm.

Okay. :)

I did try to add an exclude line with the forum numbers after each of the search commands in your plugin, but that didn't change the number of posts being counted.

Paul M
15 Oct 2005, 21:05
Yes, the opt out option is working fine but just not with the number of posts showing up in the welcome panel.I still don't think you are altering the correct thing, as it does affect the count.

ACP > Forums & Moderators > Forum Permissions

Find the forum in question, and edit the permissions for each usergroup, setting "Can Search Forums" to 'No'.

weaver
15 Oct 2005, 21:26
I still don't think you are altering the correct thing, as it does affect the count.

ACP > Forums & Moderators > Forum Permissions

Find the forum in question, and edit the permissions for each usergroup, setting "Can Search Forums" to 'No'.

You are correct sir. I knew I had changed a setting through that screen, but it was a different option. I've switched it to No and it is working now. Thanks for your help.

Cheertobi
15 Oct 2005, 21:50
Hi,

can someone help me on make this PlugIn work together with [http://www.vbulletin.org/forum/showthread.php?t=91025]this[/url] extension? So users only see how many new postings are in the forums they are really interested in?T

Regards,

Tobi

weaver
15 Oct 2005, 22:02
Hi,

can someone help me on make this PlugIn work together with [http://www.vbulletin.org/forum/showthread.php?t=91025]this[/url] extension? So users only see how many new postings are in the forums they are really interested in?T

Regards,

Tobi

I have them working together fine. Just install both and make sure you have the settings in the forum permissions area set correctly.

Cheertobi
15 Oct 2005, 22:15
Hi,

I have them working together fine. Just install both and make sure you have the settings in the forum permissions area set correctly.
yep, I also have them working site by site, but I always get "3 new postings since your last visit", even if these postings are within a forum which I do not want to show at "New Post"!

Regards,

Tobi

testpig
21 Oct 2005, 09:34
Hi Paul.
One minor problem I have. The plug works GREAT (the best I've installed!) but when a member clicks on the "new threads" it also displays threads that are in a locked/private forum. Everyone is clicking the thread and getting a "no permission" error. I believe it has potential to cause some friction in the forum

I've seen a similar plug, where you specify which forums are displayed by order number. Is this possible with your plugin?

Paul M
21 Oct 2005, 09:47
No, it's not.

This does not do anything special when you click the link - it simply calls the standard vbulletin new posts' search "/search.php?do=getnew" - the same as clicking the 'New Posts' link on the Navbar, so how did you handle this problem before ?

Davidinh
27 Oct 2005, 01:14
oops i got it

TygerTyger
03 Nov 2005, 10:54
Thanks for getting the issue I asked about fixed in the latest vB version :) I would have reported it myself if I thought they would fix it. +1 rep to vB I guess.

Cedric_FP
03 Nov 2005, 11:42
Awesome. Works like a charm. Good stuff!

TygerTyger
03 Nov 2005, 13:41
Thanks for getting the issue I asked about fixed in the latest vB version :) I would have reported it myself if I thought they would fix it. +1 rep to vB I guess.

Having said that, I'm finding it a touch erratic. Sometimes it works as it should now, sometimes it's still counting your own posts as unread. Can anyone confirm this on 3.5.1?

GoNz00
03 Nov 2005, 14:18
happend to me on 3.5 and still on 3.5.1

would be nice if this could be fixed ???

TygerTyger
03 Nov 2005, 14:21
happend to me on 3.5 and still on 3.5.1

would be nice if this could be fixed ???

It was supposed to have been in this version:

http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1518&status=20

I'm sure Paul would follow it up since he filed the original bug report.

michaelbenson
03 Nov 2005, 15:23
I would have preferred to be able to place the count of unread posts where we wanted in the navbar box much easier. I ended up having to made aload of edits to the search text bit to make it replace the correct area that i wanted!

Paul M
03 Nov 2005, 17:35
It was supposed to have been in this version:

http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1518&status=20

I'm sure Paul would follow it up since he filed the original bug report.They only agreed to "fix" it for new threads, not new posts to existing threads.

Paul M
03 Nov 2005, 17:38
I would have preferred to be able to place the count of unread posts where we wanted in the navbar box much easier. I ended up having to made aload of edits to the search text bit to make it replace the correct area that i wanted!I don't see you would need to make "aload of edits". If you want to place it somewhere custom, just put a comment in the template at the location you want ( like <!-- unread posts here --> ) and change the search to look for that comment. Simple really. :)

Bubble #5
11 Nov 2005, 19:07
change the search to look for that comment.
So if I understand this correctly, if we want it to show up from our forumhome template, then we would change this line of code:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to this?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



...and then add "<!-- unread posts here -->" in the forumhome template where we want it to show up? Is that correct Paul?

Bubble #5
11 Nov 2005, 19:21
Does it matter which one we have it set to "Database (no automatic forum marking)" or "Database (automatic forum marking)"?

Paul M
11 Nov 2005, 20:17
Does it matter which one we have it set to "Database (no automatic forum marking)" or "Database (automatic forum marking)"?It makes no difference to the working of this hack, either will do.

vtx1800
15 Nov 2005, 08:25
I installed in my board, 3.5.1, nothing showed.

Tried both settings of yes and no in the ACP, nothing. :(

Cheertobi
15 Nov 2005, 10:01
I installed in my board, 3.5.1, nothing showed.

Tried both settings of yes and no in the ACP, nothing. :(
Do you have a customized style?!

Tobi

Rickie3
15 Nov 2005, 10:23
clicks *install* yet another great hack Paul M thankyou

Paul M
15 Nov 2005, 10:35
I installed in my board, 3.5.1, nothing showed.

Tried both settings of yes and no in the ACP, nothing. :(Do you have database thread marking turned on.

Arios
15 Nov 2005, 23:44
Kewl, works exactily how you say Paul

*installed*

Dennis B
01 Dec 2005, 22:21
Paul,

Thanks for another great hack. :)

If I may just comment on a more philosophical point, while I understand this might cut off a lot of questions, I believe leaving the positioning of the hack results up to the final admin is a better idea than integrating everything in the xml. Just my humble opinion. And thanks again. :)

tamborinegal
02 Dec 2005, 04:24
Thanks Paul, just what I was looking for. Installed.

Clancy

RaceJunkie
14 Dec 2005, 04:04
Fixed it , hope U don't mind , made a minor change :

Changed
<a href='search.php?do=getnew'>
to
<a href='http://www.huijting.nl/vbul/search.php?do=getnew'>

Rob

I have replaced all search.php with

http://www.localracechat.com/forums/search.php? in the navbar. and still can't get my portal to point to it. where exactly did you make this edit?

Paul M
14 Dec 2005, 04:43
He edited the plugin code.

RaceJunkie
14 Dec 2005, 12:56
He edited the plugin code.

Oh, ok thanks

Working now..

Mastar
14 Dec 2005, 15:22
where is the setting in the ACP?

RaceJunkie
14 Dec 2005, 15:26
where is the setting in the ACP?


Read Pauls post again..


In fact this hack gives you two options (with a new setting in the vBulletin Options > General Settings). If set to yes, it will only count the unread posts since your last visit, if set to no it will count all posts considered unread. This setting reflects the divider in the GetNew display.

firstrebel
19 Dec 2005, 20:47
Just moved from DCForum to vB 3.5.2, should have done it a long time ago. Great collection of hacks, and just installed this one. Thanks.

Bob

TurboLaserAWD
20 Dec 2005, 06:31
I'm partial to the inactivity/cookie based system but I really like the "posts since last visit" number. I used to have the same thing in phpbb and my members loved. Is there a way to just get that number and nothing else? I don't need the more accurate marking system and what not, I just want to put the number up there.

Paul M
20 Dec 2005, 06:56
I'm partial to the inactivity/cookie based system but I really like the "posts since last visit" number. I used to have the same thing in phpbb and my members loved. Is there a way to just get that number and nothing else? I don't need the more accurate marking system and what not, I just want to put the number up there.
http://www.vbulletin.org/forum/showthread.php?s=&threadid=91146

firstrebel
20 Dec 2005, 15:40
Just logged into our forum and the welcome box showed 62 unread messages, but 'New Posts' only came up with 40. Why the difference?

Bob

Paul M
20 Dec 2005, 21:53
What "new posts" ?

firstrebel
20 Dec 2005, 22:05
You will see from the attached that it shows 30 Unread Posts. But after clicking 'New Posts' on the menu bar there are only 21. Or are unread and new posts different?

Bob

Paul M
20 Dec 2005, 22:17
Are you sure that's 21 posts in your result, and not 21 threads ?.

Also, which of these settings do you have ?

In fact this hack gives you two options (with a new setting in the vBulletin Options > General Settings). If set to yes, it will only count the unread posts since your last visit, if set to no it will count all posts considered unread. This setting reflects the divider in the GetNew display

firstrebel
20 Dec 2005, 22:31
Display unread posts option is set to 'No'.

Posts or threads? This is confusing, as the welcome box shows 30 unread *posts* and clicking on the 'New Posts' link shows 21, presumably *posts*.

Bob

Paul M
20 Dec 2005, 22:53
Posts or threads? This is confusing, as the welcome box shows 30 unread *posts* and clicking on the 'New Posts' link shows 21, presumably *posts*.No, 21 would normally be the number of threads listed.

utw-Mephisto
21 Dec 2005, 00:43
Is it possible to make it work with : http://www.vbulletin.org/forum/showthread.php?t=91025
??

Paul M
21 Dec 2005, 00:52
Are you going to ask the same question in all my threads ?

utw-Mephisto
21 Dec 2005, 00:57
Not on purpose, I had both as favorites (since those plugins are similiar) and I thought I have not saved correctly since I couldn't find my post anymore ...

I deleted the other one ..

Danny Diamond
02 Jan 2006, 16:32
Works fine. Although I had to go through a couple of pages of peoples replies to get all the proper info.

But thanks. I love these hacks.

docvader
12 Jan 2006, 20:06
Paul, great hack, as usual. And this has nothing to do with your work, but I'll ask anyway. In that same "Get New" box that this adds to, I have New activity: threads and posts. that doesn't update, or, do anything for that matter.

Can't find the template that describes that. Any suggestions?
Thanks
rich

Paul M
12 Jan 2006, 20:33
I assume that's some other hack you have installed, the instructions for that hack should tell you. :)

docvader
13 Jan 2006, 01:05
I assume that's some other hack you have installed, the instructions for that hack should tell you. :)

What template is this that we're dealing with? I have to get into it, so that the html direct works outside the forum (in my vbadvanced)
Thanks!
rich

da420
13 Jan 2006, 01:25
What exactly is the difference between the Inactivity/Cookies Based, Database (no automatic forum marking), and Database (automatic forum marking)?

and which one would be best to enable for this hack?

jmacieira
14 Jan 2006, 01:35
Hi Paul

All is OK

But only in forum

I have installade Photopost, and when I move to /forum/photopost this hack dont work for me :disappointed:

Paul M
14 Jan 2006, 03:29
Sorry, but since Photopost is a 3rd party application there is nothing I can do about that.

MustangLisa
15 Jan 2006, 07:26
Cool, thanks.

mkdevo
15 Jan 2006, 14:46
wow.. i didn't even know about the db-based newposts until i came across this hack! very cool.

SCRIPT3R
16 Jan 2006, 23:35
ugh... would like to use, but i'm trying to reduce processor activity and don't use the database marking system.

ChErAbOo
17 Jan 2006, 03:32
Nice addon Thanks worked perfect even with my custom templates

*clicks Install

docvader
17 Jan 2006, 20:02
Paul
I need to change the code on this, to "hardwire it", because it won't link to the new posts area when I'm in certain pages (ie, in some of my vbadvanced pages, which, by default, include my header. (eg: http://www.russbo.org/index.php?page=staff& )

I've looked in navbar, and header, but I can't find where you coded this.

rich

EDIT: fixed it. Found it in the plug ins, and just modified the call to search.php

Paul M
17 Jan 2006, 20:33
Yeah, just change the href in the code. :)

ryuji
18 Jan 2006, 05:21
if your other hack works fine, is there any reason to run this one instead?

Paul M
18 Jan 2006, 05:43
if your other hack works fine, is there any reason to run this one instead?That rather depends on what the "other one" is :)

ryuji
18 Jan 2006, 11:26
http://www.vbulletin.org/forum/showthread.php?t=91146

mkdevo
18 Jan 2006, 11:51
Hi Paul

All is OK

But only in forum

I have installade Photopost, and when I move to /forum/photopost this hack dont work for me :disappointed:

this was actually just answered...

AdminCP > Plugin System > Plugin Manager > Display Unread Posts > Edit:

Find (2x):



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



^^ if your forum dir isn't /forum, make sure you change that to whatever it is...

Paul M
18 Jan 2006, 20:03
if your other hack works fine, is there any reason to run this one instead?This one shows unread posts (only), the other one shows new posts (read or unread) and also new reputation comments. It's up to you which you want, there is no reason to change unless you (a) want unread posts and (b) don't want new rep comments.

ryuji
18 Jan 2006, 20:30
is there any preferance considering i disabled the rep part... like server load wise?

Paul M
18 Jan 2006, 22:49
is there any preferance considering i disabled the rep part... like server load wise?I have a preference yes, but that's just a personal choice.

Each is one select query, the choice is really down to what you want, unread posts, or new posts. I cannot make the choice for you.

Tralala
06 Feb 2006, 05:12
This requires that a certain text combination exists in your template.

What is the "certain text combination" that this plug-in looks for, to insert the new text string? I ask because it's working fine in one skin, but not the other, and I'd like to fix the navbar on the second so it's compliant.

Paul M
06 Feb 2006, 13:48
It looks for "</strong><br />" (which is the end of the Welcome, xxxxxx. message).

mkdevo
07 Feb 2006, 14:03
unfortunately, i had to uninstall this. :( i loved it, and so did my users, but the db thread marking system made my forums really really really slow. :(

Paul M
07 Feb 2006, 14:48
Not much I can do about that, except recommend you move to a decent host - db thread marking should not slow your system.

icare
12 Feb 2006, 10:34
Works fine, but it sent the server load through the roof so I had to remove it


How did you remove it? I also want to reomove it coz my navbar doent appear(in fire fox only, works fine in IE) if i add adsense code to header! My navbar dissapeared in FF. If you want to check please check in FF and the link is www.hornybollywood.com

Paul M
12 Feb 2006, 15:42
What has removing this got to do with adsense ?

icare
12 Feb 2006, 19:57
What has removing this got to do with adsense ?

I dont know! Snice I had installed this hack, my navbar disappered in firefox.. ITs perfect in IE though. I odnt know wahts wrong. YOu can check my website in FIREFOX

NR Fatal
17 Mar 2006, 01:21
Cool, Thanks! funny thing though, it made all threads on my Forums new, lol. nice though.

Tulsa
30 Mar 2006, 23:58
It works on my 3.5.3

Paul M
31 Mar 2006, 01:52
its not working on 3.5.3????Yes it is/does.

Hell³
02 Apr 2006, 21:49
Great hack, is there a way to have it phrased?

Paul M
02 Apr 2006, 21:51
Good question.

I'm not sure why this one never got done when I phrased most of my hacks. I'll pop it on the todo list. :)

Hell³
02 Apr 2006, 22:00
Thanks. Also, the postcount ignores the selective forum filter (http://www.vbulletin.org/forum/showthread.php?t=98360) hack but the search result doesn't. Not really that big of a problem but might confuse some of my users.

Paul M
02 Apr 2006, 22:11
Well that's nothing I can do about the later problem, it's not possible to take into account the effects of other hacks.

Hell³
02 Apr 2006, 22:25
Ok, thanks anyway. Also, I edited the plugin to input the absolut path to the search.php to make it work with the vbadvanced portal as well, is there a better way to do this or it's the only way?

Paul M
02 Apr 2006, 22:28
I don't know as I don't have VBA, but it won't break anything doing that.

Hell³
02 Apr 2006, 22:36
Ok, thanks for all your help. And many thanks for that future phrased version :).

IrPr
03 Apr 2006, 11:14
Doesn't work with vBDrupal
any suggestion?

3rabkingdom
03 Apr 2006, 13:16
:) thank you

KeesTalk
15 Apr 2006, 20:22
I know what download to PC means, but what does import it into vbulletin as a product mean? In other words, how do I do that? Am such a total ditz when it comes to stuff like this! :confused:

Paul M
15 Apr 2006, 22:16
Doesn't work with vBDrupal
any suggestion?Sorry, I don't know much about Drupal.

KeesTalk
16 Apr 2006, 05:29
Do I execute the following as an SQL Query?:

<installcode>
- <![CDATA[ $hackid = 96522;
$install = 'http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid='.$hackid;
echo '<center><img src="'.$install.'" hight="1" width="1" alt="Installing" /></center>';

]]>
</installcode>

Am not sure if that's what I execute. If so, do I remove the <installcode> and </installcode> or leave that in?

Paul M
16 Apr 2006, 15:08
You don't do anything with it, vb runs install code when you first install a product - and please don't post code from hacks without using code tags, otherwise unregistered users can see it.

hotwheels
23 Apr 2006, 14:22
thanks it works now :)

for those wondering where to look

admin cp / vBulletin Options > General Settings > Thread/Forum Read Marking Type > set to database


Just wanted to move this towards the end of the post for those that are still trying to get this on their site.....


hotwheels

Tulsa
25 Apr 2006, 00:27
Now what would be really nice is to have this also placed at the bottom of the threads. Once read, instead of clicking back to the top of the forum or sub-board, clicking straight to the unread posts search list again.

Tralala
25 Apr 2006, 01:21
Now what would be really nice is to have this also placed at the bottom of the threads. Once read, instead of clicking back to the top of the forum or sub-board, clicking straight to the unread posts search list again.


You could do this easily by editing the SHOWTHREAD template:
http://www.vbulletin.org/forum/showthread.php?p=930707#post930707

Tulsa
25 Apr 2006, 02:34
You could do this easily by editing the SHOWTHREAD template:
http://www.vbulletin.org/forum/showthread.php?p=930707#post930707

Thanks, I'd never seen that before. :)

defcon_420
29 Apr 2006, 08:42
then alter the ACP setting to your preferred option (the default is 'no' (i.e. all unread posts).


"CLICKS INSTALL"

Great hack, thou i had to think about it for a while cause the instructions wernt very clear for someone who knows nothing about code
Maybe a screen shot would help non coders like me

Great job!

Eagle Creek
05 May 2006, 10:42
Note: This hack injects the result direct into the navbar template during page construction, thus avoiding the need for a template edit. This requires that a certain text combination exists in your template. This will be fine for most boards that use a navbar based on the vB default, but you should bear this in mind if you have a totally custom navbar.

I have a customized navbar. Can you tell me what to edit cause the plugin didn't do it for me.

Tralala
05 May 2006, 14:37
I have a customized navbar. Can you tell me what to edit cause the plugin didn't do it for me.

See post #124...

alfaowner
06 May 2006, 15:55
I have a customized navbar. Can you tell me what to edit cause the plugin didn't do it for me.

I am normally okay with most hacks, been doing for 5 years, but do you think I can get this to show up? I have a a customized site also and I cannot get it to show up. I am using Automatic forum marking with DB, and have edited the href to my full forum path but still a no go, just will not show up in the user front end. Did I miss something, I read this thread in full, it took ages.

Nice feature, really would like it.
www.alfaowner.com/forum (http://www.alfaowner.com/forum)

Regards,

AO

Tralala
06 May 2006, 16:23
I am normally okay with most hacks, been doing for 5 years, but do you think I can get this to show up? I have a a customized site also and I cannot get it to show up. I am using Automatic forum marking with DB, and have edited the href to my full forum path but still a no go, just will not show up in the user front end. Did I miss something, I read this thread in full, it took ages.

Nice feature, really would like it.
www.alfaowner.com/forum (http://www.alfaowner.com/forum)

Regards,

AO


I too have a customized site. This hack didn't work for me until I added

"</strong><br />" to the end of the "Welcome, xxxxxx." message.

This is referenced in post #124.

Actually "<br />" was aready there so I replaced it with "<strong></strong><br />" and I was good to go.

Paul M
06 May 2006, 17:34
This is the appropiate line in the standard navbar ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


The bold bit being the important part, if that isn't there, this will fail to show.

Eagle Creek
07 May 2006, 11:32
See post #124...

Thank you! I will!

sportsoutlaw
01 Jun 2006, 00:42
I have run into a little problem with this plugin in firefox. Quite often when I click on the unread posts it gives me a "page not found" error. Hasn't happened in IE.

phpdevrus
08 Jun 2006, 08:08
I have run into a little problem with this plugin in firefox. Quite often when I click on the unread posts it gives me a "page not found" error. Hasn't happened in IE.

I installed it and it works perfectly.

I use ff too. You should check the link that it goes to. It shouldnt have an issue if you use ie or ff as the link is created by vb and has nothing to do with the browser ie. http://www.domain.com/search.php?do=getnew

good luck.

utw-Mephisto
05 Jul 2006, 00:50
Is there a way to exclude certain forumdis ?

Dr.Viggy
05 Jul 2006, 01:49
worked on the first try. took about 6 seconds to install but is very helpful. thanks

installed

Murty
05 Jul 2006, 02:34
Hey, i reckon something that would be really good for this mod would be:

to make it so users can choose what particular forums they want to know how many unread posts are in it. So say they choose forum A, forum D, forum M; then when they next come back online it will say 'XX Unread Posts', then they can click that and it will show unread posts like 'search.php?do=getnew' does, but just from the selected forums.

What do you reckon? to hard to do?

utw-Mephisto
06 Jul 2006, 02:46
Found finally a way to opt out forumIDs

find


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



in the plugin and below add



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



with xx = forumids you want to opt out ..

firstrebel
06 Aug 2006, 21:04
Now that vb 3.6 has been released, there will be no further updates to this modification.
Support will be continued until around the end of 2006 - after that this will be come unsupported.

Is there a 3.6 version of this then?

Bob

Paul M
06 Aug 2006, 21:37
Not yet.

IrPr
07 Aug 2006, 22:52
Thanks Paul !

I'm using this plugin with "Opt-Out Forums from Get New Posts" by Andreas and i had trouble when i exclude some forums from Get New Posts, then i had modified Paul's Hack to make integration with ;)

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Below that, Add:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

RaceJunkie
10 Aug 2006, 03:38
probably the most missed mod on my site.. Can't wait untill 3.6 is out

Paul M
10 Aug 2006, 03:52
probably the most missed mod on my site.. Can't wait untill 3.6 is outThe 3.6 specific release will probably be over the weekend, I have a few minor changes to make (internal, nothing visible). If you really want, then there is no reason I can see that you cannot install this 3.5 version on a 3.6 forum, and then update it later.

RaceJunkie
10 Aug 2006, 04:05
The 3.6 specific release will probably be over the weekend, I have a few minor changes to make (internal, nothing visible). If you really want, then there is no reason I can see that you cannot install this 3.5 version on a 3.6 forum, and then update it later.

Paul I can wait.. Thank you anyway though

testpig
13 Aug 2006, 08:08
Hi Paul.
I have the vB Advanced issue (and know you dont use it - got that bit).
I added the absolute path to the plugin but to no avail.
I then uninstalled the plugin but it still shows in my forum and vBA hhomepage no matter how hard I F5 my screen! The absolute path is definately in the plugin so its got me stumped.

Why would this plugin still show if its uninstalled? I couldnt see it in the navbar template so its got me stumped.

JohnBee
21 Nov 2006, 15:48
Thanks Paul !

I'm using this plugin with "Opt-Out Forums from Get New Posts" by Andreas and i had trouble when i exclude some forums from Get New Posts, then i had modified Paul's Hack to make integration with ;)

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Below that, Add:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thats great IrPr
I added your code to our own forum and it works maginificently.
I tried to take it a bit futher by modifying Andreas's Opt-Out Forums from Get New/Get Daily MOD with default forum exclusions. Which works however the Display count of unread posts in welcome box still picks up new posts, although it will not list them.

I was hoping perhaps someone here could help figure out what changes need to be done for it to work fully with the modifications.




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Opt-Out Forums from Get New Daily changes:
To have one specific forum thats will not show up at all in new posts
ACP / Plugin System / Plugin Manager. Locate the Plugin on Hook search_getnew_start for this Hack, click edit.

Find and edit


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



With the forum id being 8

This only kicks in if the user has defined custom excludes as well.
If you want it to be always active, undo the edit and place



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


below the }

*** all of these changes work nicely however the Display unread will only filter out excluded forums completely if it is done via the user control panel. Otherwise(this method) it partially filters out the new posts. ex: it shows a new post(no.) but will not display them when clicked on.

Anyone know what needs to be done to get the Display to filter out the excluded forums completely?

dead7
29 Nov 2006, 18:13
This is a great hack and it's been working great so far!

Recently i edited my navbar and removed the welcome/pm/post count because i added a right column to every page of the forum. I updated this new right column in header and footer templates in the style manager for my style.

I pasted the exact same navbar bit that had the unread postcount (that previously worked great) into it and now it won't show the count?

I haven't changed anything except where i display the actual unread post count, it shows the rest of the phrase just not the physical # of actual posts unread now.

Is it sensitive where its being displayed?

Basically i cleaned up our design and put that type of info on the right column thus bumping the forums up .. any help is appreciated

Paul M
29 Nov 2006, 19:22
TBH, I don't really follow what you are describing - can you post a sceen shot, or better still, a link and test login.

dead7
29 Nov 2006, 20:35
I'll try to post a screenshot here in a bit. This is a temp design so a login won't work since its not active to show.

Basically you're familiar with navbar and how your hack goes into that template to display X Unread Posts.

I have removed everything from navbar except the breadcrumb portion which gives the breadcrumb nav as people use the forums.

I then added a right column to the entire forum. I took the Welcome/PM/Unread Posts from the navbar and added it into my right column on the top.

Therefore what navbar had, i removed, and put inside of my right column.

Basically in the end, all i did was move $newposts to my right column and removed it from navbar template. Everything the phrase has displays just fine, just the actual count of how many posts are unread doesn't show up.

For instance i changed mine to say

# Unread Posts since your last visit.

It now says

Unread posts since your last visit

It doesn't even render that $newposts variable to show the actual number of posts.

If this still isn't clear let me know and i'll find a way to get a good screen shot in the half_done design that we're trying this in.

Thanks for your help on this support issue Paul, its truly appreciated.

dead7
29 Nov 2006, 21:07
Shouldn't I be able to take this:


<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'">

<a href="$vboptions[bburl]/search.php?do=getnew"><strong>$newposts unread posts</strong></a> since last visit.

</if>



And put it anywhere I want it? Right now I use the Right Column hack which adds a quick snip to the header template and footer. In the footer template is where the code above is.

Paul M
29 Nov 2006, 21:25
There is no such variable as $newposts, I'm not sure where you got that from, try $postcount[unread].

dead7
29 Nov 2006, 21:35
Ah sorry thanks, i meant to use that variable.

I believe what it was is the end of the if condition ='index'. I removed that if condition and it seems to show up great on all the other pages now.

flynnibus
30 Nov 2006, 02:24
*install*

Thanks PaulM!

LjubavnaZona
04 Aug 2007, 03:45
Thank you so much for this :) I love it. Installed.