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 / Public Forum / Main Forum / Remove date column in list view

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.

× OLD Forum post could be checked here : forum.joomprod.com

Remove date column in list view

More
11 years 11 months ago #8341 by acouto
hi, how line i have to delete to hide all date columm in page list?
More
11 years 11 months ago #8350 by loic
Hello,

To do this, you have to make an override of the list view ('components/com_adsmanager/views/list/tmpl/default_list.php', once it's done, remove the line 30 :
<th class="hidden-phone" width="15%"><?php echo JText::_('ADSMANAGER_DATE'); ?>

And the block from line 93 to line 137 :
<td class="tdcenter column_date hidden-phone">
            <?php 
            $iconflag = false;
            if (($this->conf->show_new == true)&&($this->isNewcontent($content->date_created,$this->conf->nbdays_new))) {
                    echo "<div class='text-center'><img alt='new' src='".$this->baseurl."components/com_adsmanager/images/new.gif' /> ";
                $iconflag = true;
            }
            if (($this->conf->show_hot == true)&&($content->views >= $this->conf->nbhits)) {
                if ($iconflag == false)
                        echo "<div class='text-center'>";
                echo "<img alt='hot' src='".$this->baseurl."components/com_adsmanager/images/hot.gif' />";
                $iconflag = true;
            }
            if ($iconflag == true)
                echo "</div>";
            echo $this->reorderDate($content->date_created); 
            ?>
            <br />
            <?php
            if ($content->userid != 0)
            {
               echo JText::_('ADSMANAGER_FROM')." "; 
 
               $target = TLink::getUserAdsLink($content->userid);
 
               if ($this->conf->display_fullname == 1)
                    echo "<a href='".$target."'>".$content->fullname."</a><br/>";
               else
                    echo "<a href='".$target."'>".$content->user."</a><br/>";
            }
            ?>
            <?php echo sprintf(JText::_('ADSMANAGER_VIEWS'),$content->views); ?>
            <?php if(isset($this->conf->favorite_enabled) && $this->conf->favorite_enabled == 1 && ($this->conf->favorite_display == 'all' || $this->conf->favorite_display == 'list')): ?>
                <br/>
                <?php
                    $favoriteClass = '';
                    $favoriteLabel = addslashes(JText::_('ADSMANAGER_CONTENT_FAVORITE'));
                    if(array_search($content->id, $this->favorites) !== false){
                        $favoriteClass = ' like_active';
                        $favoriteLabel = addslashes(JText::_('ADSMANAGER_CONTENT_FAVORITE_DELETEMSG'));
                    }
                ?>
                    <button id="like_<?php echo $content->id; ?>" class="btn favorite_ads like_ad<?php echo $favoriteClass; ?>"><?php echo $favoriteLabel; ?></button>
            <?php endif; ?>
        </td>

(I can be wrong on the lines number).

Here is a link to help you with the override :
www.joomprod.com/documentation/doc-view-override.html

Best regards.
Moderators: perry
Time to create page: 0.160 seconds
Powered by Kunena Forum