Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [RESOLVE] How to hide image & description preview

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVE] How to hide image & description preview

More
10 years 6 months ago #20118 by hadia9683
Replied by hadia9683 on topic How to hide image and description preiview
I have this code on ads manger default list page . php

if (isset($content->images[0])) {
$img = JURI_IMAGES_FOLDER."/".$content->images[0]->thumbnail;
} else if ($this->conf->nb_images > 0) {
$img = ADSMANAGER_NOPIC_IMG;
}
?>


<tr class="<?php echo $classcontent;?> trcategory_<?php echo $content->catid?>">
<td>
<div class="row top10">
<div class="col-md-4">
<a href="<?php echo $linkTarget ?>"><img src="<?php echo $img?>" alt="<?php echo htmlspecialchars($content->ad_headline) ?>" class="img-responsive" /></a>
</div>
<div class="col-md-8">
<?php echo '<a href="'.$linkTarget.'">'?><h3><?php echo htmlspecialchars($content->ad_headline);?></h3></a>
<?php if(!isset($this->conf->display_category_list_label) || $this->conf->display_category_list_label == 1): ?>
<span class="adsmanager-cat"><?php echo "(".$content->parent." / ".$content->cat.")"; ?></span>
<?php endif; ?>
<p><?php
$content->ad_text = strip_tags(str_replace ('<br />'," ",$content->ad_text));
$af_text = JString::substr($content->ad_text, 0, 50);
if (strlen($content->ad_text)>50) {
$af_text .= "[...]";
}
echo htmlspecialchars($af_text);
?></p>
</div>
</div>
The following user(s) said Thank You: adarr
More
10 years 6 months ago #20127 by loic
Hello,

I'm sorry but i don't understand your question, could you give me more details ?

Best regards.
The following user(s) said Thank You: adarr
More
10 years 6 months ago #20133 by hadia9683
Replied by hadia9683 on topic How to hide image and description preiview
You provided me a condtion to add in adsmanager list page and said above the mentioned code add that condition.

On my page i am not able to find this code, My code is different
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20144 by loic
Hello,

Sorry, you need to put this code in the condition :
<div class="col-md-4">
<a href="<?php echo $linkTarget ?>"><img src="<?php echo $img?>" alt="<?php echo htmlspecialchars($content->ad_headline) ?>" class="img-responsive" /></a>
</div>

Best regards.
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20165 by hadia9683
Replied by hadia9683 on topic How to hide image and description preiview
I am confused :( . I used the code llike below
<?php
if(!($content->catid == 1 || $content->catid == 53 || $content->catid == 14)) {

<div class="col-md-4">
<a href="<?php echo $linkTarget ?>"><img src="<?php echo $img?>" alt="<?php echo htmlspecialchars($content->ad_headline) ?>" class="img-responsive" /></a>
</div>
}
?>


but see the results
Attachments:
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20188 by loic
Hello,

You need to close the php tag before the HTML and reopen it after, like this:
<?php
if(!($content->catid == 1 || $content->catid == 53 || $content->catid == 14)) {
?>
<div class="col-md-4">
<a href="<?php echo $linkTarget ?>"><img src="<?php echo $img?>" alt="<?php echo htmlspecialchars($content->ad_headline) ?>" class="img-responsive" /></a>
</div>
<?php
}
?>

Best regards.
The following user(s) said Thank You: adarr
Time to create page: 0.082 seconds
Powered by Kunena Forum