Search in support tickets

#100 – No image

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 08 November 2017 11:10 CET
veselinovm
Hi,
I tried to change nopic.gif, but in AdDetail page there is no pic, only in carusel.

How to add same picture if customer do not upload photo?

Thank you,
Milos
Custom Fields
Joomla Version
3.7.5
PHP Version
7
Product
AdsManager
Product Version
3.11
Thursday, 09 November 2017 15:28 CET
loic
Hello,

The code need to be customised a little.

In the next version of AdsClarity, when there is no image for an ad, the space reserved for the images will not be display and the right column will take the space available.

The next version ill soon be released, we are currently fixing the last issues.

Best regards.
 
Friday, 10 November 2017 09:25 CET
veselinovm
Could you please send me a code to fix, now, and after upgrading will be fixed anyway.
I would appreciate if you could do it.
It would be better to place in settings to choose "no image" file (like for carusel)
Thanks,
Milos
Monday, 13 November 2017 15:55 CET
loic
Hello,

you need to replace all the code for the images by that:
<div class="col-md-8">
			<?php
				if (count($this->content->images) == 0)
					$image_found = 0;
				else
					$image_found = 1;
				if ($image_found == 0) {
				?>
					<div class="row detailDesc rowDesc">
						<div class="col-md-12">
							 <?php if (!empty($this->fDisplay[3])) {
								$strtitle = @JText::_($this->positions[2]->title);
								if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>"; 
								foreach($this->fDisplay[3] as $field) {
									$c = $this->field->showFieldValue($this->content,$field); 
									if (($c !== "")&&($c !== null)) {
										$title = $this->field->showFieldTitle(@$this->content->catid,$field);
										echo "<span class='f".$field->name."'>";
				                        if ($title != "")
											echo "<b>".htmlspecialchars($title)."</b>: ";
										echo "$c<br/>";
				                        echo "</span>";
									}
								}
							}?>
						</div>
					</div>
				<?php } else { ?>
				<?php 
					switch($this->conf->image_display)
					{
						default:
							$thumbnailcarousel = "";?>
							<div id="adgallery">
							<a class="btn btn-primary" id="fullscreen"><span class="glyphicon glyphicon-fullscreen"></span></a>
							<div id="slider" class="flexslider">
	  							<ul class="slides">
							<?php 
							break;
					}
					foreach($this->content->images as $img)
					{
						$thumbnail = JURI_IMAGES_FOLDER."/".$img->thumbnail;
						$image = JURI_IMAGES_FOLDER."/".$img->image;
						switch($this->conf->image_display)
					    {
					    	default:
					    		?>
					    		<li>
									<span class="alignver"></span>
					    			<img u="image" src="/<?php echo $image?>" />
					    		</li>
					    		<?php 
								$thumbnailcarousel .= '<li><img u="thumb" src="'.$thumbnail.'" /></li>';
					    		break;
						}
					}
					switch($this->conf->image_display)
					{
						default:
							?>
							</div>
							<?php 
							if (count($this->content->images) > 1) { 
							?>
							
							
							<div id="carousel" class="flexslider">
	 						 <ul class="slides">
							<?php echo $thumbnailcarousel ?>
							</div>
							<?php
							}
							?>
							</div>
							<?php 
						break;
					}
				}
			?>
        </div>


Best regards.
 
Tuesday, 14 November 2017 11:15 CET
veselinovm
Getting 404 error in console for ads that have image, for those ads that has no image, there is no replacement with "no-image" file.

Never mind, will wait for an update.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.