The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Display count of unread posts in welcome box Details »» | |||||||||||||||||||||||||||
Display count of unread posts in welcome box
Developer Last Online: Nov 2023
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. Show Your Support
|
Comments |
#162
|
||||
|
||||
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? |
#163
|
|||
|
|||
Found finally a way to opt out forumIDs
find Code:
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 Code:
AND thread.forumid NOT IN (xx,xx) |
#164
|
||||
|
||||
Quote:
Bob |
#165
|
||||
|
||||
Not yet.
|
#166
|
|||
|
|||
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: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#167
|
|||
|
|||
probably the most missed mod on my site.. Can't wait untill 3.6 is out
|
#168
|
||||
|
||||
Quote:
|
#169
|
|||
|
|||
Quote:
|
#170
|
||||
|
||||
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. |
#171
|
|||
|
|||
Quote:
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:
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))) 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:
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'; 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:
$vbulletin->GPC['exclude'] .= ',8'; *** 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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|