Author Topic: Jump to the new comment  (Read 5780 times)

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Jump to the new comment
« on: April 03, 2006, 09:26:38 PM »
Hi there,

when i write a comment and post it the site loads new and then jump to the comment form.

What must i do that after send the comment it jump to the new comment and not to the comment form??
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Jump to the new comment
« Reply #1 on: April 03, 2006, 09:39:42 PM »
you have to build in anchor for the comments like it's be done in forums,
and link to it.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Jump to the new comment
« Reply #2 on: April 03, 2006, 09:47:37 PM »
Ich schreib einfach auf deutsch weiter :)

Da ist ja irgendwo ein Anker denn nach dem schreiben des Kommentars werde ich ja wieder zu den Felder geleitet wo ich den Kommentar schreiben kann.

Ich denke ich muss den Anker einfach nur versetzen aber leider kann ich den nicht finden...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Jump to the new comment
« Reply #3 on: April 03, 2006, 11:28:36 PM »
hab jetzt nicht nachgeschaut,
sondern vermute es jetzt einfach mal.

im template comment_form.html müsste sowas wie <a name="commentform"></a> sein.
Du kannst diesen Tag jetzt ein fach ausschneiden und in der details.html
an die stelle setzen, wo die comment auflistung anfängt.

die elegeantere lösung wäre allerdings einen neuen anchor tag an diese stelle zu setzen,
und die einfach anspringen zu lassen.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Jump to the new comment
« Reply #4 on: April 22, 2006, 12:01:06 AM »
Ist schon ein wenig her aber ich bin bis heute nicht dazu gekommen das mal zu testen.

Habe jetzt das hier

<a name="comments"></a>

in der details.html versetzt und nun werde ich auch zu den Kommentaren geleitet. Das ist soweit ganz gut aber kann man das auch so ändern das ich zum letzten Kommentar gebracht werde? Also zu dem welches gerade geschrieben wurde....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-