Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

Alert Modal Read/Delete Buttons

31 Oct 2019
#1
This issue is marked as solved
Shade, this is kinda unrelated to the plugin but can I get a peek at your Alert Modal Content template or can you help me figure out how you got the read/delete check mark and X in there?
Eldenroot 6 Nov 2019
#31
Yeah, I am lost with that... :(
RocketFoot 6 Nov 2019
#32
Still no luck? I am not super skilled with code but I compared line by line to mine and it looks good! I can't see anything out of line. We need another set of eyes to check it out.
Eldenroot 6 Nov 2019 Edited
#33
Guys, just a quick technical question - all what I need for read/delete AJAX is this part of code in myalerts.php file? I am trying to catch up the latest GitHub MyAlerts code.

if ($mybb->get_input('action') == 'myalerts_mark_read') {
        header('Content-Type: application/json');

        $id = $mybb->get_input('id', MyBB::INPUT_INT);
        $userId = (int) $mybb->user['uid'];

        $toReturn = array();

        if ($id > 0) {
            if (!verify_post_check($mybb->get_input('my_post_key'), true)) {
                $toReturn = array(
                    'errors' => array($lang->invalid_post_code),
                );
            } else {
                MybbStuff_MyAlerts_AlertManager::getInstance()->markRead([$id]);

                $toReturn = array(
                    'success'  => true
                );
            }
        } else {
            $toReturn = array(
                'errors' => array($lang->myalerts_error_alert_not_found),
            );
        }

        echo json_encode($toReturn);
    }
Shade 6 Nov 2019
#34
That’s just the backend code. You also need to alter the frontend JS accordingly. Also, that’s just for marking alerts as read.
Eldenroot 6 Nov 2019
#35
I know Shade, I get it working, now I am going to tidy up a code little bit.
RocketFoot 8 Nov 2019
#36
One more question, Shade...where did you change the width of the popup modal? I can't seem to find it??
Shade 8 Nov 2019
#37
I use my own modal, it’s not the default one. It’s probably possible to change the width for all modals in the JS module if CSS changes are not effective, but I can’t really tell now as I am not using it.
Eldenroot 8 Nov 2019
#38
It is in myalerts modal template - width

Or just use CSS in your global.css to use your desire width