Link to open form not showing

Phoca Guestbook - creating guestbooks in Joomla! CMS
camminateinfriuli
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 08 Feb 2023, 22:31

Re: Link to open form not showing

Post by camminateinfriuli »

I solved it my way even a little less complex, I modified the "default_form_classic.php" file in "components\com_phocaguestbook\views\guestbook\tmpl\"
and I added right after

if ($this->params->get('show_form') == 1) : ?>

this code:

<div class="card-sm bg-light" >
<div class="card">
<div class="card-body ">
<div class="row">
<div class="col-md-4"><?php echo "Your opinion matters"; ?></div>
</div>
</div>
</div>
<br>
<div class="col-md-4 ms-auto"><button type="submit" name="button1" class="btn btn-outline-info btn-lg value="Button1">Leave a message</ button></div>
<br>
</form>
<?php
if(!array_key_exists('button1', $_POST)) {
return ;
}
?>

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

Re: Link to open form not showing

Post by Jan »

Hi, thank you for the information.

Jan
If you find Phoca extensions useful, please support the project
heli-fischer
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 08 May 2023, 16:41

Re: Link to open form not showing

Post by heli-fischer »

Hi,

the script is showing the Button, but it has no function and does not open the form. what am i missing?
Post Reply