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

Thread: 

Smilies In Quick Reply

Ads
Spice Offline referral

Posts: 9
Joined: May 2014
Reputation: 0

#1
Junior Member
Yes I know you can add them from the quick reply by clicking on preview post but is there a way to add a smilie box to the quick reply without having to do that?
marcus_avrelius Offline referral

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

#2
Support Team
It will require a plugin so please be patient I am working on it.
Spice Offline referral

Posts: 9
Joined: May 2014
Reputation: 0

#3
Junior Member
That is so awesome of you. Smile
marcus_avrelius Offline referral

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

#4
Support Team
Hi here is a plugin that will add text editor and smilies to MYBB quick reply form!

Advanced quick reply MYBB

Let me know if you are only interesting in adding smilies not text editor!

I have modified the plugin to only add smilies BUT it will not work if you don't have text editor showing in quick reply!!!!!!!

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 Only Smiles",
        
"description" => "Turns quick reply form into an advanced one with smilies only not 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}");
}

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


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

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

Posts: 9
Joined: May 2014
Reputation: 0

#5
Junior Member
Hi Marcus. Will this work in 1.8?
marcus_avrelius Offline referral

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

#6
Support Team
Not sure will have to test on MYBB 1.8.





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