![]() |
Show Newest PM If Unread On Forum Home
This is similar to the IPB 2.x feature, where if you have a PM which is unread, or several, it will display the newest PM which you have unread on the forum home page below navigation.
This modification will do the same to your forums, if no unread PM's are found, nothing will be shown. It will also cut-off the message after 400 characters to stop the whole message (if big) from been shown. A preview of it in action can be found below :) For those who are concerned about the amount of queries this will execute, heres info on that: If Unread PM Is Found And Displayed: 1 Query Used If Nothing Is Displayed: 0 Queries Used Installation Information Files To Edit: 1 Templates To Edit: 1 Templates To Add: 1 Estimated Installation Time: 10 - 15 Minutes Enjoy the modification, - Zero Tolerance |
if it doesn't get cut off and you read it (on your forum home) is it now labled as read? or is it still unread?
|
No matter if it is cut off or not, the PM is not registered as read, there are links given to go to the message or your inbox to read it properly from there. This modification is merly to show the PM upon visiting the forum index if you have just got online, then you can decide if you need to read it fully and reply or just ignore it.
Also setting it as read would mean 1 extra query, which is not really needed, so i didn't implement it. - Zero Tolerance |
Very nice!
You're really desperate of getting that Master Coder title, aren't you ^^? |
Quote:
- Zero Tolerance |
Hehe, well, I wish you good luck :).
[high]* Deaths installs[/high] |
well couldnt you setup if that that the strlen is not over 400 that it will automatically run the query and mark the post read....
good idea anyways but i think it woudl take up too much room;) |
I could, but thats a query, and i don't like them :p
As for taking up room, thats the whole point about the 400 char cut-off limit :) - Zero Tolerance |
This is a great hack... I havent tried it though yet lol
|
There is no 'forumhome_stats_thread', in index.php
|
Quote:
- Zero Tolerance |
You are the best... I was on an IPB forum today and wished VB had this facility... *clicks install and puts it on 3 forums*
|
Well.... that's a pretty cool idea. :cool:
Zero: So what are your thoughts on using the navbar template instead of the forumhome template? That way it'd work with portals as well instead of just the forums themselves. |
That could be done, but i thought i'd put it on the forumhome, incase users dont want to read the PM, then when they visit other pages on the forum, it wont appear, i could imagine a few complaining about been how annoying it would be.
- Zero Tolerance |
Quote:
|
vB Version: 3.0.7
from the hack itself it is in teh 3.0.7 version of the index.php page |
Works great! THANKS
|
Very nice, I like that :)
|
I cant find 'forumhome_stats_thread', where is it?
|
its only in 3.0.7, however that doesn't mean it doesn't work. I have it working fine on 3.0.6 :)
|
Can u help me? I cannot find in 3.0.7 index.php
|
Quote:
Code:
'forumhome_event', - Zero Tolerance |
Thanks, working 100% in 3.0.6
Installed. Quote:
|
Neat!
|
Working Great....smacks the install
|
Everyone except Supermods and Admins are recieving "no permission" error message when they click on the link to go view the message.
I confirmed that this is happening with all members who are logged in except Mods/Admins. I musta did something wrong but I don't know where/how....I went over the mod coding and all looks well. I am running vb version 3.0.7. Any ideas on how to fix this? |
Great hack.
However, there isn't a 'forumhome_stats_thread' in index.php. I'm running 3.0.7. I even check an unedited version of index.php and it wasn't there. |
Thanks, my favorite hack of all time! :D
|
Quote:
with thi sinfo, works great. *installs* thank you |
great hack
|
If I am doing it on 3.0.6, where do I put the forumhome_pmshow part?
|
Code:
$globaltemplates = array( |
Trying to get this to work with 3.5 Any ideas? really miss this hack.
|
ZT has ported a version for 3.5 of this hack already - https://vborg.vbsupport.ru/showthrea...threadid=82767
|
Great mod. I installed it on 3.0.3 without a problem and it works perfectly. Thanks.
|
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|