Answers
  • Accepted Answer

    You can change it components/com_communityanswers/controllers/answers.php at line 213 (askQuestion function)

    $link = JRoute::_("index.php?option=".$option."&view=answers".$this->getItemId());

    For example, in Joomla 1.5 you can use the below code instead of above
    $itemid=$this->getItemId();
    $redirectUrl = base64_encode("index.php?option=".$option."&view=answers".$itemid);
    $link = JRoute::_("index.php?option=com_user&view=login".$itemid."&return=".$redirectUrl);

    Answered by Maverick
    One year ago
  • I would like it to go to this url if they are not logged in http://www.makeoverfitness.com/fitness-community/profile.html and this url http://www.makeoverfitness.com/fitness-answers.html if they are logged in. Where would I insert those url's in that code exactly? Could you give me an example of how it would look with those url's inserted?

    Thanks.

    Answered by clinton walker
    One year ago
  • I really could not understand what you are saying.

    When a user click Ask now button, he would be ideally taken to question form if he is authorized. Where as you are asking for him to go to some other page, how can he ask questions?

    Answered by Maverick
    One year ago
  • Yes I understand that. Since I have 2 different templates, the redirect goes to the questions form in the old template. I want it to redirect to the question form in the new template.

    Also, if the user clicks the ask now button before they log in, I want them to be directed to a specific url instead of the page it currently sends them too. A lot of user may click the ask now button before logging in and I want to make sure I direct them to the pages I want them to go to.

    Answered by clinton walker
    One year ago
  • How did you implemented the new template? If you have followed the template overrides (see docs) the override template will be automatically picked up, you need not do anything. For login redirection, my above code still stands.

    Answered by Maverick
    One year ago
  • ok thanks. will try that code.

    Answered by clinton walker
    One year ago
Submit Answer
Questions from category Community Answers

Random Poll

What feature do you like in Joomla CMS?
Joomla is the most used Content Management System across the world. Millions of websites build on the great CMS. Which feature do you like the most on this beautiful CMS? Please share your comments and experiences in the comments section.
1456340521 [{"id":"83","title":"Easy to use interface which allow even novice to start using it within less time","votes":"59","pct":"23.23","type":"x","order":"0","resources":[]},{"id":"84","title":"Extensive list of community extensions and templates","votes":"61","pct":"24.02","type":"x","order":"0","resources":[]},{"id":"85","title":"Support from the Joomla forums","votes":"38","pct":"14.96","type":"x","order":"0","resources":[]},{"id":"86","title":"Security Features","votes":"45","pct":"17.72","type":"x","order":"0","resources":[]},{"id":"87","title":"Administration Control Panel & Dashboard","votes":"24","pct":"9.45","type":"x","order":"0","resources":[]},{"id":"88","title":"Compatiability with the older versions of Joomla","votes":"27","pct":"10.63","type":"x","order":"0","resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] gpie 200 200 /demos/polls/vote/34-what-feature-do-you-like-in-joomla-cms.html No answer selected. Please try again. Thank you for voting. Answers Votes ...

25% Off Coupon

Joomla runs best on HostGator. Get 25% off on your hosting bill at hostgator with coupon code COREJOOMLA25OFF.
Sign up now.

Newsletter

We do not spam your mailbox. Product updates/offers, security updates etc. will be sent.
captcha
Terms and Conditions