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.
CategoryRoles
Max_B
New
CategoryRoles
0
Comments
Mark never commented this delegate request and I don't know if he forgot to add it or what…
Anyway, I'm planning to rewrite part of this extension to use the object factory instead of delegate, mostly because this would allow a much better database optimization, but I don't know when I'll have time for.
I'm trying to make a blog extension and i really need this functionality, Ability to be commented and read by all, but posted by just one role
About the object factory: by overloading the standard class by a custom one, I'd be able to add the required database join and save the delegate need. Also a single database request is much better than 2 or 3.
if ($Context->SelfUrl == "post.php") { function discussionform_hidecategory($DiscussionForm) { unset($cs->aOptions[$Configuration['APPLICATION_PATH']]); } $Context->AddToDelegate('DiscussionForm','DiscussionForm_PreCategoryRender','discussionform_hidecategory'); }
well i obviously tried and it doesnt. probably because i dont get the $cs object. is this why you didnt use delegate?
Anyway, I MUST correct this for long now. I'll try to do it today.
There's also a post by MySchizoBuddy in the other discussion thread that says the delegate was added into the Vanilla core? I can't see the new role based controls at all.
Any ideas?
Did you enable the extension?