I have done a small patch to get this mod work together with
Opt-Out Forums from Get New/Get Daily.
I post it here, it might be usefull for some people (or you might even include it in the hack)...
Code:
--- Unread-posts.xml (Revision 10)
+++ Unread-posts.xml (Arbeitskopie)
@@ -174,7 +174,23 @@
}
unset($fids[$eforum]);
}
+
+ // Modification by liwo
+ // Exclude forums selected in addon optoutgnp (https://vborg.vbsupport.ru/showthread.php?t=91025)
+ if ($vbulletin->products['optoutgnp'])
+ {
+ if ($vbulletin->userinfo['excludeforumsgnp'])
+ {
+ $optout_forums = explode(',', $vbulletin->userinfo['excludeforumsgnp']);
+ foreach($optout_forums AS $id)
+ {
+ unset($fids[$id]);
+ }
+ }
+ }
+ // End modfication by liwo
+
$flist = implode(',', $fids);
$elist = implode(',', $elista);