• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Working BB-Code (Thumbnail+Link)

Avast

👽 Chevereto Freak
In Chevereto the BB-Code of Thumbnail + Link doesn't work.



What is wrong?
url="h**p://yoursite.com/images/image.png"

To fix it, go to: chevereto/includes/templacte.functions.php

go to line: 373

Code:
/**
 * get_thumb_bbcode
 * Returns the thumb + img link as bbcode
 */
function get_thumb_bbcode() {
    return htmlentities('[url="'.get_img_url().'"][img]'.get_thumb_url().'[/img][/url]');
}
function show_thumb_bbcode() {
    echo get_thumb_bbcode();
}

delete the " in

Code:
return htmlentities('[url="'.get_img_url().'"][img]'.get_thumb_url().'[/img][/url]');

now it has to look like:

Code:
return htmlentities('[url='.get_img_url().'][img]'.get_thumb_url().'[/img][/url]');


Code:
/**
 * get_thumb_bbcode
 * Returns the thumb + img link as bbcode
 */
function get_thumb_bbcode() {
    return htmlentities('[url='.get_img_url().'][img]'.get_thumb_url().'[/img][/url]');
}
function show_thumb_bbcode() {
    echo get_thumb_bbcode();
}

now chevereto displays the right code on BB-Code (Thumbnail + Link)
 
This fix will be included on 2.0.4, thanks for your help 🙂
 
Back
Top