Guten Tag liebe Community,
nach Tagelangem suchen, ausprobieren und scheitern hoffe ich ihr könnt mir weiterhelfen.
Also ich möchte ein Phpbb3 Forum in Wordpress einbinden.
Leider wirft mir das Programm(??) oder wahrscheinlich ich selber mir ein paar Steine in den Weg.
Ich habe mir beide Programme via Tool-Installation bei All-Ink installiert auf die selbe Datenbank(sollte ja soweit ich gelesen habe kein Problem sein?)
Daraufhin habe ich die AutoMod in Phpbb installiert
Mithilfe der Mod habe ich "WP-UNITED: WordPress-phpBB Integration Package"
Nach der Installation bekomme ich die Meldung:
"[COLOR=#536482][FONT=Lucida Grande]Most of the work of WP-United is done in the WordPress plugin. Please copy the plugin/wp-united folder to your wordpress plugins folder, and follow the instructions there."
Hier tauchen für mich die ersten Fragen/Probleme auf. Der Pfad stimmt nicht mein Wp-united fand ich unter
[/FONT][/COLOR]/phpbb/store/mods/wp-united-release-phpbb/root/wp-united
(ist das ein Problem? oder sollte ich einen Plugin Ordner anlegen?)
Ich habe den WP United Ordner in Wordpressp/Wp-content/Plugins kopiert Und was sollte jetzt passieren?
Mir wird es nicht als neues Plugin auf der Wordpressoberfläche angezeigt.
Nun zum eigentlichen Problem:
Ich habe von Wordpress das Bridge plugin installiert Wp-united: phpBB WordPress Integration 0.9.2.8
[size=10]Welches sich allerdings nur installieren lässt wenn ich den wp-united Ordner denn ich vorher in den Plugin Ordner gezogen habe wieder rauslösche.
Also gelöscht und Installiert:
Dann geh ich auf den Reiter WP-United und dann bekommt man die Auforderung den Pfad für config.php einzugeben, alles kein Problem. Zudem werde ich dazu aufgefordert mithilfe der AutoMod den PHP Mod zu installieren(was wenn ich mich nicht irre das ist was oben beschrieben fehl schlägt?)
Und ich bekomme die Fehlermeldung
[COLOR=#444444]Fatal error[/COLOR][COLOR=#444444]: Cannot redeclare make_clickable() (previously declared in /www/htdocs/w012bf2a/dotblog.de/uploads/Wordpress/wp-includes/formatting.php:1869) in[/COLOR][COLOR=#444444]/www/htdocs/w012bf2a/dotblog.de/uploads/phpbb/includes/functions_content.php[/COLOR][COLOR=#444444] on line [/COLOR][COLOR=#444444]679
Ich hatte mich bereits in diversen deutsch und englisch sprachigen Foren umgeschaut allerdings nie auf den Fehler gekommen denn ich habe.
[/COLOR][/SIZE]
Das ist die Zeile 1869
ZitatAlles anzeigen*/function make_clickable( $text ) {
$r = '';
$textarr = preg_split( '/(<[^<>]+>)/', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // split out HTML tags
$nested_code_pre = 0; // Keep track of how many levels link is nested inside <pre> or <code>
foreach ( $textarr as $piece ) {
if ( preg_match( '|^<code[\s>]|i', $piece ) || preg_match( '|^<pre[\s>]|i', $piece ) )
$nested_code_pre++;
elseif ( ( '</code>' === strtolower( $piece ) || '</pre>' === strtolower( $piece ) ) && $nested_code_pre )
$nested_code_pre--;
if ( $nested_code_pre || empty( $piece ) || ( $piece[0] === '<' && ! preg_match( '|^<\s*[\w]{1,20}+://|', $piece ) ) ) {
$r .= $piece;
continue;
}
// Long strings might contain expensive edge cases ...
if ( 10000 < strlen( $piece ) ) {
// ... break it up
foreach ( _split_str_by_whitespace( $piece, 2100 ) as $chunk ) { // 2100: Extra room for scheme and leading and trailing paretheses
if ( 2101 < strlen( $chunk ) ) {
$r .= $chunk; // Too big, no whitespace: bail.
} else {
$r .= make_clickable( $chunk );
}
}
} else {
$ret = " $piece "; // Pad with whitespace to simplify the regexes
$url_clickable = '~
([\\s(<.,;:!?]) # 1: Leading whitespace, or punctuation
( # 2: URL
[\\w]{1,20}+:// # Scheme and hier-part prefix
(?=\S{1,2000}\s) # Limit to URLs less than about 2000 characters long
[\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]*+ # Non-punctuation URL character
(?: # Unroll the Loop: Only allow puctuation URL character if followed by a non-punctuation URL character
[\'.,;:!?)] # Punctuation URL character
[\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]++ # Non-punctuation URL character
)*
)
(\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing)
~xS'; // The regex is a non-anchored pattern and does not have a single fixed starting character.
// Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
$ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret );
$ret = preg_replace_callback( '#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]+)#is', '_make_web_ftp_clickable_cb', $ret );
$ret = preg_replace_callback( '#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $ret );
$ret = substr( $ret, 1, -1 ); // Remove our whitespace padding.
$r .= $ret;
}
}
// Cleanup of accidental links within links
$r = preg_replace( '#(<a([ \r\n\t]+[^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i', "$1$3</a>", $r );
return $r;
}
Das ist die Zeile 679
ZitatAlles anzeigenfunction make_clickable($text, $server_url = false, $class = 'postlink'){
if ($server_url === false)
{
$server_url = generate_board_url();
}
static $magic_url_match;
static $magic_url_replace;
static $static_class;
if (!is_array($magic_url_match) || $static_class != $class)
{
$static_class = $class;
$class = ($static_class) ? ' class="' . $static_class . '"' : '';
$local_class = ($static_class) ? ' class="' . $static_class . '-local"' : '';
$magic_url_match = $magic_url_replace = array();
// Be sure to not let the matches cross over. ;)
// relative urls for this board
$magic_url_match[] = '#(^|[\n\t (>.])(' . preg_quote($server_url, '#') . ')/(' . get_preg_expression('relative_url_inline') . ')#ie';
$magic_url_replace[] = "make_clickable_callback(MAGIC_URL_LOCAL, '\$1', '\$2', '\$3', '$local_class')";
// matches a xxxx://aaaaa.bbb.cccc. ...
$magic_url_match[] = '#(^|[\n\t (>.])(' . get_preg_expression('url_inline') . ')#ie';
$magic_url_replace[] = "make_clickable_callback(MAGIC_URL_FULL, '\$1', '\$2', '', '$class')";
// matches a "http://www.xxxx.yyyy[/zzzz]" kinda lazy URL thing
$magic_url_match[] = '#(^|[\n\t (>])(' . get_preg_expression('www_url_inline') . ')#ie';
$magic_url_replace[] = "make_clickable_callback(MAGIC_URL_WWW, '\$1', '\$2', '', '$class')";
// matches an email@domain type address at the start of a line, or after a space or after what might be a BBCode.
$magic_url_match[] = '/(^|[\n\t (>])(' . get_preg_expression('email') . ')/ie';
$magic_url_replace[] = "make_clickable_callback(MAGIC_URL_EMAIL, '\$1', '\$2', '', '')";
}
return preg_replace($magic_url_match, $magic_url_replace, $text);
}
Leider fehlt mir das Wissen, was genau in diesen Zeilen Falsch ist.
Ich hoffe ihr könnt mir helfen
Freundliche Grüße
Fabian