{"id":423,"date":"2013-07-15T14:34:16","date_gmt":"2013-07-15T14:34:16","guid":{"rendered":"https:\/\/shan.info\/new\/redirect-to-url-once-activate-user-account\/"},"modified":"2013-07-15T14:34:16","modified_gmt":"2013-07-15T14:34:16","slug":"redirect-to-url-once-activate-user-account","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/redirect-to-url-once-activate-user-account\/","title":{"rendered":"Redirect to URL once activate user account"},"content":{"rendered":"<p><span style=\"color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\">I don&#8217;t know if any plugin exists to do this, but if you want all your registered users who are passing successfully activation to be redirected to a certain page you could do a hard coding into com_users.<\/span><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><span style=\"color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\">Go to \/components\/com_users\/controllers\/registration.php and inside &#8220;public function activate()&#8221; search for this piece of code<\/span><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><\/p>\n<div class=\"codetitle\" style=\"margin: 10px 5px 0px; padding: 2px 4px; border-width: 1px 1px 0px; border-style: solid; border-color: #a9b8c2; color: #333333; background-color: #a9b8c2; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: 0.8em; line-height: normal;\"><strong style=\"margin: 0px; padding: 0px;\">Code:<\/strong><\/div>\n<div class=\"codecontent\" style=\"margin: 0px 5px 10px; padding: 5px; direction: ltr; border-color: #a9b8c2; border-width: 0px 1px 1px; border-style: solid; color: #006600; font-size: 0.85em; font-family: Monaco, 'Courier New', monospace; background-color: #fafafa; line-height: normal;\">elseif ($useractivation == 1)<br style=\"margin: 0px; padding: 0px;\" \/>&nbsp; &nbsp;&nbsp; &nbsp;{<br style=\"margin: 0px; padding: 0px;\" \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$this-&gt;setMessage(JText::_(&#8216;COM_USERS_REGISTRATION_ACTIVATE_SUCCESS&#8217;));<br style=\"margin: 0px; padding: 0px;\" \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$this-&gt;setRedirect(JRoute::_(&#8216;index.php?option=com_users&amp;view=login&#8217;, false));<br style=\"margin: 0px; padding: 0px;\" \/>&nbsp; &nbsp;&nbsp; &nbsp;}<br style=\"margin: 0px; padding: 0px;\" \/><\/div>\n<p><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><span style=\"color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\">Here instead of<\/span><\/p>\n<div class=\"codetitle\" style=\"margin: 10px 5px 0px; padding: 2px 4px; border-width: 1px 1px 0px; border-style: solid; border-color: #a9b8c2; color: #333333; background-color: #a9b8c2; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: 0.8em; line-height: normal;\"><strong style=\"margin: 0px; padding: 0px;\">Code:<\/strong><\/div>\n<div class=\"codecontent\" style=\"margin: 0px 5px 10px; padding: 5px; direction: ltr; border-color: #a9b8c2; border-width: 0px 1px 1px; border-style: solid; color: #006600; font-size: 0.85em; font-family: Monaco, 'Courier New', monospace; background-color: #fafafa; line-height: normal;\">$this-&gt;setRedirect(JRoute::_(&#8216;index.php?option=com_users&amp;view=login&#8217;, false));<\/div>\n<p><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><span style=\"color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\">you should replace it with&nbsp;<\/span><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><\/p>\n<div class=\"codetitle\" style=\"margin: 10px 5px 0px; padding: 2px 4px; border-width: 1px 1px 0px; border-style: solid; border-color: #a9b8c2; color: #333333; background-color: #a9b8c2; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: 0.8em; line-height: normal;\"><strong style=\"margin: 0px; padding: 0px;\">Code:<\/strong><\/div>\n<div class=\"codecontent\" style=\"margin: 0px 5px 10px; padding: 5px; direction: ltr; border-color: #a9b8c2; border-width: 0px 1px 1px; border-style: solid; color: #006600; font-size: 0.85em; font-family: Monaco, 'Courier New', monospace; background-color: #fafafa; line-height: normal;\">$this-&gt;setRedirect(&#8216;your url&#8217;);<\/div>\n<p><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><br style=\"margin: 0px; padding: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\" \/><span style=\"color: #555555; font-family: Arial, Helvetica, sans-serif; line-height: normal; background-color: #e7ebf0;\">I hope this will help you.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know if any plugin exists to do this, but if you want all your registered users who are passing successfully activation to be redirected to a certain page you could do a hard coding into com_users.Go to \/components\/com_users\/controllers\/registration.php and inside &#8220;public function activate()&#8221; search for this piece of code Code: elseif ($useractivation == [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","hentry","category-joomla"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}