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
8 years 6 months ago - 8 years 6 months ago #22355 by mshihan
Replied by mshihan on topic Hiding Update Button for Expired Ads.
My issue here in detail view of expired ads also same as expired ads in my ads. Users are able to update their ads even I set to validate ads by administrator. To do this users have to click an expired ad in "My Ads" and then in detail view users have to click update button and save. Then the users have to go back to "My Ads" and click renew button to publish ads by themselves. In this case there is possibility to post prohibited images and videos.
As you said, I think removing update button and delete button on detail view is the easiest solution. Could you please tell me how to do that?
I would be grateful if you could fix this issue for me.

Kind Regards.
Last edit: 8 years 6 months ago by mshihan.
More
8 years 6 months ago #22375 by loic
Replied by loic on topic Hiding Update Button for Expired Ads.
Hello,

in the details view in 'component/com_adsmanager/views/details/tmpl/Default_jssor.php' of default.php, you can find two links like that:
$target = TRoute::_("index.php?option=com_adsmanager&task=write&catid=".$this->content->category."&id=".$this->content->id);
					echo "<a href='".$target."'>".JText::_('ADSMANAGER_CONTENT_EDIT')."</a>";
					echo "&nbsp;";
					$target = TRoute::_("index.php?option=com_adsmanager&task=delete&catid=".$this->content->category."&id=".$this->content->id);
					echo "<a onclick='return confirm(\"".htmlspecialchars(JText::_('ADSMANAGER_CONFIRM_DELETE'),ENT_QUOTES)."\")' href='".$target."'>".JText::_('ADSMANAGER_CONTENT_DELETE')."</a>";

Just delete them and the links will disappear.

If you are using adsClarity, the view is in 'templates/adsclarity/html/com_adsmanager/details/default_jssor.php', and the lines are:
$target = TRoute::_("index.php?option=com_adsmanager&task=write&catid=".$this->content->category."&id=".$this->content->id);
                    echo "<a class='btn btn-warning' href='".$target."'><span class='glyphicon glyphicon-edit' aria-hidden='true'></span>".JText::_('ADSMANAGER_CONTENT_EDIT')."</a>";
                    echo "&nbsp;";
                    $target = TRoute::_("index.php?option=com_adsmanager&task=delete&catid=".$this->content->category."&id=".$this->content->id);
                    echo "<a class='btn btn-danger' href='".$target."'><span class='glyphicon glyphicon-remove' aria-hidden='true'></span>".JText::_('ADSMANAGER_CONTENT_DELETE')."</a>";

Best regards.
More
8 years 6 months ago #22393 by mshihan
Replied by mshihan on topic Hiding Update Button for Expired Ads.
After deleting them as you mentioned, my issue has been resolved. Thank you very much for your help and detailed explanation.

Kind Regards
More
8 years 6 months ago #22401 by loic
Replied by loic on topic Hiding Update Button for Expired Ads.
Hello,

Great news :)

I update this topic to resolved.

Best regards.
More
8 years 3 months ago #23250 by francota
Replied by francota on topic Hiding Update Button for Expired Ads.
Hello mshihan
Why you need to do that??
If the ad is expired and the user just renew it ,the ad is published automatically but it suppose that the ad was checked already by an aministrator when it was published the first time.
While if the user change anything in the expired ad, it need to be cheked by the administrato before the publishing.
I ask to the team if what i sayd is correct, couse I dont want too that user can publish what they want

Thanks
Frank
More
8 years 3 months ago #23261 by juloaadmin
Replied by juloaadmin on topic Hiding Update Button for Expired Ads.
There is 2 moderation options you can ask for validation only on first publication or on each modification.

Regards,
Time to create page: 0.171 seconds
Powered by Kunena Forum