Page 1 of 1
how delete the thankyou message
Posted: 26 Apr 2011, 14:52
by pagefactory
http://89.18.179.204/~vanbrienen/nieuw/ ... stenboek/1 is a joomla 1.5 website, the component phocaguestbook working fine .
I want delete the thank message , it comes after you submit a new message, the reason why i wanted delete it, it's that the pages of the website has to keep the same height without scrolling
So the question - where can I delete the thankyou message ? -

Re: how delete the thankyou message
Posted: 03 May 2011, 09:14
by Jan
Hi, you can empty the string in language file - but it is system message, so you get still system message (but without text).
If you want to completely remove it, this needs to be customized in the code - the redirect function needs to be changed - check the module, controller and view of "phocaguestbook" area in frontend
Jan
Re: how delete the thankyou message
Posted: 03 May 2011, 14:26
by pagefactory
Hi Jan,
Thx so far, I open the file components/com_phocaguestbook/controllers/phocaguestbook.php and find the code.
But now, how to change it correctly.
on-line 484 i found;
// Redirect
$link = 'index.php?option=com_phocaguestbook&view=phocaguestbook&id='.$id.'&Itemid='.$itemid.'&limitstart='.$limitstart;
$link = JRoute::_($link, false);
$this->setRedirect( $link, $msg );
First I try that the system gives no message and redirect to the same page;
$link = 'index.php?option=com_phocaguestbook&view=phocaguestbook&id='.$id.'&Itemid='.$itemid.'&limitstart='.$limitstart;
$link = JRoute::_($link, false);
$this->setRedirect($link);
that does'nt work
Then I try a link to another page " bedankt.html" like this
$link = 'bedankt.html';
$link = JRoute::_($link, false);
$this->setRedirect( $link );
Not of this all worked, can you give me a little help to fix this
regards
Rob
Re: how delete the thankyou message
Posted: 10 May 2011, 01:31
by Jan