MyBB Community Forums

Full Version: Reply image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to have a text, and remove image from Reply button. How can I do that ?
You can use CSS buttons for it.
Please explain in details
(2012-02-12, 03:00 PM)Gooseman Wrote: [ -> ]Please explain in details

only in quote post?

in reply quote you can use this...

http://community.mybb.com/thread-87961-p...#pid643415

in ajax quote this

<?php

if(!defined("IN_MYBB"))
{
    die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

/**
 * Plugin info
 *
 */
function no_image_quote_info()
{
    return array(
                "name" => "no image quote",
                "description" => "",
                "website" => "",
                "author" => "",
                "authorsite" => "",
                "version" => "0.1",
                "guid" => "",
                "compatibility" => "16*"
            );
}

$plugins->add_hook('xmlhttp', 'no_image_quote_do');

function no_image_quote_do()
{
    global $mybb;
    if($mybb->input['action'] != 'get_multiquoted') return;
    ob_start();
    
    function no_image_quote_do_shutdown()
    {
        global $message;
        if(!$message)
        {
            ob_end_flush();
            return;
        }
        
        ob_end_clean();
        $message = preg_replace("#\[img\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "", $message);
        echo $message;
    }
    register_shutdown_function('no_image_quote_do_shutdown');
} 
?>

Save the code as no_image_quote.php and upload it to the plugins folder.

I dont want remove img... but convert to link...
help me in this http://community.mybb.com/thread-113273.html