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 / Edit link

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

Edit link

More
9 years 2 months ago #26405 by raph17
Edit link was created by raph17
Hello

When i try to edit an ad the link dont take the category id and this is set to 0
case "edit":
					if (isset($query["id"])&&($query["id"] != 0))
					{
						if (!isset($query["catid"]))
							$query["catid"] = 0;
						$segments[] = $query["catid"]."-".getAdsmanagerRouteCategory($query["catid"]);
						$segments[] = $query["id"]."-".getAdsmanagerRouteContent($query["id"]);
						$segments[] = JText::_('ADSMANAGER_SEF_EDIT');
					}
					else
					{
						if (isset($query["catid"])) {
							$segments[] = $query["catid"]."-".getAdsmanagerRouteCategory($query["catid"]);
						}
						$segments[] = JText::_('ADSMANAGER_SEF_WRITE');
					}
			}
			break;
More
9 years 2 months ago #26412 by juloaadmin
Replied by juloaadmin on topic Edit link
The code here is the router.
What is the URL ? Does the URL contains the category id ?
More
9 years 2 months ago #26414 by raph17
Replied by raph17 on topic Edit link
The url is like this on details.
case "details":
					if (isset($query["catid"])) {
						$segments[] = $query["catid"]."-".getAdsmanagerRouteCategory($query["catid"]);
						unset($query["catid"]);
					}
					$segments[] = $query["id"]."-".getAdsmanagerRouteContent($query["id"])."-".getAdsmanagerRouteModel($query["id"]);
					unset($query["id"]);
 
					unset($query["task"]);
					unset($query["view"]);
					break;

I try to put same settings on the edit case but dont work.
More
9 years 2 months ago #26422 by loic
Replied by loic on topic Edit link
Hello,

You need to check if the catid is correctly sent to the edit page when you edit an ad.

If it is a new ad then, the catid will be set at 0.

Do you have an error message ? Or are you trying to custom the URL ?

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