Hey Repli,
thanks for your quick answer. I have more trouble to get the script running then the conditionals meaningful.
The script should only loading at channel 1 and if the user is logged out. So the login-window show up for a while and disappear after that.
A friend ask and I thought it couldn't be that hard to do it.
Could be that the conditions are available in js but Iam not sure what is faster... load the script or get the conditionals.
What ever. The conditionals are ok for me... but I have to get the script running
Don't try but it should work in 1 condition...
HTML Code:
<vb:if condition="$page['channelid'] == 1 AND !$user OR $user['userid'] < 1">
<script type="text/javascript">
$(document).ready(function() {
$("#main-navbar .username-container").addClass("b_menu__dropdown--active");, function(){
setTimeout("$('#main-navbar .username-container').removeClass("b_menu__dropdown--active");", 5000);
});
});
</script>
</vb:if>
The script should add the class to display the login-form and after timeout remove the class to make the login-form disappear.