• 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

Embed.tpl editing

imagonos

Chevereto Member
Hello,

I tried to edit the /image embed codes but the only part of the code that I find somewhat related to the embed function is this one:

Code:
<?php if(CHV\getSetting('theme_show_embed_content')) { ?>
  <div id="tab-codes" class="tabbed-content">
       
       <div class="growl static text-align-center margin-bottom-30 clear-both<?php if(get_image()['album']['privacy'] == 'public' or get_image()['album']['privacy'] == NULL) echo " soft-hidden"; ?>" data-content="privacy-private"><?php _se('Note: This content is private. Change privacy to "public" to share.'); ?></div>
       
     <div class="panel-share c15 phablet-c1 grid-columns margin-right-10">
         <?php
           foreach(get_embed() as $embed) {
         ?>
  <div class="panel-share-item">
     <h4 class="pre-title"><?php echo $embed['label']; ?></h4>
           <?php foreach($embed['entries'] as $entry) { ?>
  <div class="panel-share-input-label copy-hover-display">
  <h4 class="title c5 grid-columns"><?php echo $entry['label']; ?></h4>
  <div class="c10 phablet-c1 grid-columns">
  <input id="<?php echo $entry['id']; ?>" type="text" class="text-input" value="<?php echo $entry['value']; ?>" data-focus="select-all">
               <button class="copy-input" data-action="copy" data-action-target="#<?php echo $entry['id']; ?>">copy</button>
  </div>
  </div>

All I find is that this code is calling for $embed and theme_show_embed_content which I can't really figure out how to edit.
Any help would be appreciated!

Regards,
imagonos
 
Hello,

I'm trying to remove most of the embed options, since they aren't required by our users. I'd like to leave the full BBcode and maybe the direct link options viewable on the embed tab, but nothing else. Is there a way to do this?

Thanks in advance Rodolfo,
imagonos
 
The embed tab for the image view is controlled at app/routes/route.image.php look at the bottom ;)
 
Hello,

Got it! Thanks for pointing me out the route Rodolfo, you are the best :)

Best regards,
imagonos
 
Back
Top