• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Open The Login / Sign-Up Drawer Automatically

TheBigK

Well-known member
#1
I'm curious to know whether there's a way to automatically open the login / sign-up drawer at the top 30 seconds after the visitor visits the site?

I know this would be annoying, but I want to try this out. :)
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> page_container_js_body

Add this to the top:

Code:
<script>
window.onload = function()
{
	setTimeout(function(){ $('#loginBar #loginBarHandle a').click()},30000);
};
</script>
 

TheBigK

Well-known member
#3
Admin CP -> Appearance -> Templates -> page_container_js_body

Add this to the top:

Code:
<script>
window.onload = function()
{
setTimeout(function(){ $('#loginBar #loginBarHandle a').click()},30000);
};
</script>
Thanks a lot Jake. I'm curious to know whether the open drawer would be an obstacle for the Google Spiders in crawling the website (following links)?