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 / "Submit" ad form redirect

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.

"Submit" ad form redirect

  • cellculture
  • Topic Author
  • Offline
  • Bronze
  • Bronze
More
11 years 3 weeks ago #4695 by cellculture
"Submit" ad form redirect was created by cellculture
Dear forum and administrators,

In Adsmanager, when a user clicks the "submit" button on the "new ad" page after they fill it out, it gives them a confirmatory message, and then redirects them to the "all ads" page.

I've been trying to change the redirect to take the user back to the ad page of their selected category instead, without success.

Would greatly appreciate help regarding which file and coding to change so that this happens!

thank you :)
More
11 years 3 weeks ago #4701 by loic
Replied by loic on topic "Submit" ad form redirect
Hello,

You need to modify the file '/components/com_adsmanager/controller.php', line 625, replace this line :
$app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list'), $redirect_text,'message' );

By this one :
$app->redirect( TRoute::_('index.php?option=com_adsmanager&view=list&catid='.JRequest::getInt( 'category', 0 )), $redirect_text,'message' );

Please be aware that any update of adsManager will erase this modification.
The following user(s) said Thank You: cellculture
  • cellculture
  • Topic Author
  • Offline
  • Bronze
  • Bronze
More
11 years 3 weeks ago #4729 by cellculture
Replied by cellculture on topic "Submit" ad form redirect
Thank you, that worked great!

Just as a follow-up, where can I modify the "redirect text"? I'm not able to find it in the Joomla Adsmanager component administrator back-end.....?
More
11 years 3 weeks ago #4737 by loic
Replied by loic on topic "Submit" ad form redirect
Hello,

The redirect text is set in the same function, It changes following the error or validation message.

What do you wish do to with it ?
The following user(s) said Thank You: cellculture
  • cellculture
  • Topic Author
  • Offline
  • Bronze
  • Bronze
More
11 years 3 weeks ago #4747 by cellculture
Replied by cellculture on topic "Submit" ad form redirect
Perhaps I'm not being clear, my mistake. Right now, when a user submits an ad, two messages come up:

"empty message body"

and

"thanks, an administrator will check your ad and get back to you"

I want to erase the first, and change the second...

Thanks again!
More
11 years 3 weeks ago #4750 by loic
Replied by loic on topic "Submit" ad form redirect
Hello,

The first message is a message from Joomla.

You can modify every messages by making a language override.

To do this, go to the administration of your website and click on 'extensions->Language manager'.
Then click on 'Overrides' in the left menu, select the correct language in the dropbox filter and click on new.

Wait until the cache is generated, type the message you want to change in the textfield on the right and select 'value' on the dropbox on the right.

When you will click the search button, the message you want to override will be display, click on it to automatically fill the form at the left on the page.

Finaly, you just have to write what you want in the textarea and it will override the default message.

I hope i'm clear enough :)
Time to create page: 0.205 seconds
Powered by Kunena Forum