×
Kunena 5.1.15 Released (27 Oct 2019)

The Kunena team has announce the arrival of Kunena 5.1.15 [K 5.1.15] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Solved [Solved] When creating a New topic how to get page on top?

More
6 years 7 months ago - 6 years 7 months ago #1 by iLucato
Hi folks,

When we create a new topic, it scrolls the page to the subject field where is the blinking cursor, so if I have some larger text before it, below the path-way, the visitor miss the text, therefore I wonder how to get to make the page shows on top instead of starting on the subject field?

I tried to find if it was possible in the options to add an anchor, but it isn't.

Any workaround?

Thanks in advance.

Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9

EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Last edit: 6 years 7 months ago by iLucato.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #2 by robertbseattle
Good question. Sometimes you might want to give users further instruction for posting right on the submit page.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #3 by Matias
There is auto-focus to the first field. You can find and disable that javascript from the template (I think it was bottom of the edit file).

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #4 by iLucato

robertbseattle wrote: Good question. Sometimes you might want to give users further instruction for posting right on the submit page.

- Exactly Robert, that was my need!

Matias wrote: There is auto-focus to the first field. You can find and disable that javascript from the template (I think it was bottom of the edit file).


Thanks Matias, I appreciated that.

The file is Edit.php which is in .../components/com_kunena/template/yourtemplate/html/topic

I just comment out the code below:
<!-- <?php
if (!$this->message->name) {
	echo '<script type="text/javascript">document.postform.authorname.focus();</script>';
} else if (!$this->topic->subject) {
	echo '<script type="text/javascript">document.postform.subject.focus();</script>';
} else {
	echo '<script type="text/javascript">document.postform.message.focus();</script>';
}
?> -->

Thanks a lot!

Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9

EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.080 seconds