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?
No Thank You message
-
- Phoca Newbie
- Posts: 3
- Joined: 26 Apr 2011, 14:43
Re: No Thank You message
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
regards
Rob
-
- Phoca Newbie
- Posts: 8
- Joined: 30 Apr 2011, 23:19
Re: No Thank You message
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
// 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
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: No Thank You message
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 30 Apr 2011, 23:19
Re: No Thank You message
Thank you, Jan. I'll pass this tip on to someone who can look into it better than I can.
Mike
Mike
-
- Phoca Newbie
- Posts: 2
- Joined: 23 Jun 2011, 17:46
Re: No Thank You message
You must put
<jdoc:include type="message" />
into
/public_html/templates/your_template/index.php
and the message will be displayed!
<jdoc:include type="message" />
into
/public_html/templates/your_template/index.php
and the message will be displayed!