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

QuickReferences 1.2

7 Aug 2016 Edited
#1

You are viewing page #5

Show original post
Filename Size Downloads
19.31 KB 309
Glaumy, Enes Palit, Jopie And 2 others like this post
Shade 31 Jul 2020
#41
I don't usually provide support for third party plugins. If you want you can alter that plugin as follows. Find in inc/plugins/MinimalEditor/hooks_frontend.php:

$output $parser->parse_message($mybb->get_input('message'), $parser_options); 
Add after:

$output quickreferences_fill_placeholders($output); 
This should suffice.
Sama34 31 Jul 2020
#42
I see, yes, it should work. Ideally this could be handled from within QuickReferences but I could push a PR for your consideration at a later time.

Thanks.
Shade 31 Jul 2020
#43
I agree that QuickReferences should handle all cases. Problem is, if I put the placeholders filler within the parser itself there will be a spike in resource usage, because in some places (like showthread for example) it is called several times.

I need to have a look at another way to handle it.
Sama34 31 Jul 2020 Edited
#44
I was thinking of something around the following lines:
$plugins->add_hook('parse_message_end''quickreferences_parse_message_end');
function 
quickreferences_parse_message_end(&$message)
{
    global 
$mybb$plugins;

    if(
defined('THIS_SCRIPT') && THIS_SCRIPT == 'xmlhttp.php' && $mybb->get_input('action') == 'get_preview')
    {
        
$message quickreferences_fill_placeholders($message);
    }

    
$plugins->remove('parse_message_end''quickreferences_parse_message_end');

Edit: But indeed, this would be to "provide support for third party plugins", which you would like to avoid.
albano 8 Aug 2020
#45
Hello there,

Is there any way to make all references permanent links. For instance, when I upgrade MyBB and I have to disable to QuickRef plug in, all QuickRef links only show the threadID. I would prefer to have an option to make some QuickREf threadID permanent links without the threadID. Hopefully, I'm elaborating my question well.
Shade 8 Aug 2020
#46
No, there is not. QuickReferences is designed to follow through link and title changes, and the only way to do that is to reference to thread identifiers.
Eldenroot 27 Jan 2021 Edited
#47
Is possible to somehow (no option in ACP is needed, hardcoded is fine) to enable searching threads only from selected forums? Thank you @Shade

EDIT: Nevermind, here is the solution:

line 178
$query = $db->query("
SELECT t.subject, t.tid, f.name AS forumname, u.avatar
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."forums f ON f.fid = t.fid
LEFT JOIN ".TABLE_PREFIX."users u ON u.uid = t.uid
WHERE t.subject LIKE '%" . $db->escape_string($mybb->input['query']) . "%' AND t.closed NOT LIKE 'moved|%' AND t.fid in (10, 11, 99, 101) AND {$unapproved_where} {$permsql}
ORDER BY t.sticky DESC, t.lastpost
LIMIT 10
");

where t.fid are IDs of your forums
Shade 28 Jan 2021
#48
It's cleaner if you add your where statement to the $permsql array.
Eldenroot 29 Jan 2021
#49
Would you share your idea on example?