• 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.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Add BBcode or modify (Chevereto 3.14.x)

Usernet

Chevereto Fan
Hello

I would like to add a BBcode or modify existing ones.

I do not want to have a shortened link of the urls that I diffuse on the forums :

Code:
[url=https://domaine.com/image/hlA][img]https://domaine.com/2019/11/29/hlA.th.png[/img][/url]

To arrive at this result:
Code:
[url=https://domaine.com/2019/11/29/hlA.png][img]https://domaine.com/2019/11/29/hlA.th.png[/img][/url]
Or:
Code:
[url=https://domaine.com/2019/11/29/hlA.png][img]https://domaine.com/2019/11/29/hlA.md.png[/img][/url]

How can I do ?

Thank you in advance
 
Yes...

I tried to replace this:

Code:
            'bbcode-embed-thumbnail' => [
                'label' => _s('BBCode thumbnail linked'),
                'template' => '[url=%URL_SHORT%][img]%THUMB_URL%[/img][/url]',
                'size' => 'thumb',

with that:
Code:
            'bbcode-embed-thumbnail' => [
                'label' => _s('BBCode thumbnail linked'),
                'template' => '[url=%URL%][img]%THUMB_URL%[/img][/url]',
                'size' => 'thumb',
but that does not seem to work 😒
 
ah i have found...
File: app/routes/route.image.php
in line: 306 OR 318
AND
File: lib/G/functions.php
in line: 443

But this in line 443 isnt works :(

But you can in File: app/routes/route.image.php this
PHP:
                    #'value' => $embed_full_linked['bbcode'],
                    'value' => '[url='.$image['url'].'][img]'.$image['url'].'[/img][/url]',
 
thx a lot @DeCysos ;)

file route.image.php in folder app > routes

in line 318 :
Code:
'value' => $embed_full_linked['bbcode'],
change :
Code:
'value' => '[url='.$image['url'].'][img]'.$image['url'].'[/img][/url]',

in line 342 :
Code:
'value' => $embed_medium_linked['bbcode'],
change :
Code:
'value' => '[url='.$image['url'].'][img]'.$image['medium']['url'].'[/img][/url]',

in line 367 :
Code:
'value' => $embed_thumb_linked['bbcode'],
change :
Code:
'value' => '[url='.$image['url'].'][img]'.$image['thumb']['url'].'[/img][/url]',
 
Ok after multi-upload

file embed.php in folder app > themes > Peafowl > snippets

in line 56 :

Code:
    'bbcode-embed-full' => [
                'label' => _s('BBCode full linked'),
                'template' => '[url=%URL_SHORT%][img]%URL%[/img][/url]',
                'size' => 'full',
            ],
            'bbcode-embed-medium' => [
                'label' => _s('BBCode medium linked'),
                'template' => '[url=%URL_SHORT%][img]%MEDIUM_URL%[/img][/url]',
                'size' => 'medium',
            ],
            'bbcode-embed-thumbnail' => [
                'label' => _s('BBCode thumbnail linked'),
                'template' => '[url=%URL_SHORT%][img]%THUMB_URL%[/img][/url]',
                'size' => 'thumb',
            ],
change :
Code:
     'bbcode-embed-full' => [
                'label' => _s('BBCode full linked'),
                'template' => '[url=%URL%][img]%URL%[/img][/url]',
                'size' => 'full',
            ],
            'bbcode-embed-medium' => [
                'label' => _s('BBCode medium linked'),
                'template' => '[url=%URL%][img]%MEDIUM_URL%[/img][/url]',
                'size' => 'medium',
            ],
            'bbcode-embed-thumbnail' => [
                'label' => _s('BBCode thumbnail linked'),
                'template' => '[url=%URL%][img]%THUMB_URL%[/img][/url]',
                'size' => 'thumb',
 
Back
Top