Seite 1 von 2

Profilfeld -> Link

Verfasst: 24.04.2011 09:51
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! :)

Re: Profilfeld -> Link

Verfasst: 24.04.2011 13:54
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.

Re: Profilfeld -> Link

Verfasst: 24.04.2011 14:29
von 199 I MUltijet
ich merke schon... du wirst zu meinem privaten Problemlöser :)
werde ich gleich mal austesten!

(danke dir erneut!!!)

Re: Profilfeld -> Link

Verfasst: 24.04.2011 14:43
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!!!!!!!!

Re: Profilfeld -> Link

Verfasst: 03.09.2011 14:57
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... :(

Re: Profilfeld -> Link

Verfasst: 03.09.2011 15:27
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?

Re: Profilfeld -> Link

Verfasst: 03.09.2011 15:29
von 199 I MUltijet
hallo erstmal...
meinst du...du möchtest einen screenshot vom miniprofil?
oder einen screenshot vom template ...oder wie oder was?

Re: Profilfeld -> Link

Verfasst: 03.09.2011 15:34
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.

Re: Profilfeld -> Link

Verfasst: 03.09.2011 15:45
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 !

Re: Profilfeld -> Link

Verfasst: 03.09.2011 15:59
von modernist
Kann das am fehlenden "http://society199.cwsurf.de/cwphpbb/" liegen? Im ersten Wagenlink (S_PROFILE_WAGENLINK) hast du das mit drin.