×
If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html
URL nicht aktiv
- dehmlow.online
- Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
4 years 1 month ago #5984
by dehmlow.online
URL nicht aktiv was created by dehmlow.online
Zunächst auch von mir ein großes Lob für die gelungene Anwendung. Ich habe dieses Forum natürllich vorab nach einem Eintrag durchsucht, der mein Problem dargestellt haben könnte - und nichts entsprechendes gefunden.
Ich habe verschiedene Datenbanken angelegt und ein Problem: in einem Fall wird ein Feld als aktiver LInk (zu einem URL) qualifiziert, in einem anderen nicht.
Single
<dt>Text im Web:</dt>
<dd>{joodb field|Text_im_Web}</dd>
Form
<dt><label for="jform_TextimWeb">Text im Web</label></dt>
<dd>{joodb form|Text_im_Web}</dd>
Funktioniert!
Single
<dt>URL:</dt>
<dd>{joodb field|URL}</dd>
<dt>Weitere URL:</dt>
<dd>{joodb field|URL_2}</dd>
Form
<dt><label for="jform_URL">URL</label></dt>
<dd>{joodb form|URL}</dd>
Funktioniert nicht!
Was mache ich falsch! Danke für die Hilfe im voraus.
Ich habe verschiedene Datenbanken angelegt und ein Problem: in einem Fall wird ein Feld als aktiver LInk (zu einem URL) qualifiziert, in einem anderen nicht.
Single
<dt>Text im Web:</dt>
<dd>{joodb field|Text_im_Web}</dd>
Form
<dt><label for="jform_TextimWeb">Text im Web</label></dt>
<dd>{joodb form|Text_im_Web}</dd>
Funktioniert!
Single
<dt>URL:</dt>
<dd>{joodb field|URL}</dd>
<dt>Weitere URL:</dt>
<dd>{joodb field|URL_2}</dd>
Form
<dt><label for="jform_URL">URL</label></dt>
<dd>{joodb form|URL}</dd>
Funktioniert nicht!
Was mache ich falsch! Danke für die Hilfe im voraus.
Please Log in to join the conversation.
- Dirk
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
4 years 1 month ago #5987
by Dirk
Replied by Dirk on topic URL nicht aktiv
Spontan würde ich sagen es liegt an dem Format des in dem Feldes.
Es sollte vom typ Varchar oder Tinytext sein.
Ausschnitt aus der Routine:
Es sollte vom typ Varchar oder Tinytext sein.
Ausschnitt aus der Routine:
if (($function=="varchar" || $function=="tinytext") && $params->get('link_urls','0')!='0') {
// try to detect and link urls ans emails
if (preg_match('/^[^@]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$/', $field)) {
$field= JHtml::_('email.cloak', $field);
} else if (strtolower(substr($field,0,4))=="www." || preg_match('#^http(s)?://#',$field)) {
$ltext = preg_replace( "#^[^:/.]*[:/]+#i", "", $field);
$link = JFilterOutput::ampReplace(htmlspecialchars($field, ENT_COMPAT, 'UTF-8', false));
if (strtolower(substr($field,0,4))=="www.") {
$link = "//".$link;
}
$field= JHtml::_('link', $link,$ltext, array("target"=>"_blank"));
}
}
Please Log in to join the conversation.
- dehmlow.online
- Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
4 years 1 month ago #5992
by dehmlow.online
Replied by dehmlow.online on topic URL nicht aktiv
Besten Dank! Ich weiss, es hört sich blöd an, aber: Wo finde ich diese Routine in meinem Content?
Please Log in to join the conversation.
- Dirk
-
- Offline
Less
More
- Posts: 1222
- Thank you received: 226
4 years 1 month ago #5993
by Dirk
Replied by Dirk on topic URL nicht aktiv
Warum willst du sie finden?
Sie ist Bestandteil des Joodb codes und würde bei der nächsten Gelegenheit überschrieben.
Schau doch erst mal mit PhpMyAdmin nach ob beide Felder vom Typ Varchar oder Tinytext sind!
Wenn alles nicht hilft dann musst du eben die automatische Verlinkung in den Menüoptionen zum Katalog abschalten und manuell im Template verlinken.
Geht auch!
Sie ist Bestandteil des Joodb codes und würde bei der nächsten Gelegenheit überschrieben.
Schau doch erst mal mit PhpMyAdmin nach ob beide Felder vom Typ Varchar oder Tinytext sind!
Wenn alles nicht hilft dann musst du eben die automatische Verlinkung in den Menüoptionen zum Katalog abschalten und manuell im Template verlinken.
<a href="{joodb field|url}" target="_blank">zur Webseite</a>
Geht auch!
Please Log in to join the conversation.
- dehmlow.online
- Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
4 years 1 month ago #5999
by dehmlow.online
Replied by dehmlow.online on topic URL nicht aktiv
> Schau doch erst mal mit PhpMyAdmin nach ob beide Felder vom Typ Varchar oder Tinytext sind!
Tinytext hat funktioniert. Besten Dank!
Tinytext hat funktioniert. Besten Dank!
Please Log in to join the conversation.
Moderators: Dirk, joest