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 / Custom 404 error for Adsmanager

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

Custom 404 error for Adsmanager

More
8 years 7 months ago #21830 by jamalqc
Replied by jamalqc on topic Custom 404 error for Adsmanager
Bonjour,

ce problème persiste même dans la dernière version. Quand une annonce ou une catégorie supprimée, c,est 404 soft.
Malgré l'erreur "L'annonce n'existe pas, c,est un soft 404 qui débarque.

merci
More
8 years 7 months ago #21847 by juloaadmin
Replied by juloaadmin on topic Custom 404 error for Adsmanager
Et en remplacant

if ($content == null) {
$app->redirect($_SERVER, JText::_('ADSMANAGER_ADS_NO_RIGHT'),'message' );
}

par

if ($content == null) {
JError::raiseError(404, JText::_("Page Not Found"));
}
The following user(s) said Thank You: sinasile
More
8 years 7 months ago #21867 by jamalqc
Replied by jamalqc on topic Custom 404 error for Adsmanager
Merci beaucoup ça marche pour les annonces :)... je ne trouve ou je peux faire la même chose pour les cagoteries (list)...Je sais que j’exagère un peu :)
More
8 years 7 months ago #21898 by juloaadmin
Replied by juloaadmin on topic Custom 404 error for Adsmanager
Pour les categories (list) il s'afffiche un message

$category = $catmodel->getCategory($catid);
if ($category == null) {
echo "Invalid Catid";
exit();
}

mettre JError::raiseError(404, JText::_("Page Not Found")); a la place de Invalid Catid
More
8 years 7 months ago #21915 by jamalqc
Replied by jamalqc on topic Custom 404 error for Adsmanager
Merci beaucoup. Perfect!!
More
8 years 7 months ago #21926 by juloaadmin
Replied by juloaadmin on topic Custom 404 error for Adsmanager
N'hesitez pas à mettre une review a 100% sur extensions.joomla.org, c'est la meilleure facon de nous remercier !
Moderators: perry
Time to create page: 0.144 seconds
Powered by Kunena Forum