Profilfeld -> Link

Du suchst einen bestimmten Mod, weißt aber nicht genau wo bzw. ob er überhaupt existiert? Wenn dir dieser Artikel nicht weiterhilft, kannst du hier den von dir gewünschten/gesuchten Mod beschreiben ...
Falls ein Mod-Autor eine der Anfragen hier aufnimmt, um einen neuen Mod zu entwickeln, geht's in [3.0.x] Mods in Entwicklung weiter.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
199 I MUltijet
Mitglied
Beiträge: 18
Registriert: 23.04.2011 08:43

Profilfeld -> Link

Beitrag von 199 I MUltijet »

Hallo leute,...
ich bin mir relativ sicher das ich hier gründlich gesucht habe, und habe nichts zu dem Thema gefunden!
(ich lasse mich aber gern eines besseren belehren! :) )

ich bin auf der suche nach einem MOD...
(ich versuche es mal zu erklären!)

Es geht um ein Profilfeld das einen Link beinhalten soll!
Dieses Profilfeld soll im Miniprofil auftauchen.
Und zwar (muss kurz ausschweifen)

ich habe ein auto-forum!
und in dieses Profilfeld soll später die URL des eigenen Fahrzeugs bei mir an board eingetragen werden.
es wäre schön wenn es so dargestellt wäre -> Mein Wagen ... und nicht so "Mein Wagen: http://linkzumbeitragbeimiranboard....

ich hoffe ihr könnt nachvollziehen was ich meine! :)
modernist
Ehemaliges Teammitglied
Beiträge: 2202
Registriert: 12.01.2009 10:44

Re: Profilfeld -> Link

Beitrag von modernist »

Im Prinzip hatten wir das schon hier: viewtopic.php?f=74&t=210523

Für deinen Fall wäre es ein Konstrukt wie dieses (die Feldkennung sei wagenlink und der dem Benutzer angezeigte Texte Mein Wagen:

Code: Alles auswählen

		<!-- IF postrow.S_PROFILE_WAGENLINK -->
			<dd><a href="{postrow.PROFILE_WAGENLINK_VALUE}">{postrow.PROFILE_WAGENLINK_NAME}</a></dd>
		<!-- ENDIF -->	
Das gibt nur bei internen Links Probleme (also Link zu Forenseiten), mit externen Links funktioniert's problemlos.
Für interene Links funktioniert aber dies:

Code: Alles auswählen

		<!-- IF postrow.S_PROFILE_WAGENLINK -->
			<dd><a href="http://domain.tld/{postrow.PROFILE_WAGENLINK_VALUE}">{postrow.PROFILE_WAGENLINK_NAME}</a></dd>
		<!-- ENDIF -->	
Der User darf dann allerdings den Link zum Beitrag nur als viewtopic.php?f=1&t=100 o.ä. eingeben.
Da ist wohl die Art und Weise wie interne Link umgeschrieben werden die Ursache.
199 I MUltijet
Mitglied
Beiträge: 18
Registriert: 23.04.2011 08:43

Re: Profilfeld -> Link

Beitrag von 199 I MUltijet »

ich merke schon... du wirst zu meinem privaten Problemlöser :)
werde ich gleich mal austesten!

(danke dir erneut!!!)
199 I MUltijet
Mitglied
Beiträge: 18
Registriert: 23.04.2011 08:43

Re: Profilfeld -> Link

Beitrag von 199 I MUltijet »

dieser Code funktionier 1A!

Code: Alles auswählen

          <!-- IF postrow.S_PROFILE_WAGENLINK -->
             <dd><a href="http://domain.tld/{postrow.PROFILE_WAGENLINK_VALUE}">{postrow.PROFILE_WAGENLINK_NAME}</a></dd>
          <!-- ENDIF -->   
DANKE!!!!!!!!
199 I MUltijet
Mitglied
Beiträge: 18
Registriert: 23.04.2011 08:43

Re: Profilfeld -> Link

Beitrag von 199 I MUltijet »

modernist hat geschrieben:

Code: Alles auswählen

		<!-- IF postrow.S_PROFILE_WAGENLINK -->
			<dd><a href="{postrow.PROFILE_WAGENLINK_VALUE}">{postrow.PROFILE_WAGENLINK_NAME}</a></dd>
		<!-- ENDIF -->	

hey...der code macht probleme :(
(der andere interne funktioniert 1A!!!)
bei mir wir nicht (Bsp.) Mein Wagen sondern

Code: Alles auswählen

http://www.wagenlink.de">Mein Wagen
angezeigt... :(
modernist
Ehemaliges Teammitglied
Beiträge: 2202
Registriert: 12.01.2009 10:44

Re: Profilfeld -> Link

Beitrag von modernist »

Das spricht eher dafür, daß du da einen Fehler im Quelltext hast. Kannst du mal den Ausschnitt mit deinen Profilfeldern hier reinstellen?
199 I MUltijet
Mitglied
Beiträge: 18
Registriert: 23.04.2011 08:43

Re: Profilfeld -> Link

Beitrag von 199 I MUltijet »

hallo erstmal...
meinst du...du möchtest einen screenshot vom miniprofil?
oder einen screenshot vom template ...oder wie oder was?
modernist
Ehemaliges Teammitglied
Beiträge: 2202
Registriert: 12.01.2009 10:44

Re: Profilfeld -> Link

Beitrag von modernist »

Nein, den Ausschnitt aus der Template-Datei, in der die Sache mit den Profilfelder geregelt ist...dürfte wohl die viewtopic_body.html sein. Der Ausschnitt für deine Profilfelder reicht da aus.
199 I MUltijet
Mitglied
Beiträge: 18
Registriert: 23.04.2011 08:43

Re: Profilfeld -> Link

Beitrag von 199 I MUltijet »

aso...
<!-- IF postrow.S_PROFILE_REALERNAME -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_REALERNAME_NAME}:</strong> {postrow.PROFILE_REALERNAME_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_STATUS -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_STATUS_NAME}:</strong> {postrow.PROFILE_STATUS_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_KENNZEICHEN -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_KENNZEICHEN_NAME}:</strong> {postrow.PROFILE_KENNZEICHEN_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_FAHRZEUGMARKE -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_FAHRZEUGMARKE_NAME}:</strong> {postrow.PROFILE_FAHRZEUGMARKE_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_MODELL -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_MODELL_NAME}:</strong> {postrow.PROFILE_MODELL_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_WAGENLINK -->
<dd><a href="http://society199.cwsurf.de/cwphpbb/{po ... E}</a></dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_WAGENLINKZWEI -->
<dd><a href="{postrow.PROFILE_WAGENLINKZWEI_VALUE}">{postrow.PROFILE_WAGENLINKZWEI_NAME}</a></dd>
<!-- ENDIF -->

<!-- IF postrow.S_PROFILE_WERKSINTERN -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_WERKSINTERN_NAME}:</strong> {postrow.PROFILE_WERKSINTERN_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_BAUJAHR -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_BAUJAHR_NAME}:</strong> {postrow.PROFILE_BAUJAHR_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_FARBE -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_FARBE_NAME}:</strong> {postrow.PROFILE_FARBE_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_AUSTATTUNG -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_AUSTATTUNG_NAME}:</strong> {postrow.PROFILE_AUSTATTUNG_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_MOTOR -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_MOTOR_NAME}:</strong> {postrow.PROFILE_MOTOR_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_SPRIT -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_SPRIT_NAME}:</strong> {postrow.PROFILE_SPRIT_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_VERBRAUCH -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_VERBRAUCH_NAME}:</strong> {postrow.PROFILE_VERBRAUCH_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_CO -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_CO_NAME}:</strong> {postrow.PROFILE_CO_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_LEISTUNG -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_LEISTUNG_NAME}:</strong> {postrow.PROFILE_LEISTUNG_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_LET_ANSCHAFFUNG -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_LET_ANSCHAFFUNG_NAME}:</strong> {postrow.PROFILE_LET_ANSCHAFFUNG_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_ANSCHAFFUNG -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_ANSCHAFFUNG_NAME}:</strong> {postrow.PROFILE_ANSCHAFFUNG_VALUE}</dd>
<!-- ENDIF -->
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME neq ("Tuning-Parts" or "geplante Tuning-Parts" or "Extras") -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- ENDIF -->
<!-- END custom_fields -->

der so gekennzeichnete text ist der derprobleme macht !
modernist
Ehemaliges Teammitglied
Beiträge: 2202
Registriert: 12.01.2009 10:44

Re: Profilfeld -> Link

Beitrag von modernist »

Kann das am fehlenden "http://society199.cwsurf.de/cwphpbb/" liegen? Im ersten Wagenlink (S_PROFILE_WAGENLINK) hast du das mit drin.
Antworten

Zurück zu „[3.0.x] Mod Suche/Anfragen“