• 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

adding 160x600 banner code

You will need to customize the app/themes/Peafowl/image.php file.
 
You can directly use raw js code if you put it outside the <?php ?> tags.
 
To add add code on left and right do this...

Edit this file in your theme views/image.php


Find
Code:
<div id="image-viewer-container" class="image-viewer-main image-viewer-container">

Add above
Code:
<?php $ad_box_img = get_image()["width"]; $ad_box = $ad_box_img + 350; ?>
  <div style="margin-left: auto; margin-right: auto; width: <?php echo $ad_box; ?>px;">
<div style="float:left;">LEFT AD CODE HERE</div>
<div style="display: inline-block">

Then find this
Code:
<?php
        }
    ?>
    <?php
        if(!get_image()['nsfw'] or (get_image()['nsfw'] and CHV\getSetting('show_banners_in_nsfw'))) {
            CHV\Render\show_banner('image_image-viewer_foot');
        }
    ?>

Add above
Code:
</div>
<div style="float: right;">RIGHT AD CODE HERE</div>
</div>

OR

Attached image.php in the zip below... open it change the LEFT AD CODE HERE and RIGHT AD CODE HERE and upload it
 

Attachments

  • image.zip
    4 KB · Views: 9
But remember it breaks the site on some devices... get around that by using media queries

You would be getting something like this

Capture.JPG
 
Last edited:
FYI Chevereto has media queries. [480,768,992,1200,1500] => ["phone","phablet","tablet","laptop","desktop"]

So if you want to show something just in "phone" and "phablet" you use class="hidden phone-show phablet-show"
 
thnak but it made the banner all the way left with huge space until image and image was pushed 1/3 of page on right... any ideas?
 
add your ad code (in a text file zip it and upload it) here will give you the edited image.php file
 
I asked for your adcode not the image.php file... i already uploaded the changed image.php file above for you
 
replace your image.php with the one in this zip.
 

Attachments

  • image.zip
    4 KB · Views: 3
Back
Top