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

How many sites of you are using Community Polls extension?
Please vote or enter the answer if no option applicable to you.
Others, please enter here:
1736349033 [{"id":"2468","title":"1","votes":"189","pct":"31.87","type":"x","order":"0","resources":[]},{"id":"2469","title":"2","votes":"106","pct":"17.88","type":"x","order":"0","resources":[]},{"id":"2470","title":"3","votes":"112","pct":"18.89","type":"x","order":"0","resources":[]},{"id":"2471","title":"4","votes":"84","pct":"14.17","type":"x","order":"0","resources":[]},{"id":"2472","title":"5","votes":"74","pct":"12.48","type":"x","order":"0","resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] gpie 200 200 /demos/polls/vote/742-how-many-sites-of-you-are-using-community-polls-extension.html No answer selected. Please try again. Thank you for voting. Answers Votes ...

Random Quotes

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