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

HTML mail over plain text

9 Sep 2017
#1
Hello,

I am struggling with this issue for quit a while now ...
I would like to get rid of the boring plain text automated mailing which is included into mybb.

I attended the question on the mybb community forums, but nobody seemed to get an answer to it ... In this stage I can only change the mail templates but not the way how it looks like because CSS and HTML markup is excluded in plain text mail headers.

kind regards
Shade 7 Oct 2017
#21
In PHP you join different strings with a dot:

$var 'i am ' 'happy'// i am happy 
Eldenroot likes this post
Eldenroot 7 Oct 2017
#22
@Shade - OK, thank you very much for your reply. Can you please show me how to edit the code above (HTML support for emails) in your way? I use MyBB Patches plugin. Thank you very much!
Shade 7 Oct 2017
#23
It's quite long to wrap them all, so if you can paste your code I can have a look at it and edit it accordingly which is a faster operation overall.
Eldenroot 7 Oct 2017
#24
@Shade - I tried it last time and it works, I had to remove CSS classes from <head> area and replaced them with styles for every component. Really weird, but it works now.

I have last 2 questions:
1) is possible to get a link to a user (user profile) who replied to the thread and use this variable in my email template
2) how to set how many characters are showed in the email before they are parsed and the (for more visit the thread) is showed.

Thank you!
Shade 8 Oct 2017
#25
1) inc/datahandlers/post.php, find:

$emailmessage $lang->sprintf($emailmessage$subscribedmember['username'], $post['username'], $mybb->settings['bbname'], $subject$excerpt$mybb->settings['bburl'], str_replace("&amp;""&"get_thread_link($thread['tid'], 0"newpost")), $thread['tid'], $post_code); 
Replace with:

$profilelink build_profile_link($post['username'], $post['uid']);
$emailmessage $lang->sprintf($emailmessage$subscribedmember['username'], $profilelink$mybb->settings['bbname'], $subject$excerpt$mybb->settings['bburl'], str_replace("&amp;""&"get_thread_link($thread['tid'], 0"newpost")), $thread['tid'], $post_code); 
2) There's a setting named "subscribeexcerpt" which you can tune to whatever characters you may like.
Eldenroot likes this post
Eldenroot 8 Oct 2017 Edited
#26
Thank you very much, I will try ASAP and let you know. Have a nice day!

@Shade - I didn't know about this setting in ACP, I thought it is hard-coded. So "0" is for unlimited? I hope so, there is no info in the text description. I will try.

[Image: LV9xmCT.png]