ich konnte zwei Fehler finden.
Einmal brauche ich Deinen Quick Reply Mod und als zweites funktioniert die visuelle Bestätigung nicht. Da muss ich dringend ein Update machen.
Dies folgt gleich.
EDIT: Ich habe beim mir getestet. Bei mir wird die Grafik angezeigt?!
Code: Alles auswählen
function append_sid($url, $non_html_amp = false) // Seo Urls Anfang Version 1.0.8
{
global $SID, $phpEx, $topic_title, $forum_name;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
elseif ( $url != './' && strpos($url, 'login') === false && strpos($url, 'mode=confirm') === false && !defined('IN_ADMIN') )
{
// Jumpbox Fix
if ( strpos($url, 'viewforum') !== false && strpos($url, 'f=') === false )
{
return $url;
}
// Search Author's posts URL
if ( strpos($url, 'search_author') !== false )
{
$author_name = substr( strrchr($url, 'search_author='), 14);
if ( preg_match('#[^a-zA-Z0-9-_.]#', $author_name) )
{
return $url;
}
}
// Title to URL
$url_amp = ( $non_html_amp ) ? '&' : '&';
$url_parms = array( (strpos($url, 'highlight=') !== false && $url{strlen($url)-1} == '=' ? $url_amp . 'highlight=' : ''), $url_amp . 'start=0', $url_amp . 'postdays=0', $url_amp . 'postorder=asc', ".$phpEx?", ".$phpEx", '=', '&', '&');
$url_rparms = array( '', '', '', '', ',', '.html', ',', ',', ',');
$url = str_replace($url_parms, $url_rparms, $url);
$url = ($url == './' ? '' : $url . ( strpos($url, '.html') !== false ? '' : '.html' ));
// replace special chars
if ( ( !empty($topic_title) && strpos($url, 'viewtopic') !== false ) || ( !empty($forum_name) && strpos($url, 'viewforum') !== false ) )
{
$url_search = array( 'Ö', 'Ä', 'Ü', 'ö', 'ä', 'à', 'é', 'è', 'ü', 'ß', '°', '²', '³', '§', '$', '%', '=', '`', '´', '|', '€', 'µ', '~', ' ', '.', ',', "'", '"', '#','"', '&', '+','>', '<', '–', '–', '!', '?','{','}','[', ']', '/', '\\', ";", ")", "(", ':', '_', '*', '@', '^', '&', '---', '--');
$url_replace = array('oe', 'ae', 'ue', 'oe', 'ae', 'a', 'e', 'e', 'ue','ss', '', '', '', '', '', '', '', '', '', '', '', '', '', '-', '-', '-', '', '', '', '', 'und','und', '', '', '', '-', '', '', '', '', '', '', '-', '', '', '', '', '', '-', '', '', '','und', '-', '-');
}
// forum name and topic title to URL
if ( !empty($forum_name) && strpos($url, 'viewforum') !== false )
{
$url = str_replace('viewforum', '', $url);
$forumurl = str_replace($url_search, $url_replace, strtolower($forum_name) . '-');
$url = $forumurl == '-' ? 'forum' . $forumurl . $url : $forumurl . $url;
$url = str_replace('-,f,', '-f', $url);
}
elseif ( !empty($topic_title) && strpos($url, 'viewtopic') !== false )
{
$url = str_replace('viewtopic', '', $url);
$topicurl = str_replace($url_search, $url_replace, strtolower($topic_title) . '-');
$url = $topicurl == '-' ? 'topic' . $topicurl . $url : $topicurl . $url;
$url = str_replace('-,t,', '-t', $url);
$url = str_replace('-,p,', '-p', $url);
}
}
return $url;
} // Seo Urls Ende Version 1.0.8
Hier wird das Umschreiben der Grafik ausgelassen.
Für den Quick-Reply brauche ich wie gesagt den Code. Da ist ein Fehler in der URL-Gestaltung. ich denke, der Fehler vom QuickReply entsteht in der posting.php. Also stelle mir diese mal bitte bereit.