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 / [RESOLVED] Hiding Update Button for Expired Ads.

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.

[RESOLVED] Hiding Update Button for Expired Ads.

More
10 years 3 weeks ago #22333 by mshihan
Replied by mshihan on topic Hiding Update Button for Expired Ads.
Hello Sir,
Just inserted that code to check, but its not working, still update button is showing with expired ads. If your fixing this issue on next version I can update adsmanager when you release it to fix this issue. At the moment its not a big issue for me.

Kind Regards.
Attachments:
More
10 years 3 weeks ago #22338 by loic
Replied by loic on topic Hiding Update Button for Expired Ads.
Hello,

If you are using AdsClarity, you need to do this in the override in 'templates/adsclarity/html/com_adsmanager/myads/default.php'.

Best regards.
More
10 years 3 weeks ago #22340 by mshihan
Replied by mshihan on topic Hiding Update Button for Expired Ads.
In 'templates/adsclarity/html/com_adsmanager/myads/default.php' line 225 to 244 are the codes related to myads button. Could you please tell me the code I have to replace.
More
10 years 3 weeks ago #22346 by loic
Replied by loic on topic Hiding Update Button for Expired Ads.
Hello,

replace this :
<a href="<?php echo $deletelink?>" onclick="return confirm('<?php echo htmlspecialchars(JText::_('ADSMANAGER_CONFIRM_DELETE'),ENT_QUOTES)?>')" class="btn btn-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <?php echo JText::_('ADSMANAGER_CONTENT_DELETE')?></a>
                                  <a href="<?php echo $editlink ?>" class="btn btn-warning"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> <?php echo JText::_('ADSMANAGER_CONTENT_EDIT')?></a>
                                  <?php 
                                  if ($this->conf->expiration == 1) { 
										if ($content->expiration_date != null) {
											$expiration_time = strtotime($content->expiration_date);
											$current_time = time();
											if ($expiration_time - $current_time <= ($conf->recall_time * 3600 *24)) {
				                                if(function_exists('countRenewDurations') && countRenewDurations() > 1){
				                                    $target = TRoute::_("index.php?option=com_adsmanager&view=expiration&id=$content->id");
				                                } else {
				                                    $target = TRoute::_("index.php?option=com_adsmanager&task=renew&id=$content->id");
				                                }
				                                ?>
				                                <a href="<?php echo $target?>" class="btn btn-success"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> <?php echo JText::_('ADSMANAGER_RENEW_CONTENT')?></a>
				                                <?php 
											}
										}
									}
                                    ?>

By this :
<a href="<?php echo $deletelink?>" onclick="return confirm('<?php echo htmlspecialchars(JText::_('ADSMANAGER_CONFIRM_DELETE'),ENT_QUOTES)?>')" class="btn btn-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <?php echo JText::_('ADSMANAGER_CONTENT_DELETE')?></a>
                                  <?php 
                                  if ($this->conf->expiration == 1) { 
										if ($content->expiration_date != null) {
											$expiration_time = strtotime($content->expiration_date);
											$current_time = time();
											if ($expiration_time - $current_time <= ($conf->recall_time * 3600 *24)) {
				                                if(function_exists('countRenewDurations') && countRenewDurations() > 1){
				                                    $target = TRoute::_("index.php?option=com_adsmanager&view=expiration&id=$content->id");
				                                } else {
				                                    $target = TRoute::_("index.php?option=com_adsmanager&task=renew&id=$content->id");
				                                }
				                                ?>
				                                <a href="<?php echo $target?>" class="btn btn-success"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> <?php echo JText::_('ADSMANAGER_RENEW_CONTENT')?></a>
				                                <?php 
											}else{
                                                ?>
                                                <a href="<?php echo $editlink ?>" class="btn btn-warning"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> <?php echo JText::_('ADSMANAGER_CONTENT_EDIT')?></a>
                                                <?php
                                            }
										}
									}
                                    ?>

Best regards.
More
10 years 3 weeks ago - 10 years 3 weeks ago #22350 by mshihan
Replied by mshihan on topic Hiding Update Button for Expired Ads.
Replace to your codes and now its working in my ads Thank you Sir, for your great support.
While checking this I just noticed update button is still showing on detail view of expired ads.
Could you please tell my how to show renew button instead of update button on detail view of expired ads.

Kind Regards
Last edit: 10 years 3 weeks ago by mshihan.
More
10 years 3 weeks ago #22352 by loic
Replied by loic on topic Hiding Update Button for Expired Ads.
Hello,

I don't know if you can show the renew button in the details page.

Removing the button seems like the easiest solution.

Best regards.
Time to create page: 0.085 seconds
Powered by Kunena Forum