Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

MYBB Advanced quick reply form mod plugin!

Ads
banner
banner
banner
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#1
Support Team
Guys here is a plugin for all of you interesting in adding text editor and smilies to MYBB quick reply form.

PHP Code:
<?php
// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
    die(
"Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook("showthread_start""advanced_quickreply");

function 
advancedquickreply_info()
{
    
    return array(
        
"name" => "Advanced Quick Reply",
        
"description" => "Turns quick reply form into an advanced one with smilies and text editor",
        
"website" => "http://www.letsforum.com",
        
"author" => "LetsForum",
        
"authorsite" => "http://letsforum.com",
        
"version" => "1",
        
"compatibility" => "16*"
    
);
}


function 
advancedquickreply_activate()
{
    require_once 
MYBB_ROOT."/inc/adminfunctions_templates.php";
    
    
find_replace_templatesets("showthread_quickreply""#".preg_quote("{&#092;$closeoption}</span>")."#i""{&#092;$closeoption}</span><br />{&#092;$clickablesmilies}");
    
find_replace_templatesets("showthread_quickreply""#</textarea>#i""</textarea>&#092;n{&#092;$codebuttons}");
}

function 
advancedquickreply_deactivate()
{
    require_once 
MYBB_ROOT."/inc/adminfunctions_templates.php";
    
    
find_replace_templatesets("showthread_quickreply""#".preg_quote("<br />{&#092;$clickablesmilies}")."#i"""0);
    
find_replace_templatesets("showthread_quickreply""#".preg_quote("&#092;n{&#092;$codebuttons}")."#i"""0);
}


function 
advanced_quickreply()
{
    global 
$mybb$forum$clickablesmilies$codebuttons$forumpermissions$thread$fid;
    
    if(
$forumpermissions['canpostreplys'] != && $mybb->user['suspendposting'] != && ($thread['closed'] != || is_moderator($fid)) && $mybb->settings['quickreply'] != && $mybb->user['showquickreply'] != '0' && $forum['open'] != 0)
    {
        
$codebuttons build_mycode_inserter();

        if(
$forum['allowsmilies'] != 0)
        {
            
$clickablesmilies build_clickable_smilies();
        }
    }
}
?>

Save this file as advancedquickreply.php. Upload this bad boy to ./inc/plugins directory then activate it from admin controls panel >> plugins

If you are interesting in learning how to make this happen without plugin please check this tutorial out. Advanced quick reply MYBB
maya Offline referral

Posts: 1,058
Joined: May 2013
Reputation: 34

#2
Posting Freak
Thanks buddy Marcus for these amazing plugins.
Spice Offline referral

Posts: 9
Joined: May 2014
Reputation: 0

#3
Junior Member
You are awesome. I've saved the whole thing, uploaded it to it's correct folder and it works brilliantly.
Spice Offline referral

Posts: 9
Joined: May 2014
Reputation: 0

#4
Junior Member
Hi, I don't think this works in 1.8
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#5
Support Team
Not sure since MYBB 1.8 had been only recently released. Will make new one.





User(s) browsing this thread: 1 Guest(s)