- Home
- Categorie
- Coding e Sistemistica
- CMS & Piattaforme Self-Hosted
- Includere header wp in smf
-
Includere header wp in smf
Ciao a tutti,
sto cercando di includere nel mio forum smf l'header di wp...
Ho opportunamente modificato il file index.template.php (file di smf) includendo i seguenti file con le seguenti istruzioni:[PHP]//display blog header
$base_path = realpath("..");
require('../wp-blog-header.php');
require('../wp-config.php');
require($base_path.'/wp-db.php');[/PHP]mi da però uno strano errore:
**Fatal error: Call to a member function on a non-object in /japgalaxy/wp-includes/functions.php on line 897**nel file functions.php la porzione di codice in questione è la seguente:
[PHP]895 function is_blog_installed() {
896 global $wpdb;
897 $wpdb->hide_errors();
898 $installed = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
899 $wpdb->show_errors();
900 $install_status = !empty( $installed ) ? TRUE : FALSE;
901 return $install_status;
902 }[/PHP]secondo voi cosa posso fare???
-
nessuno sa aiutarmi???