Topic-icon Popup in full screen

Active Subscriptions:

None
8 years 10 months ago #53390 by canadareic
I am using:
Joomla 3.4.1;
Template based on bootstrap T3 Framework;
Joomsocial
JFBConnect
SCLogn

www.canadareic.com


What can cause that the popup login is being extended to the full height of the page?

Thanks
Jarek
The topic has been locked.
Support Specialist
8 years 10 months ago #53391 by alzander
Replied by alzander on topic Popup in full screen
The long modal like that is caused when the template has a CSS 'bottom' value set to '0', which means it's supposed to extend to the bottom of the screen.

To fix, please add the following to your template's custom CSS file or wherever you add your own styles:
#login-modal {
  bottom: initial;
}

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #53605 by canadareic
Replied by canadareic on topic Popup in full screen
I think we has same issue before
we use different path for our files
when running tests we have missing

www.domain.com/home/domain/subdomains/ma...ogin/sourcecoast.css

instead of

www.domain.com/media/sourcecoast/themes/sclogin/sourcecoast.css

sorry had to change some info due to security
The topic has been locked.
Support Specialist
8 years 10 months ago #53618 by alzander
Replied by alzander on topic Popup in full screen
Not sure what's happening there. Can you try editing the /modules/mod_sclogin/helper.php file. Around line 63, you'll see:
$file = str_replace(JPATH_SITE, '', $file);
Change that to:
$file = str_replace(JPATH_ROOT, '', $file);
That may fix the path issue, but honestly, I'm a bit confused as to what's happening.

Let us know if that helps get you going. If not, we'll gladly help to keep investigating what's happening.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #53724 by canadareic
Replied by canadareic on topic Popup in full screen
Sorry for late reply
As you suggested i replaced the code and waited for cache cleared etc.

unfortunately still not go. still if you to see the code on the website is pointing to wrong path.

any other suggestions ?
The topic has been locked.
Support Specialist
8 years 10 months ago #53738 by alzander
Replied by alzander on topic Popup in full screen
We haven't heard of this issue before and are going to need to investigate further on your site. Since it's a path issue, we'll also likely need to modify some code in our files to narrow things down.

Can you please Private Message me super admin credentials for the site and FTP access for the server? With that, we'll be able to determine the cause and proper fix. You can PM me by clicking the mail icon under my name to the left.

Finally, if you're using any extensions that may alter the location of your Joomla site, please let us know.. like a mult-site extension or some other site sharing feature. If you don't know what I'm talking about, just disregard this question.

Thanks,
Alex
The topic has been locked.
Support Specialist
8 years 10 months ago #53763 by alzander
Replied by alzander on topic Popup in full screen
Thank you for the credentials to your site and for letting us know that you're using jms2win. That multi-site extension looks to be the problem. In the SCLogin module, we run the following code to find the available theme files and then generate the correct URL for that link:
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
        $paths[] = JPATH_ROOT . '/media/sourcecoast/themes/sclogin/';
        $theme = $this->params->get('theme', 'default.css');
        $file = JPath::find($paths, $theme);
        $file = str_replace(JPATH_SITE, '', $file);
        $file = str_replace('\\', "/", $file); //Windows support for file separators
The problem is that the following is what's returned:
$paths = /home/<HOSTING USERNAME>/public_html/media/sourcecoast/themes/sclogin/ 
$file = /home/<HOSTING USERNAME>/subdomains/master/public_html/media/sourcecoast/themes/sclogin/sourcecoast.css
So, when we request JPATH_ROOT from Joomla, we get the 'root' file path. When we do JPath::find, it's finding the file in the sub-domain. After we get the file, we try to strip the root path off, but since they don't match, nothing changes. The result is that the URL uses the full sub-domain path.

There's no way for us to handle this in SCLogin as the behavior is abnormal. I'd recommend contacting jms2win to see if they have any recommendations as to what may be wrong.

You *probably* could hard-code your sub-domain path into that code instead of the JPATH_ROOT calls, but I can't guarantee that will work. You'll also need to make that change with every update.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 8 months ago #54271 by canadareic
Replied by canadareic on topic Popup in full screen
Unfortunately looks like the developer is not so fast with supporting his clients or evfen the component is dead.

jms2win.com/en/forum/31-bugs-errors-repo...-with-module-sclogin

in meantime would you mind just telling me what has to be put in which line?
I'm not php developer Sorry

appreciated

I guess is time to change jms2win to other component :(
The topic has been locked.
Support Specialist
8 years 8 months ago #54283 by alzander
Replied by alzander on topic Popup in full screen
To force the path to whatever is right for your site, you'll want to edit /modules/mod_sclogin/helper.php. Around line 59, you'll see:
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
$paths[] = JPATH_ROOT . '/media/sourcecoast/themes/sclogin/';
Update those with the actual path to your files, like:
$paths[] = '/home/domain/subdomains/master/public_html/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
$paths[] = '/home/domain/subdomains/master/public_html//media/sourcecoast/themes/sclogin/';
I hope that helps, but if you need anything else, let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 8 months ago #54331 by canadareic
Replied by canadareic on topic Popup in full screen
Hello

Will this help? A quick review of the code of this module show a problem in the ajax
initialisation that perform a wrong Joomla initialisation.
I don't know if this is the origin of the problem but the ajax calls
probably fails.

File modules\mod_sclogin\ajax\otpcheck.php

if (file_exists(__DIR__ . '/../../defines.php'))
{
include_once __DIR__ . '/../../defines.php';
}

if (!defined('_JDEFINES'))
{
define('JPATH_BASE', dirname(__DIR__) . '/../../');
require_once JPATH_BASE . '/includes/defines.php';
}
The topic has been locked.