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 ;
}
?>
Link to open form not showing
-
- Phoca Newbie
- Posts: 2
- Joined: 08 Feb 2023, 22:31
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Link to open form not showing
Hi, thank you for the information.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 08 May 2023, 16:41
Re: Link to open form not showing
Hi,
the script is showing the Button, but it has no function and does not open the form. what am i missing?
the script is showing the Button, but it has no function and does not open the form. what am i missing?