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 / Display Error - new posts

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.

Display Error - new posts

More
10 years 9 months ago #18347 by tompap
Replied by tompap on topic Display Error - new posts
Hello,

if these are ads from the grid view

please edit views/list/tmpl/default_grid.php
locate "ad_text"
and replace php code by

<?php
$content->ad_text = strip_tags(str_replace ('<br />'," ",$content->ad_text));
$af_text = JString::substr($content->ad_text, 0, 100);
if (strlen($content->ad_text)>100) {
$af_text .= "[...]";
}
echo $af_text;
?>

I think if your website there is no strip_tags we add it for next version to support WYSIWYG editor in addition to classic textarea
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18585 by wienmedia
Replied by wienmedia on topic Display Error - new posts
It dont work, same problem than before
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18695 by wienmedia
Replied by wienmedia on topic Display Error - new posts
It is still not working, please fix this error
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18705 by loic
Replied by loic on topic Display Error - new posts
Hello,

Could you copy paste the code here and tell us which file you modified ?
Also, if you are using AdsClarity, the file you need to modify is templates/adsclarity/html/list/default_grid.php and not views/list/tmpl/default_grid.php

Best regards.
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18717 by wienmedia
Replied by wienmedia on topic Display Error - new posts
In the Path "template/html/ " there is no folder called list.
I fpund them in ../com_adsmanager/list.

So this is the code,but it dont works:
<?php
/**
 * @package                AdsManager
 * @copyright        Copyright (C) 2010-2014 Juloa.com. All rights reserved.
 * @license                GNU/GPL
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
?>
<div class="row multi-columns-row">
    <?php
    $i = 1;
        $top_array = array();
        $normal_array = array();
        foreach($this->contents as $content) {
                if (isset($content->top) && $content->top == 1) {
                        $top_array[] = $content;
                } else {
                        $normal_array[] = $content;
                }
        }
        shuffle($top_array);
        $all_content = array_merge($top_array,$normal_array);
        foreach($all_content as $content){
        $linkTarget = TRoute::_( "index.php?option=com_adsmanager&view=details&id=".$content->id."&catid=".$content->catid);
 
        if (function_exists('getContentClass')) {
                $classcontent = getContentClass($content,"grid");
                $classcontent = str_replace(' grid_highlight','',$classcontent);
                $classcontent = str_replace(' grid_featured','',$classcontent);
                $classcontent = str_replace(' grid_top',' grid_top grid_featured grid_highlight',$classcontent);
        } else {
                $classcontent = "";
        }
    ?>
 
                <div class="adsListGridWrapper <?php echo $classcontent?> col-xs-12 col-sm-6 col-md-4 col-lg-4">
                    <div class="row">
                        <?php
                            if ((($this->conf->show_new == true)&&($this->isNewcontent($content->date_created,$this->conf->nbdays_new))) || ($this->conf->show_hot == true)&&($content->views >= $this->conf->nbhits)) {
                                echo "<div class='gridNewHot'>";
                                    $iconflag = false;
                                    if (($this->conf->show_new == true)&&($this->isNewcontent($content->date_created,$this->conf->nbdays_new))) {
                                        echo "<div class='newAd'><i class='glyphicon glyphicon-star'></i> <strong>".JText::_('Neu bei informiert')."</strong></div>";
                                        $iconflag = true;
                                    }
                                    if (($this->conf->show_hot == true)&&($content->views >= $this->conf->nbhits)) {
                                        if($iconflag){
                                            echo '<div class="iconSep">|</div>';
                                        }
                                        echo "<div class='hotAd'>";
                                        echo "<i class='glyphicon glyphicon-fire'></i> <strong>".JText::_('HOT')."</strong>";
                                        echo "</div>";
                                    }
                                echo "</div>";
                            }
                        ?>
                        <div class="col-md-12">
                            <div class="adsListGridBox" style="position:relative;overflow:visible">
                                <div class="row">
                                    <div class="col-md-12 adsListGridImage">
                                        <div class="adsListGridImageBg">
                                            <?php
                                                                                                   if (isset($content->images[0])) {
                                                        echo "<a href='".$linkTarget."'><img class='fad-image img-responsive' name='ad-image".$content->id."' src='".JURI_IMAGES_FOLDER."/".$content->images[0]->thumbnail."' alt=\"".htmlspecialchars($content->ad_headline)."\" /></a>";
                                                                                } else if ($this->conf->nb_images > 0) {
                                                        echo "<a href='".$linkTarget."'><img class='fad-image img-responsive' src='".ADSMANAGER_NOPIC_IMG."' alt='nopic' /></a>";
                                                                                }
                                                ?>
                                            <?php if (isset($content->ad_price)) {?>
                                            <div class="col-md-4 adsListGridPrice">
                                            <?php echo $this->field->showFieldValue($content,$this->fields['ad_price']);  ?>
                                            </div>
                                            <?php } ?>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 adsListGridCat">
                                    <?php if(!isset($this->conf->display_category_list_label) || $this->conf->display_category_list_label == 1): ?>
                                        <?php echo htmlspecialchars($content->parent)." / ".htmlspecialchars($content->cat)?><br/>
                                    <?php endif; ?>
                                        <small><?php echo $this->reorderDate($content->date_created) ?></small>
                                </div>
                                <div class="adsListGridContent">
                                    <div class="row">
                                        <div class="col-md-12 adsListGridTitle">
                                            <h4>
                                                <?php echo '<a href="'.$linkTarget.'">'.htmlspecialchars($content->ad_headline).'</a>'; ?>
                                            </h4>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12 adsListGridDesc">
                                            <p>
                                                <?php
$content->ad_text = strip_tags(str_replace ('<br />'," ",$content->ad_text));
$af_text = JString::substr($content->ad_text, 0, 100);
if (strlen($content->ad_text)>100) {
$af_text .= "[...]";
}
echo $af_text;
?>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <?php if (isset($content->top) && $content->top == 1) { echo '<span class="premium-banner">Premium</span>';} ?>
                            </div>
                            <div class="adsListGridFoot">
                                <div class="row">
                                    <div class="col-md-12">
                                        <a href="<?php echo $linkTarget; ?>"><?php echo TText::_('ADSMANAGER_SEE_AD')?></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
    <?php
    }
    ?>
</div>

Did you know as Im talking about the "mod_paidsystem_feat" Module?
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18723 by loic
Replied by loic on topic Display Error - new posts
Hello,

Sorry about the misunderstanding, I wrote after the message from Tompap and did not check the first page.

the file to override is templates/adsclarity/html/mod_paidsystem_feat/default.php line 139 to 144 and in templates/adsclarity/html/mod_paidsystem_feat/grid.php line 65 to 70, replace that block :
$row->ad_text = str_replace ('<br />'," ",$row->ad_text);
                                                $af_text = JString::substr($row->ad_text, 0, 100);
                                                if (strlen($row->ad_text)>100) {
                                                    $af_text .= "[...]";
                                                }
                                                echo htmlspecialchars($af_text);

By this one :
$row->ad_text = strip_tags(str_replace ('<br />'," ",$row->ad_text));
                                                $af_text = JString::substr($row->ad_text, 0, 100);
                                                if (strlen($row->ad_text)>100) {
                                                    $af_text .= "[...]";
                                                }
                                                echo $af_text;

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