Leave a message

Phoca Guestbook - creating guestbooks in Joomla! CMS
gilsingb
Phoca Member
Phoca Member
Posts: 48
Joined: 14 Feb 2008, 15:07

Jan,Do y

Post by gilsingb »

Jan,

Do you think it is possible to create a standard message that says something like:Your message has been saved but will be reviewed before it can be published.
That way people will know that the creation and image verification of the posted message has gone well.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

The message is there

Post by Jan »

The message is there and will be displayed after leaving message...

If you want to change the text of this message, you can change it in:
language\en-GB\en-GB.com_phocaguestbook.ini


In case, user leaves message and it will be displayed:
PHOCA GUESTBOOK ITEM SAVED=Thank you for your entry

In case, user leaves message and it will be not displayed:
PHOCA GUESTBOOK ITEM SAVED=Thank you for your entry,
REVIEW MESSAGE=message will be displayed after Administrator will review it

Does your template display system messages?


Jan
If you find Phoca extensions useful, please support the project
gilsingb
Phoca Member
Phoca Member
Posts: 48
Joined: 14 Feb 2008, 15:07

Jan,My t

Post by gilsingb »

Jan,

My template does not appear to display system messages. Where can I change the settings for this?

Regards, Ben
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

... I don't know, All templates I use, are showing these messages...

Maybe the following code you should paste into your index.php (in your template folder):

<jdoc:include type="message" />



Jan
If you find Phoca extensions useful, please support the project
gilsingb
Phoca Member
Phoca Member
Posts: 48
Joined: 14 Feb 2008, 15:07

Jan,Have

Post by gilsingb »

Jan,

Have you got a suggestion where to put it, included is the index.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe-> getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" media="all"/>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<?php
if ( $my->id ) { initEditor(); }
mosShowHead();
?>
</head>

<body>
<div class="content">
<div id="top">
<div class="rside">
<div class="clear1">
<div class="menu"><?php mosLoadModules ('user3');?></div>
</div>
<div id="search"><div class="pad"><?php mosLoadModules ('user4');?> </div></div>
<div id="mainimg"><div class="pad"><?php mosLoadModules ('top');?></div></div>
<div class="clear"></div>
<div id="main1"><?php mosMainBody(); ?></div>
</div>

<div class="lside">
<div id="bg">
<div class="pad">
<h1><?php echo $mosConfig_sitename; ?></h1>
<h2>The website of The City Of Naga</h2>
</div>
<div class="menupad"><?php mosLoadModules('left'); ?></div>
</div>
</div>
</div>

<div class="clear"></div>
</div>

<div id="footer">
<div class="lefts">
<div class="padding"><p>Copyright Š 2007 www.naga-cebu.com<br />

</div>
</div>
<?php mosLoadModules( 'debug', -1 );?>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2441958-1";
urchinTracker();
</script>
</body>
</html>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

everwhere you want t

Post by Jan »

everwhere you want to display these messages...

e.g. before:
<div id="main1"><?php mosMainBody(); ?></div>
If you find Phoca extensions useful, please support the project
gilsingb
Phoca Member
Phoca Member
Posts: 48
Joined: 14 Feb 2008, 15:07

Jan, Aga

Post by gilsingb »

Jan,

Again I have to thank you. You have solved my problem again

Thanks

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

Post by Jan »

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