Hi,
I have just followed your instructions for creating the login popup (thanks).
However its not quite right yet. I followed the original instructions and it produced a red button. I am using Ambrosia template and requre the small purple button. In my custom htlm I have pasted the following:
{source}
<?php
$user = JFactory::getUser();
if ($user->guest) {
?>
[[a href="#" data-rokbox data-rokbox-element="#mypoplogin"]][[span class="button button-small button-purple"]]Login[[/span]][[/a]]
<?php
}
else {
?>
[[a href="#" data-rokbox data-rokbox-element="#mypoplogin"]][[span class="button button-2 button-red"]]Logout[[/span]][[/a]]
<?php
}
?>
{/source}
I have cleared breowser cache, cleared Joomla cache and my button still remaqins large and red. I have gone through the steps and I can't see where I might have gone wrong.
When I try to log out, I get a whirring circle. When I inspect google elements, I see the following message:
Uncaught TypeError: Cannot read property 'y' of undefined rockbox.js (this points to /plugins/system/assets/js/rockbox.js
Also, because I cannot test this yet, I am unsure if it has a register button? I have Jomsocial on my website, so is this login module going to be ok with handling the registration for jomsocial?
Any help would be most appreciated.
Kind regards
Mel