Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
text-only mode to block a category too
how easy would this be? i would like that when someone clicks the 'text-only' mode link, that the app switches to text-only mode, and a particular category gets blocked. this would then be reversed when turning text-only mode off again.
i have relabeled 'text-only' to 'work-safe', so i would like the link to also block the 'nsfw' category.
thanks in advance!
i have relabeled 'text-only' to 'work-safe', so i would like the link to also block the 'nsfw' category.
thanks in advance!
0
This discussion has been closed.
Comments
if ($HtmlOn == '1')
then?
this is a snippet from your code, mangled slightly...
if ( ('index.php' == $Context->SelfUrl) && !in_array(ForceIncomingString('CategoryID', '') , array('4')) && ($HtmlOn == '0'))
4 is the category that i wish to hide, this can be an array (as it was originally - '1, 3, 6' etc).
thanks, mister!
Try this:
if ( ('index.php' == $Context->SelfUrl) && !in_array(ForceIncomingString('CategoryID', '') , array('4')) && !$Context->Session->User->Preference("HtmlOn") )