• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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