• 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
  • 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

You can also browse from your computer or add image URLs. to mainpage

resminnet

Chevereto Member
hi.

As seen in the funny picture. 🙂

You can also browse from your computer or add image URLs.

How to add to the main page


Ekran Alıntısı.PNG
 
Unfortunately I have not yet fully understood what you want to achieve with this thread.

Would you like to have explained how to bring the button to the start page?
Or would you like to show others that it is possible.
 
Unfortunately I have not yet fully understood what you want to achieve with this thread.

Would you like to have explained how to bring the button to the start page?
Or would you like to show others that it is possible.
Thank you. Yes how i can bring the button to the start page ?
 
Copy file /app/themes/Peafowl/views/index.php to /app/themes/Peafowl/overrides/views
Edit the new index.php
The content of the buttons starts at line 24.
[CODE lang="php" title="index.php"] <div class="home-buttons">
<?php
$homepage_cta = [
'<a',
CHV\getSetting('homepage_cta_fn') == 'cta-upload' ? (CHV\getSetting('upload_gui') == 'js' ? 'data-trigger="anywhere-upload-input"' : 'href="' . G\get_base_url('upload') . '"') : 'href="' . CHV\getSetting('homepage_cta_fn_extra') . '"',
(CHV\getSetting('homepage_cta_fn') == 'cta-upload' and !CHV\getSetting('guest_uploads')) ? 'data-login-needed="true"' : null,
'class="btn btn-big ' . CHV\getSetting('homepage_cta_color') . (CHV\getSetting('homepage_cta_outline') ? ' outline' : null) . '">' . (CHV\getSetting('homepage_cta_html') ?: _s('Start uploading')) . '</a>'
];
echo join(' ', $homepage_cta)
?>
</div>[/CODE]
Edit this to:
[CODE lang="php" title="new index.php" highlight="11"] <div class="home-buttons">
<?php
$homepage_cta = [
'<a',
CHV\getSetting('homepage_cta_fn') == 'cta-upload' ? (CHV\getSetting('upload_gui') == 'js' ? 'data-trigger="anywhere-upload-input"' : 'href="' . G\get_base_url('upload') . '"') : 'href="' . CHV\getSetting('homepage_cta_fn_extra') . '"',
(CHV\getSetting('homepage_cta_fn') == 'cta-upload' and !CHV\getSetting('guest_uploads')) ? 'data-login-needed="true"' : null,
'class="btn btn-big ' . CHV\getSetting('homepage_cta_color') . (CHV\getSetting('homepage_cta_outline') ? ' outline' : null) . '">' . (CHV\getSetting('homepage_cta_html') ?: _s('Upload images')) . '</a>'
];
echo join(' ', $homepage_cta);
?>
<a data-modal="form" class="btn btn-big" data-target="anywhere-upload-paste-url">YOURE TEXT</a>
</div>[/CODE]
After that, you just have to adjust it as you like.
 
Thank you very much, working good 👏👏 How i can insert all language, Is this possible?

Ekran-Alintisi.png
 
You have to create a variable for each language.

There you will find the languages: \app\content\languages
For each language you prepare a file in the "overrides" folder.
You can find an explanation in the folder as a txt file.

PHP:
<a data-modal="form" class="btn btn-big" data-target="anywhere-upload-paste-url"><?php echo _s('NAME OF BUTTON IN ENGLISH'); ?></a>
The text of the button would then have to be changed again, as the following example shows.
 
Back
Top