Skip to Content Skip to Menu

redirect after message has been sent

  • mysteria
  • mysteria
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
12 years 10 months ago #183365 by mysteria
redirect after message has been sent was created by mysteria
Hi,
i need to show "compose mail" in a CB tab
i solved this by creating an article with the component, then recall the article inside a tab
btw, after sending the email, i get redirected to the home page, that shows in the iframe inside the tab (not good!)
is there a way to change the redirection url after the message has been sent?
for example, can i click on "send" and get a popup message saying "your message has been sent"?
otherwise, is there a way to show only "task=new" in a CB tab?
thanks

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 10 months ago #183410 by slabbi
Replied by slabbi on topic Re: redirect after message has been sent
No, that is not possible out of the box. You have to change several code lines. E.g. when the message has been saved you could change the redirection and set it to fixed URL (usually uddeIM redirect to the page you are coming from).

I do not support (nor recommend) core changes so you are on your own here.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • mysteria
  • mysteria
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
12 years 10 months ago #183414 by mysteria
Replied by mysteria on topic Re: redirect after message has been sent
thanks slabbi,
which file controls the redirection after a message has been sent?
thanks!

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 10 months ago #183420 by slabbi
Replied by slabbi on topic Re: redirect after message has been sent
Check uddeim.php line approx. 1162.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • mysteria
  • mysteria
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
12 years 10 months ago #184456 by mysteria
Replied by mysteria on topic Re: redirect after message has been sent
hi Slabbi,
i tried all the possible urls in that file, but i can't get it work
do you have any idea?
i just need to get rid of the "main site frame" loading inside the tab and display the inbox page
thanks again!

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 10 months ago #184462 by slabbi
Replied by slabbi on topic Re: redirect after message has been sent
In that case you should remove the SEF code from uddeIM. In uddeimlibXX.php you will find
function uddeJSEFredirect($url, $msg='', $avoid='')
remove
$redirecturl = JRoute::_($redirecturl, false);
so the URL should not be modified by Joomla framework.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum