Seite 1 von 1

[3.3] prosilver - Mitgliederliste Kontakticons statt Links?

Verfasst: 31.12.2021 21:03
von -motte-
Nabend in die Runde,

was genau muss ich ändern, damit mir in der Mitgliederliste für eigene Profilfelder Icons statt ein Link angezeigt werden?

LG Ralph

Re: [3.3] prosilver - Mitgliederliste Kontakticons statt Links?

Verfasst: 31.12.2021 23:11
von Kirk
Hallo
Möglich wäre es schon aber man könnte keine unterschiedliche anzeigen lassen.
Hier mal eine Anleitung für ein Fa Icon:
Öffne: root/styles/[stylename]/template/memberlist_body.html
Finde:

Code: Alles auswählen

				<div>{% if field.S_PROFILE_CONTACT %}<a href="{{ field.PROFILE_FIELD_CONTACT }}">{% endif %}{{ field.PROFILE_FIELD_VALUE }}{% if field.S_PROFILE_CONTACT %}</a>{% endif %}</div>
Ersetzen mit:

Code: Alles auswählen

				<div>{% if field.S_PROFILE_CONTACT %}<a class="icon fa-link fa-fw" href="{{ field.PROFILE_FIELD_CONTACT }}"></a>{% else %}{{ field.PROFILE_FIELD_VALUE }}{% endif %}</div>

Re: [3.3] prosilver - Mitgliederliste Kontakticons statt Links?

Verfasst: 04.01.2022 11:31
von -motte-
Die Idee ist schon mal ein Anfang ;)

Re: [3.3] prosilver - Mitgliederliste Kontakticons statt Links?

Verfasst: 04.01.2022 12:14
von Kirk
Man könnte auch so machen das es für ein Kontakt Profilfeld z.B. die Kontakticons aus viewtopic angezeigt werden.
Der Code sähe dann so aus:

Code: Alles auswählen

				<div>{% if !field.S_PROFILE_CONTACT %}{{ field.PROFILE_FIELD_VALUE }}{% endif %}</div>
				<div>{% if field.S_PROFILE_PHPBB_DE_USER %}<a class="contact-icon phpbb_website-icon" href="{{ field.PROFILE_FIELD_CONTACT }}" title="{{ field.PROFILE_FIELD_NAME }}"></a>{% endif %}</div>
				<div>{% if field.S_PROFILE_PHPBB_YOUTUBE %}<a class="contact-icon phpbb_youtube-icon" href="{{ field.PROFILE_FIELD_CONTACT }}" title="{{ field.PROFILE_FIELD_NAME }}"></a>{% endif %}</div>
Wenn du jetzt mehrere Kontakt Profilfelder hast, müsstest du jedes einzelne separat aufführen. Denkbar währen auch andere Icons, dazu müsste man für jedes Kontakt Profilfeld eine separate Klasse anlegen.