I ilovecats Chevereto Member Apr 9, 2015 #1 how do i add 160x600 banner to right and left of image pages?
Rodolfo ⭐ Chevereto Godlike Chevereto Staff Administrator Apr 9, 2015 #2 You will need to customize the app/themes/Peafowl/image.php file.
Rodolfo ⭐ Chevereto Godlike Chevereto Staff Administrator Apr 10, 2015 #4 Sorry is app/themes/Peafowl/views/image.php
I ilovecats Chevereto Member Apr 10, 2015 #5 thanks can i just past javascript code ino php or do i need to format it?
Rodolfo ⭐ Chevereto Godlike Chevereto Staff Administrator Apr 10, 2015 #6 You can directly use raw js code if you put it outside the <?php ?> tags.
I ilovecats Chevereto Member Apr 12, 2015 #7 if i want to have banner to left of image, what css or code can i use?
SMP 💖 Chevereto Fan Apr 13, 2015 #8 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
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
SMP 💖 Chevereto Fan Apr 13, 2015 #9 But remember it breaks the site on some devices... get around that by using media queries You would be getting something like this Last edited: Apr 13, 2015
But remember it breaks the site on some devices... get around that by using media queries You would be getting something like this
Rodolfo ⭐ Chevereto Godlike Chevereto Staff Administrator Apr 13, 2015 #10 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"
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"
I ilovecats Chevereto Member Apr 13, 2015 #11 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?
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?
SMP 💖 Chevereto Fan Apr 18, 2015 #16 add your ad code (in a text file zip it and upload it) here will give you the edited image.php file
SMP 💖 Chevereto Fan Apr 19, 2015 #18 I asked for your adcode not the image.php file... i already uploaded the changed image.php file above for you
I asked for your adcode not the image.php file... i already uploaded the changed image.php file above for you
I ilovecats Chevereto Member Apr 19, 2015 #19 my bad here it is Attachments 160x600.zip 265 bytes · Views: 1
SMP 💖 Chevereto Fan Apr 19, 2015 #20 replace your image.php with the one in this zip. Attachments image.zip 4 KB · Views: 3