Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
show the comment box only on last page of discussion
fh111
✭✭
how would it work?
i am in /views/discussion/index.php and i guess i could put a && condition in there checking if on last page. i just don't get it enough yet to know what to put
} else if ($Session->IsValid() && $Session->CheckPermission('Vanilla.Comments.Add', TRUE, 'Category', $this->Discussion->PermissionCategoryID)) { echo $this->FetchView('comment', 'post');
any help appreciated, thanks
0
Answers
look in vanilla/applications/dashboard/modules/classpagermodule.php for guidance
if you
there is also a function if you can figure out how to access it.
someone with more knowledge could probably tell you more ..
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
interesting, thanks! i'll take a look at this when i have a minute