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 / [RESOLVED] ADsmanager - "UPDATE" link hidden

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

[RESOLVED] ADsmanager - "UPDATE" link hidden

More
8 years 1 month ago - 8 years 1 month ago #24385 by kgeary
How can I hide the UPDATE link for an AD after it has expired?
I only want to show RENEW or DELETE.

Please advise, thanks, Kathy
Last edit: 8 years 1 month ago by loic.
More
8 years 1 month ago #24397 by loic
Hello,

You need to custom the myads page to do that (components/com_adsmanager/views/myads/tmpl/default).

You need to add a condition to display the edit link.
The condition is the same that display the renew button.

Try something like this :
if ($this->conf->expiration == 1) { 
                            if ($content->expiration_date != null) {
                                $expiration_time = strtotime($content->expiration_date);
                                $current_time = time();
                                if ($expiration_time > $current_time) {
$target = TRoute::_("index.php?option=com_adsmanager&task=write&catid=".$content->catid."&id=$content->id");
                        echo "<a href='".$target."'>".JText::_('ADSMANAGER_CONTENT_EDIT')."</a>";
                        echo "<br/>";
}
}
}

Best regards.
The following user(s) said Thank You: kgeary
More
8 years 1 month ago #24409 by kgeary
YES!!
This is Fantastic - it works great.

thank you loic SO MUCH for your timely response,
wonderful to have this kind of support,
Kathy
More
8 years 1 month ago #24417 by loic
Great news :)

I update this topic to resolved.

And you're welcome :)

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