Topic-icon Register button wrong URL

Active Subscriptions:

None
9 years 6 months ago #47325 by adrianomartins
Hello,

I use mod_sclogin with JFBConnect in my site.

After upgrading to the newest version, I had some problems with the sclogin module. One is that the button to register returns an empty link, it just go to the homepage of the site.

Analyzed some files and saw that the $helper->registerLink was the correct address (which is the address to the JomSocial registration). After reviewing my old version (mod_sclogin_j3.0_v3.2.2), I saw that link instead of use $helper->registerLink, it uses $registerLink. Then I inserted $helper->registerLink => $registerLink before calling the tmpl file in mod_sclogin.php and it works (The link registration button is now correct). But the joomlaLogin_vertical.php (yes, I'm using vertical) file, is with $helper->registerLink, not $registerLink.

Already cleared cache, reboot the server, but still with this problem.

Could you help me with this?

Thanks
The topic has been locked.
Support Specialist
9 years 6 months ago #47343 by alzander
Replied by alzander on topic Register button wrong URL
Can you check if you have a template override in your site for the vertical file? It would be in the following location:
/templates/<YOUR_TEMPLATE>/html/mod_sclogin/joomlaLogin_vertical.php

If that file exists, compare it to the /modules/mod_sclogin/tmpl/joomlaLogin_vertical.php file and either integrate the changes you made to your override or remove your override altogether.

My guess is that your override is still using the older code.

I hope that helps, but if you need anything else, please let me know.

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

None
9 years 6 months ago - 9 years 6 months ago #47355 by adrianomartins
I can't believe I spent a long time thinking it was something with Zend OPC. Yes, the old files was there JOOMLA/templates/TEMPLATE/html/. Rather than change the files, I'd rather just delete the ones that are in html folder.

I didn't know this functionality in Joomla to overwrite the original file from the folder using the html folder of the template. Could you explain me how it works?
Just put the html folder in the template or need to make any calls in the template?
How these files got there without me manually place?
Since they were placed there, why they were not placed again (overwrite) after the update?

Thanks
Last edit: 9 years 6 months ago by adrianomartins.
The topic has been locked.
Support Specialist
9 years 6 months ago #47366 by alzander
Replied by alzander on topic Register button wrong URL
Glad to hear we could help you resolve your issue.

I didn't know this functionality in Joomla to overwrite the original file from the folder using the html folder of the template. Could you explain me how it works?

Template overrides are a built-in feature of Joomla. They allow you (the owner of the site) or template developer to create different layout files for modules or components by moving the files from a module's /tmpl or a component's /views/xyz/tmpl/ directory to the template's /html directory. As long as the right directory structure is used, Joomla will automatically use those overrides instead of the original layout files in the component or module.

Just put the html folder in the template or need to make any calls in the template?

Just create the files and the overrides will work instead of the module or component

How these files got there without me manually place?

No clue. Either you did it and don't remember, another developer did it, or they were included in your template to have special stylings for the SCLogin module.

Since they were placed there, why they were not placed again (overwrite) after the update?

Template overrides are meant to be persistent and remain even if you upgrade a module or component. The idea is that you can make modifications without worrying that they'll be overwritten when you upgrade an extension. Of course, it also means you need to verify that any changes in the new layout files with the extensions are incorporated into your override.

I hope that helps explain, but if you need anything else, just let me know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.