EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: Focus for guests goes incorrectly to loginbox username  (Read 8259 times)

0 Members and 1 Guest are viewing this topic.

Offline SBL

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Focus for guests goes incorrectly to loginbox username
« on: July 19, 2012, 04:40:13 am »
Hello EZPortal lovers :)

I'm running SMF 2.0.2 with EZportal 0.6.6. My forum is completely closed so guests can only access initial page and help and stuff.
With EZportal I adjusted the landing page with a information page on where the forum is about, so that guests (non-logged in's) can read it.

However, on the landing page is also the login box, obvouisly :) So there is text and the login box. When visiting they page the focus of the page goes to the USERNAME box, which is at the bottom of the page. So guests see a page which is already scrolled down half.

I don't mind the loginbox being there (although the loginbox in the header would also suffice) but would like to get rid of the focus on it. Does anyone know how to do this?

(i prefer not to mention the website here publicly, but can give it to you by pm/dm/email ofcourse)

Hopefully someboday has a solution? Thanks in advance!

Offline SBL

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Focus for guests goes incorrectly to loginbox username
« Reply #1 on: July 21, 2012, 03:07:26 pm »
Hopefully someone has an idea where I can look?

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Focus for guests goes incorrectly to loginbox username
« Reply #2 on: July 22, 2012, 07:58:36 pm »
Do you have a link to a site that this occurs on. And what browser are you using.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline SBL

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Focus for guests goes incorrectly to loginbox username
« Reply #3 on: July 23, 2012, 04:58:50 am »
Thanks that you want to help. Link to the website is in your PM and I have tested with IE9, Firefox (latest) and Chrome (latest).

Thanks again!

SBL

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Focus for guests goes incorrectly to loginbox username
« Reply #4 on: July 26, 2012, 09:29:10 am »
You would need to edit the following file
themes/default/login.template.php
Find and remove
Code: [Select]
// Do the focus thing...
echo '
<script type="text/javascript"><!-- // --><![CDATA[
document.forms.frmLogin.user.focus();
// ]]></script>';
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
5078 Views
Last post April 27, 2011, 08:24:35 pm
by andross
1 Replies
12584 Views
Last post June 27, 2012, 10:27:23 am
by KarmicStigmata
0 Replies
8183 Views
Last post June 09, 2013, 01:40:00 pm
by jcarv
0 Replies
8765 Views
Last post June 09, 2013, 01:41:35 pm
by jcarv
2 Replies
5499 Views
Last post April 12, 2015, 07:34:09 am
by Maxx

+-SMF Gallery

Quick Menu


Powered by EzPortal