
Klappt jetzt perfekt, vielen Dank für die schnelle und gute Hilfe!
Code: Alles auswählen
$topic_title = substr($topic_title,0,
Code: Alles auswählen
if (strlen($topic_title)>27) {
$topic_title = substr($topic_title,0,24) . '...';
}
Code: Alles auswählen
if (strlen($topic_title)>30) {
$topic_title = substr($topic_title,0,28) . '...';
}
Code: Alles auswählen
RewriteEngine on
# Standarddomain definieren
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
Code: Alles auswählen
$title = (strlen($similar['topic_title']) > 40) ? (substr($similar['topic_title'], 0, 37) . '...') : $similar['topic_title'];
$topic_url = '<a href="'. append_sid("viewtopic.$phpEx?". POST_TOPIC_URL .'='. $similar['topic_id']) .'">'. $title . '</a>';
$author_url = append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $similar['user_id']);
$author = ( $similar['user_id'] != ANONYMOUS ) ? '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $similar['user_id']) .'">'. $similar['username'] .'</a>' : ( ($similar['post_username'] != '' ) ? $similar['post_username'] : $lang['Guest'] );
$forum_url = append_sid("viewforum.$phpEx?f=". $similar['forum_id']);
$forum = '<a href="'. $forum_url .'">'. $similar['forum_name'] .'</a>';
$post_url = '<a href="'. append_sid("viewtopic.$phpEx?". POST_POST_URL .'='. $similar['topic_last_post_id']) .'#'. $similar['topic_last_post_id'] .'"><img src="'. $images['icon_latest_reply'] .'" alt="'. $lang['View_latest_post'] .'" title="'. $lang['View_latest_post'] .'" border="0" /></a>';
Code: Alles auswählen
function append_sid($url, $non_html_amp = false) // Seo Urls Anfang Version 1.0.8
Code: Alles auswählen
function append_sid($url, $non_html_amp = false, $seo_title = '') // Seo Urls Anfang Version 1.0.8
Code: Alles auswählen
// replace special chars
Code: Alles auswählen
if ( !empty($seo_title) )
{
$forum_name = $topic_title = $seo_title;
}
Code: Alles auswählen
$topic_url = '<a href="'. append_sid("viewtopic.$phpEx?". POST_TOPIC_URL .'='. $similar['topic_id']) .'">'. $title . '</a>';
Code: Alles auswählen
$topic_url = '<a href="'. append_sid("viewtopic.$phpEx?". POST_TOPIC_URL .'='. $similar['topic_id'], '', $similar['topic_title']) .'">'. $title . '</a>';
Natürlich sage ich schon mal vielen herzlichen Dank für Deine Mühen!mgutt hat geschrieben:Und was sagst Du