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.

Accueil / forum / Public Forum / Main Forum / [SOLVED] Redirect after submit

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

[SOLVED] Redirect after submit

More
12 years 6 months ago - 12 years 6 months ago #5029 by fedegot
Why my form redirect at login page after fill out form? :huh: i try looking this topic and change script

//Redirect 
			if ($conf->submission_type == 2)
                        $app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list&catid='.JRequest::getInt( 'category', 0 )), $redirect_text,'message' );
				//$app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list'), $redirect_text,'message' );	
			else {
				 $app->redirect(TLink::getMyAdsLink(), $redirect_text ,'message');
			}

but does not work :unsure:
Report This
Last edit: 12 years 6 months ago by loic.
The following user(s) said Thank You: adarr
More
12 years 6 months ago #5030 by loic
Replied by loic on topic Redirect after submit
Hello,

What have you set in the AdsManager configuration for the submission type ?
Report This
The following user(s) said Thank You: adarr
More
12 years 6 months ago #5032 by fedegot
Replied by fedegot on topic Redirect after submit
thx for rapid answer, i set "create use account (if needed) when posting an ad"
Report This
The following user(s) said Thank You: adarr
More
12 years 6 months ago #5036 by loic
Replied by loic on topic Redirect after submit
Hello,

With the submission type set like you did, the else of the condition is executed and the user isn't redirect like you want.

So you need to copy-paste the redirect line in the else of the condition.

Best Regards.
Report This
The following user(s) said Thank You: fedegot, adarr
More
12 years 6 months ago #5038 by fedegot
Replied by fedegot on topic Redirect after submit
sorry but i'm noob, can you tell where paste it? :lol:
Report This
The following user(s) said Thank You: adarr
More
12 years 6 months ago #5040 by loic
Replied by loic on topic Redirect after submit
Hello,

No problem ;)
if ($conf->submission_type == 2) {
    $app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list&catid='.JRequest::getInt( 'category', 0 )), $redirect_text,'message' );
    //$app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list'), $redirect_text,'message' );	
} else {
     $app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list&catid='.JRequest::getInt( 'category', 0 )), $redirect_text,'message' );
   //$app->redirect(TLink::getMyAdsLink(), $redirect_text ,'message');
}

Just replace the original block of code by this one.
Report This
The following user(s) said Thank You: fedegot, adarr
Moderators: perry
Time to create page: 0.090 seconds
Powered by Kunena Forum