Seite 1 von 1

Beitrag öffnen

Verfasst: 26.10.2018 10:29
von rembrand
Hallo zusammen,

da ich nicht weiß, welche Begriffe ich ins Suchfeld eingeben muss, stelle ich die Frage mal hier:

Ich hätte gerne, dass sich Beiträge auch öffnen, wenn man auf ganze Feld in dem der Beitrag bzw. Thema genannt wird, klickt. Ich meine das Feld, das die Farbe wechselt wenn man mit der Maus drüber fährt.

In einem meiner ganz alten Foren hatte ich das mal verbaut. Nun finde ich diese Funktion aber nicht für 3.2.2

Danke euch,

Grüße,

Uwe

Re: Beitrag öffnen

Verfasst: 26.10.2018 13:19
von Dr.Death
Hallo,

das alte "MOD" nannte sich "Hyper Cells".

Für das Style Prosilver müsste man an 3 Dateien etwas hinzufügen:

ÖFFNE /styles/prosilver/template/forumlist_body.html

FINDE:

Code: Alles auswählen

<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
ERSETZE MIT:

Code: Alles auswählen

<dt style="cursor: pointer;" onclick="window.location.href='{forumrow.U_VIEWFORUM}'" title="{forumrow.FORUM_FOLDER_IMG_ALT}">
ÖFFNE /styles/prosilver/template/viewforum_body.html

FINDE:

Code: Alles auswählen

<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
ERSETZE MIT:

Code: Alles auswählen

<dt style="cursor: pointer;" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
ÖFFNE: /styles/prosilver/template/search_results.html

FINDE:

Code: Alles auswählen

<dt<!-- IF searchresults.TOPIC_ICON_IMG --> style="background-image: url({T_ICONS_PATH}{searchresults.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{searchresults.TOPIC_FOLDER_IMG_ALT}">
ERSETZE MIT:

Code: Alles auswählen

<dt style="cursor: pointer;" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'"<!-- IF searchresults.TOPIC_ICON_IMG --> style="background-image: url({T_ICONS_PATH}{searchresults.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{searchresults.TOPIC_FOLDER_IMG_ALT}">


Wie Du erkennen kannst werden dem <dt> Element einfach ein Style Attribut "Cursor" (damit der Mauszeiger in eine "Hand" verwandelt wird) und ein "onClick" hinzugefügt. Mehr nicht.

Re: Beitrag öffnen

Verfasst: 26.10.2018 13:21
von rembrand
Super! Danke dir!

Werde ich ausprobieren.

Gruß,

Uwe