how delete the thankyou message

Phoca Guestbook - creating guestbooks in Joomla! CMS
pagefactory
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Apr 2011, 14:43

how delete the thankyou message

Post 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 ? -

:idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how delete the thankyou message

Post 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
If you find Phoca extensions useful, please support the project
pagefactory
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Apr 2011, 14:43

Re: how delete the thankyou message

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how delete the thankyou message

Post by Jan »

Hi, for now I am not able to test it and find why this does not work :-(
forum-rules.php (9) :-( :-(
https://www.phoca.cz/phoca-needs-your-help/

:(
If you find Phoca extensions useful, please support the project
Post Reply