Page 1 of 1
No Thank You message
Posted: 06 May 2011, 06:19
by msimmons
We are getting no Thank You message after a comment is submitted. I've checked en-GB.com_phocaguestbook.ini and the default "Thank you for your comment" is there. It's just not appearing. After clicking on Submit users are returned to a blank entry form with no message.
What can I check to find the problem?
Re: No Thank You message
Posted: 07 May 2011, 16:04
by pagefactory
I had a question how to delete the thank you message, you find your problem in components/com_phocaguestbook/controllers/phocaguestbook.php there you can control the redirects
regards
Rob
Re: No Thank You message
Posted: 07 May 2011, 21:39
by msimmons
Rob, thanks for your message. I'm not a php programmer but I've found a section under the comment SAVING DATA that seems to be the redirect and most of the code is commented out. I don't know the variables or functions so I'm not sure if something in here should be used or not.
// Set Itemid id for redirect, exists this link in Menu?
/* $menu = &JSite::getMenu();
$items = $menu->getItems('link', 'index.php?option=com_phocaguestbook&view=phocaguestbook&id='.(int) $cid[0]);
if(isset($items[0])) {
$itemid = $items[0]->id;
$alias = $items[0]->alias;
} */
// No JRoute - there are some problems
// $this->setRedirect(JRoute::_('index.php?option=com_phocaguestbook&view=phocaguestbook&id='. (int) $cid[0].'&Itemid='.$itemid),$msg );
$this->setRedirect($uri->toString(),$msg );
As you can see, only the last line (not green) is not commented out. But I understand the thank you message is supposed to appear by default so I'm not sure how the code could have been changed.
Any ideas?
Thanks.
Mike
Re: No Thank You message
Posted: 09 May 2011, 22:53
by Jan
Hi, thank you meassage is a system message displayed by Joomla! itself, check your template if it has "system message area" where system messages are displayed (try to search this forum, there are similar posts)
Jan
Re: No Thank You message
Posted: 10 May 2011, 04:50
by msimmons
Thank you, Jan. I'll pass this tip on to someone who can look into it better than I can.
Mike
Re: No Thank You message
Posted: 28 Jun 2011, 14:47
by StrongMind
You must put
<jdoc:include type="message" />
into
/public_html/templates/your_template/index.php
and the message will be displayed!