Great Mod, I was looking for it Today!! :up::up::up:
Thank You Very Much
kall For Sharing It, and also a Version for vB 3.6 in the Winzip File (inside the Winzip File there is a 3.5 and a 3.6 Version of the Mod)!! :up::up::up:
I'll Post a Link to this Thread in all the Threads asking for what this Mod do!! :up:
Works OK in vB 3.6.7 PL1!! :up:
One Additional Thing that Could be Added for Updates, and is to Exclude a list of Usergroups to be Affected by the Plugin "
Time-Based Style Fetch"!!
I Share with you what that Final Code of the Plugin Could Be, (in this Example Excluding Usergroups
5,6, and 7), notice the "!" to indicate "Not a Member Of", that "!" could not be Used to Indicate the Usergrups that Will be Affected (but I like more the Excluded Usergroups Logic):
Code:
if (!is_member_of($vbulletin->userinfo, explode(',','5,6,7')))
{
$nzbstyle_hour = vbdate("G");
if ($vbulletin->options['timestyle_onoff'] == 1){if( $nzbstyle_hour > $vbulletin->options['timestyle_start'] && $nzbstyle_hour < $vbulletin->options['timestyle_stop'] ) { $styleid = $vbulletin->options['timestyle_dayid']; }
else
{ $styleid = $vbulletin->options['timestyle_nightid']; }
}
}
And with an Option "
excluded_groups_style_change" created for this Mod next to the Other Options in the "Style and Language Options", "
$vbulletin->options['excluded_groups_style_change']":
Code:
if (!is_member_of($vbulletin->userinfo, explode(',',$vbulletin->options['excluded_groups_style_change'])))
{
$nzbstyle_hour = vbdate("G");
if ($vbulletin->options['timestyle_onoff'] == 1){if( $nzbstyle_hour > $vbulletin->options['timestyle_start'] && $nzbstyle_hour < $vbulletin->options['timestyle_stop'] ) { $styleid = $vbulletin->options['timestyle_dayid']; }
else
{ $styleid = $vbulletin->options['timestyle_nightid']; }
}
}
My Best Regards!!