Search code examples
phphtmlstringimagephpbb3

How to change this PHP string for an image?


Instead of the string "Overview" I want to set it to an image, is that possible and how can I do it?

if (empty($lang) || !is_array($lang)) {
    $lang = array();
}

$lang = array_merge($lang, array(
    'UCP_MAIN' => 'Overview',
));

Solution

  • In the file language/en/ucp.php just replace the string with a full img tag as follows:

    'UCP_MAIN' => '<img src="http://lorempixel.com/100/100/sports/1" />',
    

    Notice: This solution is tested on version 3.0.13-PL1.