Page 1 of 1
X Button (close) does not work
Posted: 08 Oct 2015, 14:33
by Remedy
Hi Dudes,
Thanks to Jan for all the great extensions and to Benno for all the support.
I installed the phoca gallery component ( com_phocagallery_v4.2.1.zip ) and integrated some pictures in some articles just by writing the code:
Code: Select all
{gallery}projects/eu_ch_dockb/Interior{/gallery}
See the picture below:
The symbols look like they are from the template jf_creativia ( joomfreak com/demo/jf_creativia ).
Since phoca gallery includes the navigation symbols (and they work), I would like to deactivate the x button, but have no idea where I could find it..
Can someone help me?
Working on Windows 7 64 bit with joomla 3.4.4
Thanks a lot.
Re: X Button (close) does not work
Posted: 08 Oct 2015, 15:19
by christine
Hi Remedy,
as I don't know about your template, hv tried with Protostar:
... /media/system/modal.css:
Code: Select all
#sbox-btn-close {
background-image:none;
}
Kind regards, Christine
Re: X Button (close) does not work
Posted: 12 Oct 2015, 09:16
by Remedy
Hi Christine,
Thanks for the answer and sorry for the late reply.
I tried this but it does not change anything.
Do you know if the close button is always called 'btn-close', is this a standard term or is there an other?
I guess that the left/right button also does not work, it only works because I am in the left/right area of the picture.
I could be a problem with the template but I could not find any close button code in there...
Re: X Button (close) does not work
Posted: 12 Oct 2015, 13:23
by christine
Hi Remedy,
Remedy wrote:Do you know if the close button is always called 'btn-close', is this a standard term or is there an other?
I think so and checked a normal J 3.4 installation:
About the left/right button I don't know, but about the: 'btn-close' (some examples only):
root/media/system/css/modal.css
all buttons: ... media/system/images
javascript: ... media/system/js/modal
layouts/joomla/modal/body.php
iframe.php
and propably (not sure): libraries/cms/html/behavior.php:
Code: Select all
// Load the JavaScript and css
JHtml::_('script', 'system/modal.js', true, true);
JHtml::_('stylesheet', 'system/modal.css', array(), true);
}
$sig = md5(serialize(array($selector, $params)));
if (isset(static::$loaded[__METHOD__][$sig]))
{
return;
}
// Setup options object
$opt['ajaxOptions'] = (isset($params['ajaxOptions']) && (is_array($params['ajaxOptions']))) ? $params['ajaxOptions'] : null;
$opt['handler'] = (isset($params['handler'])) ? $params['handler'] : null;
$opt['parseSecure'] = (isset($params['parseSecure'])) ? (bool) $params['parseSecure'] : null;
$opt['closable'] = (isset($params['closable'])) ? (bool) $params['closable'] : null;
$opt['closeBtn'] = (isset($params['closeBtn'])) ? (bool) $params['closeBtn'] : null; etc. ....
So, finally try following CSS Code (at the end of template.css):
Code: Select all
#sbox-window #sbox-btn-close {
display: none;
}
Kind regards, Christine
Re: X Button (close) does not work
Posted: 14 Oct 2015, 08:50
by Remedy
Hi Christine,
christine wrote:So, finally try following CSS Code (at the end of template.css):
Done.
christine wrote:
root/media/system/css/modal.css
all buttons: ... media/system/images
javascript: ... media/system/js/modal
layouts/joomla/modal/body.php
iframe.php
and propably (not sure): libraries/cms/html/behavior.php:
Code: Select all
// Load the JavaScript and css
[...]
Sorry, since I am a Newbie in joomla I unfortunately don't know how and where to integrate your code.
In all the files you mentioned?
Thanks a lot for your time.
Kind Regards,
Rem
Re: X Button (close) does not work
Posted: 14 Oct 2015, 10:48
by christine
Hi Remedy,
just to clarify: Your thread title is: "X Button (close) does not work".
But your question was:
I would like to deactivate the x button
also:
Do you know if the close button is always called 'btn-close', is this a standard term or is there an other?
that's why I mentioned some 'files', where the close button
could be integrated/implemented/changed etc.
As I wrote in previous post:
Put below code at the end of your template.css or you have a custom.css:
Code: Select all
#sbox-window #sbox-btn-close {
display: none;
}
Kind regards, Christine
Re: X Button (close) does not work
Posted: 23 Nov 2015, 16:05
by Remedy
christine wrote:Hi Remedy,
just to clarify: Your thread title is: "X Button (close) does not work".
Kind regards, Christine
Hi Christine,
Thanks a lot for your effort and time, I was very busy workwise and could not work on the site until now.
I included your code, but it did not have any effect (as far as I could see).
Just to clarify:
I would like the buttons to work, but if they don't work, I would be ok with them being invisible.
Thanks a lot again.
Re: X Button (close) does not work
Posted: 24 Nov 2015, 00:43
by christine
Hi Remedy,
I installed the phoca gallery component ( com_phocagallery_v4.2.1.zip ) and integrated some pictures in some articles just by writing the code: xxx
I saw this now in your 1st post. It works without this?:
https://www.phoca.cz/documentation/categ ... ery-plugin
about the code - you could also try:
Code: Select all
#sbox-window #sbox-btn-close {
display: none !important; }
with an: !important; in additon, because I can't know, whether or not the code will be overwritten somewhere. CSS code could also be another, it depends on the template.
Also: You wrote: J 3.4.4 >
https://www.joomla.org/announcements/re ... eased.html > J 3.4.5
It was a very important security fix.
Finally: If we could see your URL, it would be easier to help - to find out the relevant button CSS etc.
Kind regards, Christine
Re: X Button (close) does not work
Posted: 24 Nov 2015, 12:22
by Remedy
Yes, but I simply included the pictures just by code on the site. Maybe that is the problem.
Code: Select all
{gallery}projects/eu_ch_dockb/Interior{/gallery}
about the code - you could also try:
Code: Select all
#sbox-window #sbox-btn-close {
display: none !important; }
with an: !important; in additon, because I can't know, whether or not the code will be overwritten somewhere. CSS code could also be another, it depends on the template.
Didn't work, but I think this is my fault. Maybe we can solve it when the site is online.
Thanks for the Info, already did the update. It is quite difficult since I am not working dayli with joomla/website creating.
Finally: If we could see your URL, it would be easier to help - to find out the relevant button CSS etc.
I still haven't uploaded the site. I will do so the next days and hopefully this can be solved:)
I will post again as soon as the website is online.
Re: X Button (close) does not work
Posted: 24 Nov 2015, 14:54
by christine
Hi Remedy,
Thanks for the Info, already did the update. It is quite difficult since I am not working dayli with joomla/website creating.
Of course, this I will understand. In this special case, it was a very important Core security fix. Some Users had already problems .... when they didn't update by time. So, here you will get all News etc:
https://www.joomla.org/announcements.html
I will post again as soon as the website is online.
Thank you for your information!
Kind regards, Christine