View Full Version : Display count of unread posts in welcome box
Paul M
09-17-2005, 10:00 PM
This modification is no longer available or supported.
* 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
09-18-2005, 10:59 PM
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
09-18-2005, 11:16 PM
Yeah, I suppose so.
Since it was commented out it wouldn't actually do anything, but removed anyway. :)
Boofo
09-18-2005, 11:27 PM
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
09-18-2005, 11:47 PM
Nice to know you think so highly of us Boofo. Ha ha... great idea.
* acidburn0520 clicks install
Boofo
09-19-2005, 01:33 AM
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
09-19-2005, 03:32 AM
Where do I upload "products"? I have no product manager in my admin panel and I am running the latest version of VB.
Boofo
09-19-2005, 05:37 AM
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
09-19-2005, 06:40 AM
was hoping this worked on rc2 :( oh well.
geoff4787
09-19-2005, 06:40 AM
edit...nevermind.
trancetopia
09-19-2005, 08:57 AM
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
09-19-2005, 09:58 AM
works great thx!
(RC2)
<< clicks install
dookie
09-19-2005, 10:34 AM
Works on RC3 *install*
GoNz00
09-19-2005, 10:44 AM
i installed on rc2 to but didnt get the new posts count
Paul M
09-19-2005, 12:04 PM
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
09-19-2005, 12:09 PM
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
09-19-2005, 12:12 PM
Sweet it's working now. Great mod.
GoNz00
09-19-2005, 12:12 PM
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
09-19-2005, 02:47 PM
I've highlighted the requirement in bold to make it slightly more obvious.
JJR512
09-19-2005, 03:06 PM
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
09-19-2005, 03:13 PM
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
09-19-2005, 04:42 PM
Everybody has allways "1 unread post" and when clicking it it say "no unread posts" ;(
Huijting
09-19-2005, 05:41 PM
: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
09-19-2005, 10:12 PM
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
09-19-2005, 10:17 PM
: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
09-19-2005, 10:24 PM
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
09-20-2005, 12:38 AM
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
09-20-2005, 01:21 AM
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
09-20-2005, 06:48 AM
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
10-03-2005, 10:52 PM
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
10-04-2005, 10:54 AM
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
10-04-2005, 01:06 PM
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
10-04-2005, 04:14 PM
thank
TygerTyger
10-05-2005, 10:27 AM
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
10-05-2005, 05:02 PM
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
10-05-2005, 05:05 PM
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
10-06-2005, 07:36 AM
weird, but after installing it on gold version, i dont see options in user CP :o
Paul M
10-06-2005, 07:48 AM
Um, there are no options to see in usercp, what are you expecting ?
shungo
10-07-2005, 09:53 AM
Sorry, i confused between acp and usercp when reading above :D
shungo
10-07-2005, 09:57 AM
BTW, it's no possible to have phrase like these: xxx posts since your last visit (date time) ?
Paul M
10-07-2005, 03:25 PM
The date and time are already on the next line, why would you want them twice ?
Rogerl
10-07-2005, 03:47 PM
Works fine, but it sent the server load through the roof so I had to remove it
Paul M
10-07-2005, 03:57 PM
You must have fun with getnew/getdaily searches then, since it's basically the same.
RZ500
10-08-2005, 12:33 AM
Works like a Charm Tanks
Bounce
10-09-2005, 02:19 AM
* Bounce installs another one :rolleyes:
Rhoads
10-09-2005, 10:13 AM
Click Intall
What is the Portal Output Global Variables for this hack, It give me a error page on the CMPS.
Paul M
10-09-2005, 07:38 PM
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-10-2005, 12:16 PM
installed but not working :( I logged out & logged back in but nothin as such came :( i am using 3.5.0 gold :)
RZ500
10-10-2005, 01:46 PM
I did it in it works grat in 3.5 Thanks
Paul M
10-10-2005, 01:48 PM
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-10-2005, 02:05 PM
* havefun klicked install
works fine, thx again :)
RZ500
10-10-2005, 05:08 PM
I have one question, where do I need to edit to change the info in Sapnish?
Paul M
10-10-2005, 05:15 PM
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
10-14-2005, 03:43 AM
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 (https://vborg.vbsupport.ru/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
10-14-2005, 05:32 AM
You would have to edit the code (or turn off the search permission for that forum).
weaver
10-14-2005, 05:34 PM
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
10-14-2005, 06:17 PM
ok what have I done wrong? lol it show's how many new posts twice.
Paul M
10-14-2005, 08:00 PM
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
10-15-2005, 04:46 PM
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
10-15-2005, 07:05 PM
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
10-15-2005, 07:26 PM
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
10-15-2005, 07:50 PM
Hi,
can someone help me on make this PlugIn work together with [https://vborg.vbsupport.ru/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
10-15-2005, 08:02 PM
Hi,
can someone help me on make this PlugIn work together with [https://vborg.vbsupport.ru/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
10-15-2005, 08:15 PM
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
10-21-2005, 07:34 AM
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
10-21-2005, 07:47 AM
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
10-26-2005, 11:14 PM
oops i got it
TygerTyger
11-03-2005, 08:54 AM
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
11-03-2005, 09:42 AM
Awesome. Works like a charm. Good stuff!
TygerTyger
11-03-2005, 11:41 AM
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
11-03-2005, 12:18 PM
happend to me on 3.5 and still on 3.5.1
would be nice if this could be fixed ???
TygerTyger
11-03-2005, 12:21 PM
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
11-03-2005, 01:23 PM
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
11-03-2005, 03:35 PM
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
11-03-2005, 03:38 PM
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-11-2005, 05:07 PM
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:
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread,$vbu lletin->templatecache['navbar']);
to this?
$vbulletin->templatecache['forumhome'] = str_replace($search_text,$search_text.$unread,$vbu lletin->templatecache['forumhome']);
...and then add "<!-- unread posts here -->" in the forumhome template where we want it to show up? Is that correct Paul?
Bubble #5
11-11-2005, 05:21 PM
Does it matter which one we have it set to "Database (no automatic forum marking)" or "Database (automatic forum marking)"?
Paul M
11-11-2005, 06:17 PM
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
11-15-2005, 06:25 AM
I installed in my board, 3.5.1, nothing showed.
Tried both settings of yes and no in the ACP, nothing. :(
Cheertobi
11-15-2005, 08:01 AM
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
11-15-2005, 08:23 AM
clicks *install* yet another great hack Paul M thankyou
Paul M
11-15-2005, 08:35 AM
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
11-15-2005, 09:44 PM
Kewl, works exactily how you say Paul
*installed*
Dennis B
12-01-2005, 08:21 PM
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
12-02-2005, 02:24 AM
Thanks Paul, just what I was looking for. Installed.
Clancy
RaceJunkie
12-14-2005, 02:04 AM
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
12-14-2005, 02:43 AM
He edited the plugin code.
RaceJunkie
12-14-2005, 10:56 AM
He edited the plugin code.
Oh, ok thanks
Working now..
Mastar
12-14-2005, 01:22 PM
where is the setting in the ACP?
RaceJunkie
12-14-2005, 01:26 PM
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
12-19-2005, 06:47 PM
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
12-20-2005, 04:31 AM
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
12-20-2005, 04:56 AM
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.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=91146
firstrebel
12-20-2005, 01:40 PM
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
12-20-2005, 07:53 PM
What "new posts" ?
firstrebel
12-20-2005, 08:05 PM
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
12-20-2005, 08:17 PM
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
12-20-2005, 08:31 PM
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
12-20-2005, 08:53 PM
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
12-20-2005, 10:43 PM
Is it possible to make it work with : https://vborg.vbsupport.ru/showthread.php?t=91025
??
Paul M
12-20-2005, 10:52 PM
Are you going to ask the same question in all my threads ?
utw-Mephisto
12-20-2005, 10:57 PM
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
01-02-2006, 02:32 PM
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
01-12-2006, 06:06 PM
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
01-12-2006, 06:33 PM
I assume that's some other hack you have installed, the instructions for that hack should tell you. :)
docvader
01-12-2006, 11:05 PM
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
01-12-2006, 11:25 PM
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
01-13-2006, 11:35 PM
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
01-14-2006, 01:29 AM
Sorry, but since Photopost is a 3rd party application there is nothing I can do about that.
MustangLisa
01-15-2006, 05:26 AM
Cool, thanks.
mkdevo
01-15-2006, 12:46 PM
wow.. i didn't even know about the db-based newposts until i came across this hack! very cool.
SCRIPT3R
01-16-2006, 09:35 PM
ugh... would like to use, but i'm trying to reduce processor activity and don't use the database marking system.
ChErAbOo
01-17-2006, 01:32 AM
Nice addon Thanks worked perfect even with my custom templates
*clicks Install
docvader
01-17-2006, 06:02 PM
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
01-17-2006, 06:33 PM
Yeah, just change the href in the code. :)
ryuji
01-18-2006, 03:21 AM
if your other hack works fine, is there any reason to run this one instead?
Paul M
01-18-2006, 03:43 AM
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
01-18-2006, 09:26 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=91146" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=91146</a>
mkdevo
01-18-2006, 09:51 AM
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):
<a href='search.php?do=getnew'>
Replace with:
<a href='http://www.YOURSITENAME.com/forum/search.php?do=getnew'>
^^ if your forum dir isn't /forum, make sure you change that to whatever it is...
Paul M
01-18-2006, 06:03 PM
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
01-18-2006, 06:30 PM
is there any preferance considering i disabled the rep part... like server load wise?
Paul M
01-18-2006, 08:49 PM
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
02-06-2006, 03:12 AM
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
02-06-2006, 11:48 AM
It looks for "</strong><br />" (which is the end of the Welcome, xxxxxx. message).
mkdevo
02-07-2006, 12:03 PM
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
02-07-2006, 12:48 PM
Not much I can do about that, except recommend you move to a decent host - db thread marking should not slow your system.
icare
02-12-2006, 08:34 AM
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
02-12-2006, 01:42 PM
What has removing this got to do with adsense ?
icare
02-12-2006, 05:57 PM
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
03-16-2006, 11:21 PM
Cool, Thanks! funny thing though, it made all threads on my Forums new, lol. nice though.
Tulsa
03-30-2006, 09:58 PM
It works on my 3.5.3
Paul M
03-30-2006, 11:52 PM
its not working on 3.5.3????Yes it is/does.
Hell?
04-02-2006, 07:49 PM
Great hack, is there a way to have it phrased?
Paul M
04-02-2006, 07:51 PM
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?
04-02-2006, 08:00 PM
Thanks. Also, the postcount ignores the selective forum filter (https://vborg.vbsupport.ru/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
04-02-2006, 08:11 PM
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?
04-02-2006, 08:25 PM
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
04-02-2006, 08:28 PM
I don't know as I don't have VBA, but it won't break anything doing that.
Hell?
04-02-2006, 08:36 PM
Ok, thanks for all your help. And many thanks for that future phrased version :).
Doesn't work with vBDrupal
any suggestion?
3rabkingdom
04-03-2006, 11:16 AM
:) thank you
KeesTalk
04-15-2006, 06:22 PM
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
04-15-2006, 08:16 PM
Doesn't work with vBDrupal
any suggestion?Sorry, I don't know much about Drupal.
KeesTalk
04-16-2006, 03:29 AM
Do I execute the following as an SQL Query?:
<installcode>
- <![CDATA[ $hackid = 96522;
$install = 'https://vborg.vbsupport.ru/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
04-16-2006, 01:08 PM
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
04-23-2006, 12:22 PM
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
04-24-2006, 10:27 PM
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
04-24-2006, 11:21 PM
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:
https://vborg.vbsupport.ru/showthread.php?p=930707#post930707
Tulsa
04-25-2006, 12:34 AM
You could do this easily by editing the SHOWTHREAD template:
https://vborg.vbsupport.ru/showthread.php?p=930707#post930707
Thanks, I'd never seen that before. :)
defcon_420
04-29-2006, 06:42 AM
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-05-2006, 08:42 AM
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-05-2006, 12:37 PM
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
05-06-2006, 01:55 PM
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
05-06-2006, 02:23 PM
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
05-06-2006, 03:34 PM
This is the appropiate line in the standard navbar ;
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
The bold bit being the important part, if that isn't there, this will fail to show.
Eagle Creek
05-07-2006, 09:32 AM
See post #124...
Thank you! I will!
sportsoutlaw
05-31-2006, 10:42 PM
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
06-08-2006, 06:08 AM
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
07-04-2006, 10:50 PM
Is there a way to exclude certain forumdis ?
Dr.Viggy
07-04-2006, 11:49 PM
worked on the first try. took about 6 seconds to install but is very helpful. thanks
installed
Murty
07-05-2006, 12:34 AM
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
07-06-2006, 12:46 AM
Found finally a way to opt out forumIDs
find
AND post.dateline > IF(threadread.readtime IS NULL, $cutoff, threadread.readtime)
AND post.dateline > IF(forumread.readtime IS NULL, $cutoff, forumread.readtime)
AND post.dateline > $cutoff
in the plugin and below add
AND thread.forumid NOT IN (xx,xx)
with xx = forumids you want to opt out ..
firstrebel
08-06-2006, 07:04 PM
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
08-06-2006, 07:37 PM
Not yet.
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:
$xforum_ids = array_keys($vbulletin->forumcache);
Below that, Add:
$exclude = explode(",",$vbulletin->userinfo['excludeforumsgnp']);
Now Find:
if ( !($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($xfperms & $vbulletin->bf_ugp_forumpermissions['cansearch']))
Replace with:
if ( !($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($xfperms & $vbulletin->bf_ugp_forumpermissions['cansearch']) OR (in_array($xforum_id, $exclude)))
RaceJunkie
08-10-2006, 01:38 AM
probably the most missed mod on my site.. Can't wait untill 3.6 is out
Paul M
08-10-2006, 01:52 AM
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
08-10-2006, 02:05 AM
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
08-13-2006, 06:08 AM
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
11-21-2006, 01:48 PM
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:
$xforum_ids = array_keys($vbulletin->forumcache);
Below that, Add:
$exclude = explode(",",$vbulletin->userinfo['excludeforumsgnp']);
Now Find:
if ( !($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($xfperms & $vbulletin->bf_ugp_forumpermissions['cansearch']))
Replace with:
if ( !($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($xfperms & $vbulletin->bf_ugp_forumpermissions['cansearch']) OR (in_array($xforum_id, $exclude)))
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.
PHP Code:
$xforum_ids = array_keys($vbulletin->forumcache);
Below that, Add:
PHP Code:
$exclude = explode(",",$vbulletin->userinfo['excludeforumsgnp']);
Now Find:
PHP Code:
if ( !($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($xfperms &
$vbulletin->bf_ugp_forumpermissions['cansearch']))
Replace with:
PHP Code:
if ( !($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($xfperms &
$vbulletin->bf_ugp_forumpermissions['cansearch']) OR (in_array($xforum_id, $exclude)))
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
The comma-separated list of excluded forums - add your ID to it.
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']) . ',8';
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
$vbulletin->GPC['exclude'] .= ',8';
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
11-29-2006, 04:13 PM
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
11-29-2006, 05:22 PM
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
11-29-2006, 06:35 PM
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
11-29-2006, 07:07 PM
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
11-29-2006, 07:25 PM
There is no such variable as $newposts, I'm not sure where you got that from, try $postcount[unread].
dead7
11-29-2006, 07:35 PM
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
11-30-2006, 12:24 AM
*install*
Thanks PaulM!
LjubavnaZona
08-04-2007, 01:45 AM
Thank you so much for this :) I love it. Installed.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.