Page 1 of 1

No cross close on imgage in modal window

Posted: 27 May 2023, 17:43
by aminalin
Hello community.
Moved phoca guestbook from joomla 2.5.28 to 4.2.9. With . I attached a photo in the post, so that the user on the site could open the photo in the modal window (class="caption"). on joomla 2.5.28 in the modal window there was a cross to close. At 4.2.9, a photo opens on a black background without a cross to close. I use helix ultimate 2.0.12 template. Should this element be in J4 at all, and if so, what could be the reason for the absence?

Re: No cross close on imgage in modal window

Posted: 30 May 2023, 23:31
by Jan
Hi, can you paste a screenshot of what do you exactly mean? Do you get the same problem when using standard template like cassiopeia (only for test).

Jan

Re: No cross close on imgage in modal window

Posted: 31 May 2023, 16:27
by aminalin
The example was made on the Casiopea plugin.
The photo opens in a modal window - example
https://imgur.com/XOa9Env
But there is no close button in the upper right corner of the photo.
To open a modal window use the code

Code: Select all

<p><a class="caption" href="images/responses/4/imov.jpg"><img src="images/responses/4/imov.jpg" alt="" width="234" height="177" border="0" /></a></p>
I use exactly the same code on Joomla 2.5.28 and there is a button to close the photo and return to posts.

Re: No cross close on imgage in modal window

Posted: 01 Jun 2023, 23:25
by Jan
Hi, it is possible that there is no popup but the image opens in browser. But Phoca Guestbook does not have any such option, so did you use on your old website some specific feature to open images in popup? Phoca Guestbook does not manipulate content and have no option to e.g. open images inside content in modal window :idea:

Re: No cross close on imgage in modal window

Posted: 03 Jun 2023, 13:16
by aminalin
Thanks Jan! Looked deeper. Indeed, in the "themza_j17_05" template itself on my Joomla 2.5.28, the nivo-lightbox plugin is built in, which deals with just opening the window. In Joomla 4 I tried to put an automatic resizer as a plugin, but it was unsuccessful. In articles it works, but in phoca guestbook it is not called. Does anyone have experience using something like this for Phoca? Thanks in advance.

Re: No cross close on imgage in modal window

Posted: 06 Jun 2023, 00:13
by Jan
Hi, unfortunately, I don't have any experience with such function inside guestbook posts :-( :-( (when this should work, I think, it should be system plugin or template feature, not content plguin :idea: )

Jan