Save a query for all guests on the post screen and that same saved query can also save a query in other occasions
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
add createPoll()
add addPollOptions()
Change the post controller to use these new functions
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Calendar events have subs
Global $user_settings
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
get rid of getTopic() in the Post controller in favor of a subs function and a little bit of code in the controller
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
add is_ignored check
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
selectMessages() can now be used to get messages before and after a msg in a topic
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Change from $smcFunc to $db
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Forgot globals
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Woops... like database() much better than a global :)
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Don't use $context in subs.
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Move is_ignored back to Post.controller.php
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
createPoll shouldn't have so many optional parameters
Also, $id_member should have been used in place of $user_info
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Need $id_poll
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Okay, so I didn't move it per se... I copied it.
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>
Fix query to send the right parameter. Small reordering of new poll code in Post controller.

Signed-off-by: Norv <a.w.norv@gmail.com>
Calendar title was htmlspecialchar-ed twice. Remove redundant updateSettings()
(calendar .subs functions trigger update themselves)

Signed-off-by: Norv <a.w.norv@gmail.com>
id_member wasn't retrieved in selectMessages.
Fix $only_approved expression.
Fix template to display the message body.

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #1 from norv/elkpr/425

Elkpr/425
Merge pull request #425 from joshuaadickerson/Post_new

Post