Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Stixsmaster on March 31, 2007, 08:15:55 PM

Title: SMF & WordPress
Post by: Stixsmaster on March 31, 2007, 08:15:55 PM
Has anyone here ever tried making it so that this forum and wordpress properly work together?

---Stixsmaster
Title: Re: SMF & WordPress
Post by: Ken. on April 01, 2007, 12:09:58 PM
Here's one way to do it.

SMF + TinyPortal + Wordpress
My Wordpress (http://www.mykimbrell.com/FamilyForum/index.php?page=73)
Title: Re: SMF & WordPress
Post by: Stixsmaster on April 01, 2007, 05:54:03 PM
yea but how to get tinyportal and smf when both in diff directory to work with wordpress that is on main site?
Title: Re: SMF & WordPress
Post by: Ken. on April 01, 2007, 07:50:46 PM
Quote from: Stixsmaster on April 01, 2007, 05:54:03 PM
yea but how to get tinyportal and smf when both in diff directory to work with wordpress that is on main site?

I'm running SMF/TP in one db, WP in a second db & Coppermine in a third db. It's not really a big deal, you just have to set your paths correctly.

In my case the setup for pulling WP & cpg into my forum is handled with iframe articles that are very easy to do with the TP article system.
Coppermine shares the SMF member base with the built-in bridge and that works out great, the only downside to the whole deal is that WP has no member base bridge available that I'm aware of. (there is one, but it goes in the wrong direction)
Title: Re: SMF & WordPress
Post by: SMdot™ on April 04, 2007, 03:04:48 PM
wait how did you get wordpress into smf? is there a mod you download or a bridge?
Title: Re: SMF & WordPress
Post by: Ken. on April 04, 2007, 06:11:31 PM

Please don't think that I'm trying to be rude but I quoted myself because the answer is already there in my other post.

Quote from: ken.kimbrell on April 01, 2007, 07:50:46 PM

In my case the setup for pulling WP & cpg into my forum is handled with iframe articles that are very easy to do with the TP article system.
Coppermine shares the SMF member base with the built-in bridge and that works out great, the only downside to the whole deal is that WP has no member base bridge available that I'm aware of. (there is one, but it goes in the wrong direction)
Title: Re: SMF & WordPress
Post by: RoarinRow on May 05, 2007, 01:48:09 AM
Quote from: ken.kimbrell on April 01, 2007, 07:50:46 PM
Quote from: Stixsmaster on April 01, 2007, 05:54:03 PM
yea but how to get tinyportal and smf when both in diff directory to work with wordpress that is on main site?

I'm running SMF/TP in one db, WP in a second db & Coppermine in a third db. It's not really a big deal, you just have to set your paths correctly.

In my case the setup for pulling WP & cpg into my forum is handled with iframe articles that are very easy to do with the TP article system.
Coppermine shares the SMF member base with the built-in bridge and that works out great, the only downside to the whole deal is that WP has no member base bridge available that I'm aware of. (there is one, but it goes in the wrong direction)

I did the same thing with my WP, TP, and CPG, with iframes.  It's too bad that WP can't integrate with the SMF member database somehow.   As quick and easy as it is for them to sign up, then don't like doing it. 
Title: Re: SMF & WordPress
Post by: SMdot™ on May 05, 2007, 11:51:47 PM
Quote from: ken.kimbrell on April 01, 2007, 12:09:58 PM
Here's one way to do it.

SMF + TinyPortal + Wordpress
My Wordpress (http://www.mykimbrell.com/FamilyForum/index.php?page=73)

im doing this as well now www.shomazta.com/smf/index.php?action=blog
Title: Re: SMF & WordPress
Post by: Xell on May 22, 2007, 06:05:47 PM
Hi guys,

Just so you know, there is a bridge out there for this: http://www.dmry.net/wordpress-smf-bridge-plugin-10/

It's quite buggy and some areas are really badly done (for example, it calls current_user to get info on the user registering.  Problems arise when you use admin to register someone, as it pulls admin's details and puts admins details into the smf!)

Anyway, i'm currently tweaking it into a site, and thought I'd recommend it.

Xell
Title: Re: SMF & WordPress
Post by: RoarinRow on May 22, 2007, 08:59:17 PM
Quote from: Xell on May 22, 2007, 06:05:47 PM
Hi guys,

Just so you know, there is a bridge out there for this: http://www.dmry.net/wordpress-smf-bridge-plugin-10/

It's quite buggy and some areas are really badly done (for example, it calls current_user to get info on the user registering.  Problems arise when you use admin to register someone, as it pulls admin's details and puts admins details into the smf!)

Anyway, i'm currently tweaking it into a site, and thought I'd recommend it.

Xell

Let us know how it works out and what you did.   8)
Title: Re: SMF & WordPress
Post by: SMdot™ on May 23, 2007, 12:37:07 AM
that thing didn't work for me =(
Title: Re: SMF & WordPress
Post by: perplexed on May 23, 2007, 06:54:25 AM
I used to have Joomla, and when I had that, Smf, joomla, wordpress and coppermine all used the smf member list/login etc

Joomla was just too much of a pain to keep updating etc so I dont have it any more, but that is one way to go and get what you need
Title: Re: SMF & WordPress
Post by: SMdot™ on May 23, 2007, 01:39:26 PM
yeah joomla can just be used as a blog tho instead of wordpress =P I had it but I didn't like it... I still use it on wordsofcriticismdotcom but I sort of gave up on the site so it's just there =P
Title: Re: SMF & WordPress
Post by: Luke on May 25, 2007, 11:42:43 AM
Single login, and nice package: SMF + Sphinx + WordPress

http://dynscs.com/sphinx/

Lots of options, and I mean lots.

WordPress as the main site, SMF + Sphinx in /forums (or whatever you like).
SMF + Sphinx as the main site, with WordPress in /blog (or whatever you like), etc.

Lots of theme possibilities, and all kinds of goodies.
Title: Re: SMF & WordPress
Post by: SMdot™ on May 25, 2007, 09:55:51 PM
Quote from: Luke on May 25, 2007, 11:42:43 AM
Single login, and nice package: SMF + Sphinx + WordPress

http://dynscs.com/sphinx/

Lots of options, and I mean lots.

WordPress as the main site, SMF + Sphinx in /forums (or whatever you like).
SMF + Sphinx as the main site, with WordPress in /blog (or whatever you like), etc.

Lots of theme possibilities, and all kinds of goodies.


No offense but I personally don't like that setup ^.^ It's looking better then before but you should setup a demo or have some links to example features so we can see what your portal has to offer.
Title: Re: SMF & WordPress
Post by: ladynada on May 30, 2007, 01:04:52 AM
/me coughs softly....

watching this thread.
Title: Re: SMF & WordPress
Post by: jjgallow on June 08, 2007, 06:26:04 PM
I've added some fixes to DMRY's smf bridge.  It should work for you now. Enjoy  :)

It should fix several problems that basically make the script not work, or register someone other than the user you intended to.

I have not yet got a hold of dmry, if someone would like to, or would like to host the script, that'd be great.

Please do test out and let me know!

Jeff


Quote<?php
/*
Plugin Name: WP & SMF
Plugin URI: http://www.dmry.net/wordpress-smf-koprusu-eklentisi-10
Description: SMF Forum ile Wordpress'i birle?tirir. (SMF Forum and Wordpress with together.)
Author: dmRy
Version: 1.01  ..updated by jjgallow
Author URI: http://www.dmry.net
*/


define('SMF_API', true);
define('SMF', 'SSI');

if (!file_exists(ABSPATH.'/wp-content/plugins/WP_SMF/Settings.php')) {
      add_action('admin_footer', 'smf_uyari');
   } else {
      require('Settings.php');

$smf_settingsphp_d = ABSPATH.'/wp-content/plugins/WP_SMF/Settings.php';  ////moved to hear for wpmu compatibility
}


////////////////////////////Added for wpmu compatability
if (file_exists(ABSPATH.'/wp-content/mu-plugins/Settings.php')) {
      require('Settings.php');
$smf_settingsphp_d = ABSPATH.'/wp-content/mu-plugins/WP_SMF/Settings.php';
}
/////////////////////////added for wpmu compatability


if ($smf_settingsphp_d) {
   add_action('user_register', 'smf_kullanici_yarat');
   add_action('personal_options_update', 'smf_kullanici_guncelle');
        add_action('profile_personal_options', 'smf_kullanici_guncelle');   //  added by jjgallow for compatibility reasons
        add_action('profile_update', 'smf_kullanici_guncelle');    //  added by jjgallow for compatibility reasons
   add_action('wp_login', 'smf_oturum_ac');
   add_action('wp_logout', 'smf_oturum_kapat');
   add_action('delete_user', 'smf_kullanici_sil');
   add_action('plugins_loaded', 'smf_dil_dosyasini_yukle');
}   
   
// database
$wpdb->wpsmfuser = $table_prefix . 'wpsmf_users';


if (isset($_GET['activate']) && $_GET['activate'] == 'true') {
    add_action('init', 'WpSmfYukle');
}

function smf_dil_dosyasini_yukle() {
   load_plugin_textdomain('wp_smf', 'wp-content/plugins/WP_SMF');
}


function WpSmfYukle() {
   global $wpdb;
   $db_sql="CREATE TABLE IF NOT EXISTS `$wpdb->wpsmfuser` (
  `umeta_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL default '0',
  `meta_key` varchar(255) NOT NULL default '0',
  `meta_value` longtext NOT NULL default '',
  PRIMARY KEY  (`umeta_id`)
)";
   $wpdb->query($db_sql);
   
   
   if (!get_option('wp_smf_trackback')) {   
      $trackback_url = (WPLANG=='tr_TR' || WPLANG=='tr') ? 'http://www.dmry.net/wordpress-smf-koprusu-eklentisi-10/trackback' : 'http://www.dmry.net/wordpress-smf-koprusu-eklentisi-10/trackback';
      $trackback_body = sprintf(__("I installed and tried your plugin on my site \"%s\"",'wp_smf'), get_bloginfo('name'));
      $last_post = $wpdb->get_var("SELECT ID FROM $wpdb->posts ORDER BY ID DESC LIMIT 1");
      $trackback_title = __("I installed your plugin",'wp_smf');
      trackback($trackback_url, $trackback_title, $trackback_body, $last_post);   
      update_option('wp_smf_trackback', 'evet');
   }
   
}

function smf_uyari() {
   echo "
   <div id='akismet-warning' class='updated fade-ff0000'><p><strong>".__("SMF Settings.php  file can't find. Please copy Settings.php file to under WP_SMF folder to SMF directory.",'wp_smf')."</p></div>
   <style type='text/css'>
   #adminmenu { margin-bottom: 5em; }
   #akismet-warning { position: absolute; top: 7em; }
   </style>
   ";
}

function WPVeritabaniKurtar() {
   $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
}


function smf_kullanici_yarat($userID) {
   global $smf_settingsphp_d,$password,$user_login,$user_email;


//////////////////////////////////////////////////////////////////
//...Added code and edited here to properly locate the registered user rather than the logged in user ..by jjgallow.
$user_info = get_userdata($userID);
   require_once('smf_api_1.1.php');
   $userSmfID = smf_registerMember($user_info->user_login, $user_info->user_email, $user_info->user_password);
//////////////////////////////////////////////////////////////////


   WPVeritabaniKurtar();
   update_smf_user_option( $userID, 'Smf_User_ID', $userSmfID,true);
}

function smf_kullanici_guncelle($userID) {
   global $smf_settingsphp_d,$userdata;
        get_currentuserinfo();
   //////////////////////////////////////////////////////////////////
//...Added code and edited here to properly locate the registered user rather than the logged in user ..by jjgallow.
   $user_info = get_userdata($userID);
//////////////////////////////////////////////////////////////////

   $realName = $_POST['first_name']. ' '.$_POST['last_name'];
   $emailAddress = $_POST['email'];
   $personalText = $_POST['description'];
   $websiteUrl = $_POST['url'];
   $AIM = $_POST['aim'];
   $YIM = $_POST['yim'];      



   $realName = (strlen(trim($realName))>0) ? $realName : $user_info->user_login;  /////////// edited by jjgallow

   require_once('smf_api_1.1.php');
   smf_UpdateProfil($user_info->user_login, $realName, $emailAddress, $personalText, $websiteUrl, $AIM, $YIM);  /////////// edited by jjgallow
   
   if ($_POST['pass1']) {
      smf_ChangePassword($user_info->user_login, $_POST['pass1']);  /////////// edited by jjgallow
      smf_oturum_ac($user_info->user_login);   /////////// edited by jjgallow
   }
   WPVeritabaniKurtar();
}

function smf_oturum_ac($user_login) {
   global $smf_settingsphp_d;
   
   require_once('smf_api_1.1.php');
   $len = 3600;
   if($using_cookie) {         
      $len = 60*525600;
      $_SESSION['cms_smf_always'] = true;
   }
   if(smf_LoginById($user_login,$len)) smf_logOnline();
   WPVeritabaniKurtar();
}   

function smf_oturum_kapat($user_login) {
   global $smf_settingsphp_d,$userdata;
   get_currentuserinfo();
   
   require_once('smf_api_1.1.php');
   smf_LogoutById($userdata->user_login);
   WPVeritabaniKurtar();
}      

function smf_kullanici_sil($userID) {
   global $smf_settingsphp_d;
   
   $smf_UserID = get_smf_usermeta($userID,'Smf_User_ID');;
   require_once('smf_api_1.1.php');
    smf_deleteMembers($smf_UserID);
   WPVeritabaniKurtar();
   delete_smf_usermeta($userID,'Smf_User_ID',$smf_UserID);
}      




function update_smf_user_option( $user_id, $option_name, $newvalue, $global = false ) {
   global $wpdb;
   if ( !$global )
      $option_name = $wpdb->prefix . $option_name;
   return update_smf_usermeta( $user_id, $option_name, $newvalue );
}


function update_smf_usermeta( $user_id, $meta_key, $meta_value ) {
   global $wpdb;
   if ( !is_numeric( $user_id ) )
      return false;
   $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);

   if ( is_array($meta_value) || is_object($meta_value) )
      $meta_value = serialize($meta_value);
   $meta_value = trim( $meta_value );
   
   if (empty($meta_value)) {
      delete_smf_usermeta($user_id, $meta_key);
   }

   $cur = $wpdb->get_row("SELECT * FROM $wpdb->wpsmfuser WHERE user_id = '$user_id' AND meta_key = '$meta_key'");
   if ( !$cur ) {
      $wpdb->query("INSERT INTO $wpdb->wpsmfuser ( user_id, meta_key, meta_value )
      VALUES
      ( '$user_id', '$meta_key', '$meta_value' )");
   } else if ( $cur->meta_value != $meta_value ) {
      $wpdb->query("UPDATE $wpdb->wpsmfuser SET meta_value = '$meta_value' WHERE user_id = '$user_id' AND meta_key = '$meta_key'");
   } else {
      return false;   
   }
   
   $user = get_userdata($user_id);
   wp_cache_delete($user_id, 'users');
   wp_cache_delete($user->user_login, 'userlogins');
   
   return true;
}


function delete_smf_usermeta( $user_id, $meta_key, $meta_value = '' ) {
   global $wpdb;
   if ( !is_numeric( $user_id ) )
      return false;
   $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);

   if ( is_array($meta_value) || is_object($meta_value) )
      $meta_value = serialize($meta_value);
   $meta_value = trim( $meta_value );

   if ( ! empty($meta_value) )
      $wpdb->query("DELETE FROM $wpdb->wpsmfuser WHERE user_id = '$user_id' AND meta_key = '$meta_key' AND meta_value = '$meta_value'");
   else
      $wpdb->query("DELETE FROM $wpdb->wpsmfuser WHERE user_id = '$user_id' AND meta_key = '$meta_key'");
      
   $user = get_userdata($user_id);
   wp_cache_delete($user_id, 'users');
   wp_cache_delete($user->user_login, 'userlogins');
   
   return true;
}


function get_smf_usermeta( $user_id, $meta_key = '') {
   global $wpdb;
   $user_id = (int) $user_id;

   if ( !empty($meta_key) ) {
      $meta_key = preg_replace('|a-z0-9_|i', '', $meta_key);
      $metas = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->wpsmfuser WHERE user_id = '$user_id' AND meta_key = '$meta_key'");
   } else {
      $metas = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->wpsmfuser WHERE user_id = '$user_id'");
   }

   if ( empty($metas) ) {
      if ( empty($meta_key) )
         return array();
      else
         return '';
   }

   foreach ($metas as $index => $meta) {
      @ $value = unserialize($meta->meta_value);
      if ( $value === FALSE )
         $value = $meta->meta_value;

      $values[] = $value;
   }

   if ( count($values) == 1 )
      return $values[0];
   else
      return $values;
}

function get_the_totalusers() {
   global $wpdb;
   $totalusers = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
   return $totalusers;
}

function the_totalusers() {
   global $wpdb;
   $totalusers = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
   return $totalusers;
}

function SMF_EnSonMesajlar($limit=10,$hepsindenonce,$mesajdanonce,$mesajdansonra,$hepsindensonra) {
   global $smf_settingsphp_d;
   
   if(file_exists($smf_settingsphp_d)) include($smf_settingsphp_d);

   $baglan = new wpdb($db_user,$db_passwd,$db_name,$db_server);
   $count = 1;
   
   $baglan->query("SET NAMES 'UTF8'");
   
   $SQL="SELECT m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, m.ID_BOARD, b.name AS bName, IFNULL(mem.realName, m.posterName) AS posterName, 1 AS isRead, 0 AS new_from, LEFT(m.body, 384) AS body, m.smileysEnabled FROM ({$db_prefix}messages AS m, {$db_prefix}boards AS b) LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER) WHERE  b.ID_BOARD = m.ID_BOARD  ORDER BY m.ID_MSG DESC LIMIT $limit";
   $basliklar = $baglan->get_results($SQL);
   
   foreach ($basliklar as $baslik) {
      $content .= $mesajdanonce. '<a href="' . $boardurl . '?topic=' . $baslik->ID_TOPIC . '.msg' . $baslik->ID_MSG . ';topicseen#new" class="smflastpost">'. $baslik->subject .'</a><br><span class="smfpostextra">'.__('Last post by:','wp_smf').' <a href="' .  $boardurl . '?action=profile;u=' . $baslik->ID_MSG . '">'. $baslik->posterName .'</a> '.__('Topic:','wp_smf').'  <a href="'.$boardurl .'?board=' . $baslik->ID_BOARD .'.0">'.$baslik->bName.'</a> '.__('Date:','wp_smf').' '. date("d.m.Y H:i",$baslik->posterTime) .'</span>'.$mesajdansonra;
      $count = $count + 1;
   }
   echo $hepsindenonce.$content.$hepsindensonra;
   
   $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);   
}

function SMF_EnSonBasliklar($limit=10,$hepsindenonce,$mesajdanonce,$mesajdansonra,$hepsindensonra) {
   global $smf_settingsphp_d;
   
   if(file_exists($smf_settingsphp_d)) include($smf_settingsphp_d);

   $baglan = new wpdb($db_user,$db_passwd,$db_name,$db_server);
   $count = 1;
   $baglan->query("SET NAMES 'UTF8'");
   $SQL="SELECT m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName, IFNULL(mem.realName, m.posterName) AS posterName, 1 AS isRead, 0 AS new_from, LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms) LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER) WHERE t.ID_LAST_MSG = m.ID_MSG AND b.ID_BOARD = t.ID_BOARD AND ms.ID_MSG = t.ID_FIRST_MSG ORDER BY t.ID_LAST_MSG DESC LIMIT $limit";
   $basliklar = $baglan->get_results($SQL);
   
   foreach ($basliklar as $baslik) {
      $content .= $mesajdanonce. '<a href="' . $boardurl . '?topic=' . $baslik->ID_TOPIC . '.msg' . $baslik->ID_MSG . ';topicseen#new" class="smflasttopic">'. $baslik->subject .'</a><br><span class="smftopicextra">'.__('Last post by:','wp_smf').' <a href="' .  $boardurl . '?action=profile;u=' . $baslik->ID_MSG . '">'. $baslik->posterName .'</a> '.__('Topic:','wp_smf').'  <a href="'.$boardurl .'?board=' . $baslik->ID_BOARD .'.0">'.$baslik->bName.'</a>  '.__('Date:','wp_smf').' '. date("d.m.Y H:i",$baslik->posterTime) .'</span>'.$mesajdansonra;
      $count = $count + 1;
   }
   echo $hepsindenonce.$content.$hepsindensonra;
   
   $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);   
}

function SMF_EnSonUyeler($limit=10,$hepsindenonce,$mesajdanonce,$mesajdansonra,$hepsindensonra) {
global $smf_settingsphp_d;

   if(file_exists($smf_settingsphp_d)) include($smf_settingsphp_d);

   $baglan = new wpdb($db_user,$db_passwd,$db_name,$db_server);
   $baglan->query("SET NAMES 'UTF8'");
   $SQL="select m.ID_MEMBER, m.memberName from {$db_prefix}members AS m order by m.ID_MEMBER desc limit $limit";
   $uyeler = $baglan->get_results($SQL);
   foreach ($uyeler as $uye) {
      $content .= $mesajdanonce. '<a href="' . $boardurl . '?action=profile;u=' . $uye->ID_MEMBER . '" class="smflastmember">'. $uye->memberName .'</a>'.$mesajdansonra;
      $count = $count + 1;
   }
   echo $hepsindenonce.$content.$hepsindensonra;
   
   $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);         
}

function SMF_ForumIstatistik($hepsindenonce,$mesajdanonce,$mesajdansonra,$hepsindensonra) {
global $smf_settingsphp_d;

   if(file_exists($smf_settingsphp_d)) include($smf_settingsphp_d);

   $baglan = new wpdb($db_user,$db_passwd,$db_name,$db_server);
   $baglan->query("SET NAMES 'UTF8'");
   $toplam_bolum = $baglan->get_row("SELECT COUNT(ID_BOARD) AS toplam_bolum FROM {$db_prefix}boards");
   $toplam_bolum_s = $toplam_bolum->toplam_bolum;
   $toplam_kategori = $baglan->get_row("SELECT COUNT(ID_CAT) AS toplam_kategori FROM {$db_prefix}categories");
   $toplam_kategori_s = $toplam_kategori->toplam_kategori;
   $toplam_uye = $baglan->get_row("SELECT COUNT(ID_MEMBER) AS toplam_uye FROM {$db_prefix}members");
   $toplam_uye_s = $toplam_uye->toplam_uye;
   $toplam_mesaj = $baglan->get_row("SELECT COUNT(ID_MSG) AS toplam_mesaj FROM {$db_prefix}messages");
   $toplam_mesaj_s = $toplam_mesaj->toplam_mesaj;
   $toplam_konu = $baglan->get_row("SELECT COUNT(ID_TOPIC) AS toplam_konu FROM {$db_prefix}topics");
   $toplam_konu_s = $toplam_konu->toplam_konu;

   $content .= $mesajdanonce. __('Total Members:','wp_smf').' <a href="'. $boardurl . '?action=mlist">' .$toplam_uye_s. '</a>'.$mesajdansonra;
   $content .= $mesajdanonce. __('Total Posts:','wp_smf').' '.$toplam_mesaj_s.$mesajdansonra;
   $content .= $mesajdanonce. __('Total Topics:','wp_smf').' '.$toplam_konu_s.$mesajdansonra;
   $content .= $mesajdanonce. __('Total Categories:','wp_smf').' '.$toplam_kategori_s.$mesajdansonra;
   $content .= $mesajdanonce. __('Total Boards:','wp_smf').' '.$toplam_bolum_s.$mesajdansonra;
   
   
   echo $hepsindenonce.$content.$hepsindensonra;
   
   $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);      
}
?>
Title: Re: SMF & WordPress
Post by: RoarinRow on June 08, 2007, 06:38:49 PM
Cool jjgallow  8)  Could you please provide more information on how to implement the changes?
Title: Re: SMF & WordPress
Post by: jjgallow on June 09, 2007, 02:45:33 AM
Sure thing.

Ok, I've hosted an updated WP_SMF package here, with all changes:

http://www.earthorbit.com/opensource

I've also added an admin panel to wordpress to configure the plugin with SMF.  Should be simpler this way.

Included is a readme.txt file with instructions.  The instructions are also exactly the same as described in:

http://www.dmry.net/wordpress-smf-bridge-plugin-10/
(which is the original author's site...I will try to contact them with the update).



While there is always more work to do, this package should function properly for what it was meant to do.  I will continue to develop it for my site and share the code as I go.

Please let me know how it works for you.

cheers,

Jeff
Title: Re: SMF & WordPress
Post by: Vandaahl on June 11, 2007, 02:05:44 PM
What exactly does this plugin do? Does it give all existing SMF users a Wordpress blog?
Title: Re: SMF & WordPress
Post by: ladynada on June 11, 2007, 02:36:18 PM
Thank you jjgallow,
You are a blessing!

I just put my blog on live today!

nada

Title: Re: SMF & WordPress
Post by: jjgallow on June 11, 2007, 02:44:36 PM
Hello Vandaahl,

QuoteWhat exactly does this plugin do? Does it give all existing SMF users a Wordpress blog?

Yes, sort of.

To let each user Truly have their own blog, you would use Wordpress MU, and the plugin is compatible with this....so yes (this is actually what I am ultimately developing for myself).


In most cases, it would be used between standard Wordpress and SMF.  Users who subscribe on your blog (Wordpress) instantly become members on our SMF forum as well, and you can integrate the forum and the blog together.

Keep in mind that Registrations, for now, would have to be limited to Wordpress registrations, as there is no current SMF plugin to communicate back to Wordpress.  That will be my next project  :)

Finally, keep in mind that if you have a developed site, you would have to take all your existing users and manually register them for both Wordpress and SMF.  This is because, while the bridge can handle new users correctly, it does not currently convert existing users automatically.

When I am certain that the plugin is stable, existing user conversion would be my final endeavour, to allow current wordpress and SMF communities to merge.  I believe this would have a tremendous impact, to have the best blog (Wordpress) and forum software anywhere (SMF) completely compatible with one another.
Title: Re: SMF & WordPress
Post by: jjgallow on June 11, 2007, 03:16:48 PM
Hello ladynada,

Did you do this for http://heartdaughter.com?  Great site!  But too developed for this plugin.   The plugin is fine for sites with fresh, new SMF databases, but not this one (yet).

If you're launching a different, new site, perfect!  Let me know how it goes!


please read below if you are integrating into http://heartdaughter.com  :

QuoteThank you jjgallow,
You are a blessing!

I just put my blog on live today!

nada

I don't think you should be activating this plugin so quickly on a fully developed site with many users.  If you really want to, at least read below.

Currently, WP_SMF  does this: you register a user or modify a profile in Wordpress, it copies that information to SMF.

That's great, but you have a HUGE site with many users.  What happens if someone registers in Wordpress with a username taken by someone in SMF?

The answer:  I'm not really sure.  It WON'T delete the SMF user.  There's a safeguard against that.  But the plugin is not developed well enough to handle this smoothly.  You could run huge problems, including the possibility that the new user unintentionally "takes over" the SMF user's account.  Big No No, for the moment.   I am working on this right now.


I suggest you deactivate the plugin, and let the users register separately for the moment.

If you WANT to use this bridge, I would consider these two changes necessary:

1.  Allow registrations only through wordpress, because users who register through SMF do NOT automatically have a Wordpress acount set up.  It only works from Wordpress TO SMF right now.   If all new registrations were through wordpress, they would automatically become SMF users anyway, and would be able to access either the forum or the blog.

2.  You would need to register all your current SMF users to Wordpress, manually, with the correct email.  You can do this in the wordpress admin, but it would not be fun.  Currently, this is the only way to be sure that a new user does not accidentally "take over" another SMF user's account (with the same username).


Or, you can wait a few days, and I'll fix more of these problems.  Currently, I'm not really encouraging fully developed sites to endorse this bridge.  It should work, but you are being a guinea pig with a well-developed site.  WP_SMF still has bugs, although not nearly as many.  It is best for TEST sites and NEW sites with no previous SMF users to complicate things.

If you keep the bridge, by all means, let me know how things go for you!  It will be invaluable to me.
Title: Re: SMF & WordPress
Post by: ladynada on June 11, 2007, 10:34:15 PM
You are so wonderful to me, thank you for your thoughtfulness.

Good news.  I did not install it.  I only copied the code and pasted it to a file and put it in a folder with the original download.  Thank you very much though, for the warning.

Actually I only have 51 users.  I am setting up heavy on the blogs right now, I have 3, with 2 of them slated to be mirrors.

Please do not hurry, by any means, on my account.  I put the project of integrating my SMF with Wordpress on the back burner.  However, I do look forward with anticipation, to using your modification.  I would not mind manually registering 51 people and shutting off the SMF registration.

By the way, I thought a long time about integrating these two programs, and I concluded that there must be ONE user database; mostly because of not being able to register existing users on one or the other.  but who knows.. a nice util to run through the DB and match both might work.. but to have each ALSO have a sub routine to dupe each NEW registration from EITHER is asking too much, in my opinion.  So, I believe that you are on the right track.  As hard as it may sound, someday, an SMF sysop may have to make the choice to mass delete all his users, for the benefit of the integration.  I believe it is worth it.

nada
Title: Re: SMF & WordPress
Post by: jjgallow on June 13, 2007, 03:34:39 PM
Hello Ladynada,

you should be okay then, although I would stick to wordpress registrations.

I will am working on making the script even more reliable, but for a 52-member site you shouldn't run into problems, imho.

If you do, let me know!


About the single database thing...The script will work on one or two databases, but I know what you mean...Actually having ONE member database.

It would probably lead to the best communication between the two programs, but it would also be very limiting in other ways.

For instance, a single member database would require considerable modifications, and even as a plugin, it would be very difficult to upgrade either wordpress or simplemachines to future versions. 

Since the whole advantage of the two programs is the tremendous developer community that constantly improves them, I believe that upgrade compatibility is a must.

As well, many larger sites would prefer a separate database for wordpress and smf.  In this case, a plugin which merged the member database would make this impossible.

So, although it may seem more convoluted, I still think two member databases with good communication is the way to go...although it is a big pain to make stable.

It's close!

cheers
Title: Re: SMF & WordPress
Post by: jjgallow on June 14, 2007, 05:29:05 AM
Since creating a user that already exists in smf has become so apparent as a major flaw, I've fixed this. 

What this means is that wordpress will Never register a user who is already in the smf database.  This ensures that the smf user cannot be over-written.

I've also increased compatibility with wpmu, and included additional safechecks for the databases.

ladynada, this version will be much safer for you and others with larger communities.

I would still recommend user registrations only through wordpress, but just for simplicity.  Either way, both of your databases should be safe now.

I've called this "Version 1.03", and it is very close to being called stable.

You can get it here:

http://www.earthorbit.com/opensource


p.s...my next goal is to synchronise user deletion...so when you delete a user in wordpress, they're deleted in smf as well.

Please let me know....do people even want this, and, do you know of any good API code I could use?

cheers


Title: Re: SMF & WordPress
Post by: Vandaahl on June 14, 2007, 06:28:27 AM
Here's a question: if a new member registers a Wordpress blog, and an account on the SMF forum is automatically created, will that SMF account still require the board admin/moderator to approve its activation? This seems like the safest option to me, bacause I like to have control over which new forum accounts get activated (to prevent spam).
Title: Re: SMF & WordPress
Post by: Ken. on June 14, 2007, 06:41:44 AM
jjgallow thanks for your good work! Your code just keeps getting better all the while.

Here a question that I know you've heard before, but it's an issue that many of us face if we have an existing SMF user base... will your code at some point be able to work in both directions by picking up members who are already in SMF?

This latest post you made sounds like it's getting close;
"What this means is that wordpress will Never register a user who is already in the smf database.  This ensures that the smf user cannot be over-written."
It that saying the WP would include SMF members in it's WP member base, or is that still outside the scope of the code as it is written now?

Thanks Ken
Title: Re: SMF & WordPress
Post by: jjgallow on June 15, 2007, 02:18:35 AM
Hello Vandaahl,

Great question.

To be as straightforward as possible, no.  the user will not require admin approval.
(but there's ways around it).

Currently, when a user registers in wordpress, the WP_SMF immediately writes to the SMF database, and the user is active.  This is simply an oversight, as the bridge is still in development.

There is one particularly easy way around it, even with the current bridge:

There are Many, many plugins available that will give wordpress the functionality to require such things as admin approval for user registration.  You could simply choose one of these plugins, and require admin approval to register at the wordpress end.  This would solve the issue.

Also keep in mind that I would like to create an SMF_WP plugin ...a twin bridge that plugs into SMF.  It would allow you to register users on SMF, and they would then copy to wordpress.  This would undoubtedly solve the problem, and I have every intention of creating this plugin soon.  This might also be the most logical long-term solution, as it is not meddling with the nature of wordpress, but rather allowing you to choose between wordpress and smf registration features. 

Title: Re: SMF & WordPress
Post by: jjgallow on June 15, 2007, 02:43:42 AM
Hello Ken,

The code is not there yet, but it is Very close.  Basically, it is at a point where it will not screw up your databases by confusing itself.  This is a good starting point!  It does not, however, do what you are asking...YET.

  Here are my priorities:

1.  Finish basic bridge functions
       -all I have left is user deletion features.  I'll have this done tomorrow, hopefully (will be version 1.04)

2.  Provide a Database Synchronization feature.  Basically, it will take all Existing users who are in just one database (such as smf), and copy them to the other (such as wordpress).  While being in two databases, their accounts will be linked in such a way that they will appear as one.
      -I believe that THIS is what you are looking for!  I am almost there!   I'm hoping to do this by the end of the week.  Obviously, I did not want to add this feature until the basic bridge was more complete and stable.

3.  Enhance bridge with some integration features and fix other bugs, such as any remaining cookie, login and logout issues.

4.  Begin work on a twin bridge that plugs into SMF, which allows SMF to talk back to wordpress.  For instance, users could register on SMF, and instantly would be Wordpress users on the same account.

5.  take a break, and wait for bug reports to come in  :)
Title: Re: SMF & WordPress
Post by: Sky-hawk on June 15, 2007, 11:25:26 AM
WP 2.2 + SMF 1.1.2

1.01, 1.02 - working
1.03 - not work - ''Blog profile was updated, but Forum Profile was not. Inconsistencies in the Forum database.''

p.s. way to the directory forum - ok.

Thanks for you work
Title: Re: SMF & WordPress
Post by: waremock on June 15, 2007, 02:22:42 PM
Quote from: jjgallow on June 15, 2007, 02:43:42 AM
Hello Ken,

The code is not there yet, but it is Very close.  Basically, it is at a point where it will not screw up your databases by confusing itself.  This is a good starting point!  It does not, however, do what you are asking...YET.

  Here are my priorities:

1.  Finish basic bridge functions
       -all I have left is user deletion features.  I'll have this done tomorrow, hopefully (will be version 1.04)

2.  Provide a Database Synchronization feature.  Basically, it will take all Existing users who are in just one database (such as smf), and copy them to the other (such as wordpress).  While being in two databases, their accounts will be linked in such a way that they will appear as one.
      -I believe that THIS is what you are looking for!  I am almost there!   I'm hoping to do this by the end of the week.  Obviously, I did not want to add this feature until the basic bridge was more complete and stable.

3.  Enhance bridge with some integration features and fix other bugs, such as any remaining cookie, login and logout issues.

4.  Begin work on a twin bridge that plugs into SMF, which allows SMF to talk back to wordpress.  For instance, users could register on SMF, and instantly would be Wordpress users on the same account.

5.  take a break, and wait for bug reports to come in  :)


Just wanted to say Thank You
Title: Re: SMF & WordPress
Post by: Vandaahl on June 16, 2007, 06:33:04 AM
Yes you are doing a great job jjgallow!
Title: Re: SMF & WordPress
Post by: jjgallow on June 18, 2007, 03:51:51 AM
Quote from: Sky-hawk on June 15, 2007, 11:25:26 AM
WP 2.2 + SMF 1.1.2

1.01, 1.02 - working
1.03 - not work - ''Blog profile was updated, but Forum Profile was not. Inconsistencies in the Forum database.''

p.s. way to the directory forum - ok.

Thanks for you work

Hello Sky-Hawk,

Thanks for your feedback!  OK, fair enough, I have "fixed" this and updated to "Version 1.031" with a few other very small patches.

http://www.earthorbit.com/opensource

Basically, this error will come up when you try to update the profile of a user that is not linked through the bridge.  This includes all users created before you installed the bridge.   It also rejects users with other database errors, such as duplicate names registered in smf.

Without this function, the bridge would just write over the user(s) with the same username.  Only, the same username doesn't ALWAYS mean the same person.  One person could have their username  registered in wordpress, and another person have the same username in SMF.  This function stops one person from writing over the other. 

Please let me know if this makes sense, and what you think of it.  If you still think it's a bug, please let me know!

In this updated version (1.031), the function is STILL active, but will operate silently and not produce an error message.  As well, "admin" is now immune, as "admin" is always created before the bridge and thus is rarely linked properly.


Basically, this problem should not come into play unless you have existing users.  It might suck now, but I don't want this bridge ruining people's databases.  Safety first, features next.  Very soon, I will release a version which allows you to "link" all existing users, and solve the problem for everyone.

cheers
Title: Re: SMF & WordPress
Post by: jjgallow on June 18, 2007, 03:56:20 AM
Hello waremock and Vandaahl,

Thanks,

I really appreciate it!

I have not dissapeared, but I did go away for the weekend to a place with no internet connection   :(

So, I'm a bit behind.  I will catch up and have a Version 1.04, with all basic features, by tuesday.
Title: Re: SMF & WordPress
Post by: jjgallow on June 20, 2007, 04:17:08 PM
Hello Vandaahl,

I thought more about this feature, and I do not think it would hurt to have it.  I have included it in Version 1.04, and I'll see how it goes.  Basically, when a user registers in Wordpress, WP_SMF (Version 1.04) will check with SMF to see if admin approval is normally required.

If it is, then the user will be registered on SMF but will still require admin approval to post in the forum.

Quote from: Vandaahl on June 14, 2007, 06:28:27 AM
Here's a question: if a new member registers a Wordpress blog, and an account on the SMF forum is automatically created, will that SMF account still require the board admin/moderator to approve its activation? This seems like the safest option to me, bacause I like to have control over which new forum accounts get activated (to prevent spam).

Title: Re: SMF & WordPress
Post by: jjgallow on June 20, 2007, 04:42:01 PM
Version 1.04 is done:

http://www.earthorbit.com/opensource/

Basically, this is the "final fix" for all of WP_SMF's basic features.

In particular, user deletion is now properly dealt with, and all features are now compatible with WPMU as well.

Other safeguards and features were also added.  In particular, I've added Vandaahl's suggestion of respecting SMF's registration settings for admin approval.

I think most people here want to see WP_SMF integrate their existing users.  It could do that now, but I want it to be safe and proper. 

Version 1.05 (what I'll work on next) will do that.  It will safely integrate existing users so that both previous and new members will work well with the bridge.  I'm tired though, and have put too much of my leisure into this.  I'll be back, but will be taking a break before updating 1.05.  If anyone else wants to take it on before me, go for it!
Title: Re: SMF & WordPress
Post by: jxk777 on June 24, 2007, 09:52:15 PM
HI,
I am very interested in this too. I am trying to switch from IPB 2.1.7 to SMF and I want to use Wordpress with SMF. My biggest problem right now is getting the conversion from IPB to SMF to work since the updated conversion script link doesn't work :(

With a little luck I'll find someone that has the working conversion so I can use this to finish my site, I'll be watching this thread for updates.

jxk
PS - thanks for your hard work!
Title: Re: SMF & WordPress
Post by: 7summits on June 25, 2007, 04:02:00 AM
Quote from: jjgallow on June 20, 2007, 04:42:01 PM
Version 1.04 is done:
In particular, user deletion is now properly dealt with, and all features are now compatible with WPMU as well.

Other safeguards and features were also added.  In particular, I've added Vandaahl's suggestion of respecting SMF's registration settings for admin approval.


Hi jjgallow, thanks for your work. I am about to do some fresh installs of SMF & WPMU, so this might be useful. But can you let me know how this bridge would/could work in practice when combined with WPMU, what would be the way/order to do it and if there is a way to avoid Splogs?
Title: Re: SMF & WordPress
Post by: greynor on June 27, 2007, 07:50:38 AM
Thank you jjgallow for the development of the plugin!

There is still a feature missing that would make me use the bridge:
Is it possible that you automatically create a new thread in a forum (you can define) by a user (you can select - or the current wordpress user) when you publish a new blog entry?
Title: Re: SMF & WordPress
Post by: jjgallow on June 28, 2007, 04:36:34 PM
Hello Greynor,

Thanks for your kind words.

There is no such feature yet.  I will think about this, but my initial reaction is that this feature would not be looked at for quite a while.  You could do it youself, but it would likely involve editing the SMF API substantially, for starters.

The reason I wouldn't give it priority is because it is a highly specialized feature, and I'm still trying to perfect aspects to do with members.

I would have a suggestion for you, though.  On DMRY's site, he describes various features he's included in the plugin that will integrate SMF Forums into your wordpress theme.  You may be able to integrate the blog so that it shows up in your forum automatically, through one of those scripts or throw wordpress's SSI.

Basically, would you be happy with knowing how to integrate the wordpress blog into your SMF theme?  Then yes, there is something that can be done about that.  An automatic thread, yes...but way too much coding for me :)

cheers,

Jeff
Title: Re: SMF & WordPress
Post by: jjgallow on June 28, 2007, 04:48:42 PM
QuoteHi jjgallow, thanks for your work. I am about to do some fresh installs of SMF & WPMU, so this might be useful. But can you let me know how this bridge would/could work in practice when combined with WPMU, what would be the way/order to do it and if there is a way to avoid Splogs?

Hello 7summits!

Great to hear this.  Please let me know how things work out for you!  To answer your question, while user deletion is now integrated, all other spam features are still separated (due to their complexity, and how quickly they're evolving).

I'm a little hesitant to integrate spam features, only to see all the code re-written a week later.  These features change quickly with both wordpress and smf.  It would be very easy to do, but would likely become incompatible on a regular basis.  I will eventually look into this.

To answer your question, Wordpress has some basic anti-spam features in it, and you can also get plugins from wordpress.org that give you advanced anti-spam features.  These plugins should be very compatible with this bridge.  The only catch is that if a user DOES get through  the spam filters, you will have to ban them on SMF separately, unless you delete them altogether.

My plan on dealing with this is to eventually create an SMF_WP plugin, one that works backwards from SMF to Wordpress.  So, if you prefer SMF's anti-spam features, you could register users through that side instead.

As for WPMU, it is designed by default to be a site-wide forum.  So, each user can create their own customized blog site, and register their own users.  But ALL users would be directed to the main, site-wide mother forum, where they would already be registered with a profile.

To create individual SMF forums for each WPMU blogger could be done, and I will do this.  I just haven't yet, because I was proud enough to get the compatibility going and all I need for myself is a site-wide forum.

The only directions for WPMU are that you HAVE to install it in the regular plugins directory, not mu-plugins.  I will eventually fix this so you can use either directory.  Other than that, you'll have to create themes that link to the forum.  Easy enough.  DMRY talks about some theme integration functions on his site as well.
Title: Re: SMF & WordPress
Post by: leoedin on July 03, 2007, 08:53:50 PM
Hi

Jeff: Do you have any timeline for version 1.05, as the functionality from exporting existing SMF users is a deal breaker.

Thanks for the excellent work!

Leo
Title: Re: SMF & WordPress
Post by: mpMS on July 03, 2007, 11:11:57 PM
Have tried it on a test system and it worked! Is it normal if I will logout on SMF and tried loging on again on SMF login page, SMF doesnt identify my password? I found out that I need to logout from WP and logon again in order to logon to SMF. Is it normal?



Title: Re: SMF & WordPress
Post by: jjgallow on July 04, 2007, 02:29:52 AM
Hello leoedin,

I would guess my timeline is by the end of this week.  I took a fairly significant break, but have begun working on it again today.  I'd say I'm about 1/3 done the user export code right now.

cheers  :)
Title: Re: SMF & WordPress
Post by: jjgallow on July 04, 2007, 02:34:54 AM
Quote from: mpMS on July 03, 2007, 11:11:57 PM
Have tried it on a test system and it worked! Is it normal if I will logout on SMF and tried loging on again on SMF login page, SMF doesnt identify my password? I found out that I need to logout from WP and logon again in order to logon to SMF. Is it normal?

Hello mpMS,

Thank you for bringing this up.  No, that's not normal.  It's not what happens for me.  Maybe it's a bug that's been overlooked.  I'm glad that it has otherwise worked for you!   Has anyone else experienced this?  I will try and get to the bottom of it.


Also...mpMS, I have PM'd you.  I doubt this is an isolated incident, but there might be parts of it that are specific to your setup.  We might be able to figure it out over private messaging.  Again, if others are runnning into this, please let me know.  I want this thing without bugs!
Title: Re: SMF & WordPress
Post by: greynor on July 04, 2007, 08:31:39 AM
Hi jjgallow and thanks for the extended reply

I suspected this would be a bigger problem. I found some code snippets in the SMF-Mambo Bridge forum where they tried to do something similar. You can take a look here (http://www.simplemachines.org/community/index.php?topic=14618.0), but I'm not too familiar with the SMF code to tell you if it would work or not.

A hook for automatically creating new threads would be the best solution, but i guess the SMF staff will never release something like this

I set up a test board at work and if I find some time I'll try to use the snippet linked above. I'm really looking forward for your new release - the user synchronisation of existing users will be a great help. Keep up the great work, you're the reason I'll use SMF ;)

Thanks,
Greynor
Title: Re: SMF & WordPress
Post by: jjgallow on July 04, 2007, 12:50:45 PM
Hello greynor, thanks!  the encouragement is appreciated!

I would like to introduce more theme integration, and I will keep yours in mind when I do.  I'll also look at the code...it wouldn't be the first time I borrowed ideas from other bridges (I try to leave recognition in my code).

I can understand why SMF wouldn't want a hook there.  Quite the security breach.  But I'll see what can be done.

Please do let me know how your test board goes!  It would be a great feature for sure.

I'm working on 1.05 right now...going unusually well  :)

Title: Re: SMF & WordPress
Post by: jjgallow on July 05, 2007, 04:28:53 AM
 :) :) :) :) :) :)

Happy 4th of July!

Version 1.05 is done, and it was a lot of work!

BACKUP YOUR DATABASES BEFORE USING, PLEASE!

You can get it here:
http://www.earthorbit.com/opensource/

Basically, this is the version that allows established sites to use the bridge.  It will integrate previous users, so large sites can migrate their smf users to wordpress, or visa versa, and link them together!

It is obviously untested, and without warranty, so please backup your databases first and let me know how things go.  The more feedback, the faster I can make it stable.

This is, imho, the way to go for a Wordpress solution with SMF.  Using this pluggin, they are still entirely independent of one another.  You can uninstall one, or upgrade one, and the other will still function on its own.

At the same time, you can have your users seamlessly integrated.  The only real catch is that it works from Wordpress to SMF, so you can't register new users on SMF, for instance, and expect them to show up in Wordpress.  I am working on a solution to this....a twin plugin for SMF.


p.s....Please report any problems!  I've heard of a problem logging back into SMF, but can't verify it myself.  For the most part, I've been able to fix any problems reported quite quickly.
Title: Re: SMF & WordPress
Post by: mfapsj on July 05, 2007, 05:35:20 PM
I've installed it and as far as I can see it all works! However I'm still building the site so no 'real' activity is happening yet. But I've set up a try user account and integrated previous WP users successfully.

Now, I figured out how to disable User registration in SMF - because they won't integrate into WP. But how do I remove the password reminder in SMF? Because that'd mess with the WP user, wouldn't it?
Title: Re: SMF & WordPress
Post by: jjgallow on July 05, 2007, 06:31:10 PM
Hello mfapsj,

Great to hear you tried it out!

For password reminders, you're absolutely right.  This is a bit of an issue.

Until I build a plugin that works backwards from SMF, you'd have to link your password reminder to Wordpress's instead.

If  users do run into this problem, they can always go back and use Wordpress's password reminder.  It will over-ride any password changes made in SMF, and they should be in sync again.

Also,  Remember this:

If the user resets their password in SMF, and then goes to wordpress, it won't work, so they'll try to re-register.  It won't let them, and will tell them they already exist.  So, they'll try Wordpress's password reminder.  As soon as they do this, all should be in Sync again.  So, it is an annoyance but will not lock anyone out.
Title: Re: SMF & WordPress
Post by: mfapsj on July 06, 2007, 02:41:02 AM
Ah, ok. That sounds logical. Many thanks!

How can I change the linke the password reminder to WP, and the register link? I found the files that SMF is using but how to change the links that are in use on the actual site I have not been able to find (index.php?action=reminder & index.php?action=register). I think it'd make for a neater version.

Oh, and did I say many thanks for your efforts? I really appreciate it, it is an amazing feature - exactly the thing I was looking for!!
Title: Re: SMF & WordPress
Post by: mpMS on July 06, 2007, 04:02:03 AM
Speaking of accounts, I normally have many users on forum and limited to wordpress. What is the best method of integrating their accounts? Do I need to recreate a wordpress account and it will automatically integrate with smf?
Title: Re: SMF & WordPress
Post by: RoarinRow on July 06, 2007, 10:27:29 AM
Looks like some great progress here.  Looking forward with the next iteration for the twin plug in for SMF, where all my users are   8)
Title: Re: SMF & WordPress
Post by: shortyb on July 06, 2007, 04:14:41 PM
Looking good I am still using 1.4 and works great. I dont see the need to upgrade yet seeing as I need the SMF register to work into WP. I dont have a big members database in either one yet, and dont want to use WP's login as my main.

JJ- you rock man keep up the good work. I wish I knew more about SMF to be of some help but alas I do not.

add: Hey is there any way to display News/Announcements from SMF in the word press template? If not that would be a sweet feature to tack on as well. I know the orig author has how to do latest news post, board stats, users ect but no random news ! Any way. JJ do you think you will be making the SMF registration create the wp db any time soon?
Title: Re: SMF & WordPress
Post by: greynor on July 09, 2007, 11:39:21 AM
Yes, I finally integrated the bridge into my blog. And it works perfect!
I changed all the login/logout/register-links to the wordpress blog
A good hint for all of you: adding the ?redirect_to=FORUM_URL to the login/logout links is a nice feature for the forum-browsing people because of the automatic redirect to FORUM_URL after logging.
Title: Re: SMF & WordPress
Post by: GLMontyWV on July 09, 2007, 01:34:30 PM
Can anyone who has installed this please post a link to their forum?  Would love to take a look at this installed and running.  Thanks!  Monty
Title: Re: SMF & WordPress
Post by: jjgallow on July 09, 2007, 06:50:15 PM

mfapsj, 

Sorry I have not gotten back to you, I have been using all my extra time to work on a twin plugin for SMF that will eliminate the need for changing links or other code in SMF's theme.

I am almost done, and it will solve your problem.  Once I'm done this, I will start looking at various theme integrations, but as of yet I haven't even touched it (so I am not much help here!).  Either way, when I'm done this twin plugin, you won't NEED to change anything for user registration, etc., in SMF.

Quote from: mfapsj on July 06, 2007, 02:41:02 AM
Ah, ok. That sounds logical. Many thanks!

How can I change the linke the password reminder to WP, and the register link? I found the files that SMF is using but how to change the links that are in use on the actual site I have not been able to find (index.php?action=reminder & index.php?action=register). I think it'd make for a neater version.

Oh, and did I say many thanks for your efforts? I really appreciate it, it is an amazing feature - exactly the thing I was looking for!!
Title: Re: SMF & WordPress
Post by: jjgallow on July 09, 2007, 07:05:54 PM
hello mpMS,

first of all, did you get everything sorted out?  I'm assuming your upgrade solved the problem?

Sorry I have not answered your question yet.   VERY busy on this twin plugin, but almost done.  If you have WP_SMF Version 1.05 (or higher),  all you do is go to the Bridge Admin panel and there should be a button called "Integrate Previous Users".

Backup your database for precaution, then click on the button. You're done!   (yes, it WILL integrate your SMF users into wordpress for you)

As for manually creating a Wordpress account for them, this is not necessary and not recommended.    The bridge will not know what to do for this.  As a security precaution, it only integrates users with the same password.  Since you set them up, the passwords will be different and the bridge will not dare integrate them.

If you've already done this, here is my recommendation:

1.  Go into the Plugins Panel and Deactivate WP_SMF  (VERY IMPORTANT!)

2.  Delete all the user accounts in Wordpress that you created, unless they are active and have the same password as in the SMF account.
**********NOTE!  If you didn't deactivate WP_SMF, then it will be trying to delete these users in SMF!  Since it can tell they're bogus, it probably won't...but Deactivate it anyway.

3.  Re-Activate WP_SMF

4.  Backup your Databases

5.  Go to the WP_SMF panel, and Click on 'Integrate Previous Users'

Problem solved.  All your SMF users can now log into Wordpress.  Previous Wordpress users, and previous Dual users (with the same password) will also be integrated.



Quote from: mpMS on July 06, 2007, 04:02:03 AM
Speaking of accounts, I normally have many users on forum and limited to wordpress. What is the best method of integrating their accounts? Do I need to recreate a wordpress account and it will automatically integrate with smf?
Title: Re: SMF & WordPress
Post by: jjgallow on July 09, 2007, 07:17:41 PM
Thanks for the kind words, shortyb! 

Really appreciated.  If what you're doing works, stick with it.  But for general community knowledge, I will explain something here:

Version 1.05 (and later) are not inherently more dangerous than 1.04.  You can upgrade to them, and you should be okay.

Where you need to back your database up is when you Integrate Previous Users.  This is an Available tool on Version 1.05 (and later), but it will not just go ahead and do it on its own.  This precaution was made just for people like you who don't need the feature.

As for displaying News/Announcements, I will tack it onto my list.  There most certainly will be a way, but I haven't delved into themes yet.  I will be soon :)

p.s....if you find a way to do it, please let me know!

cheers

Quote from: shortyb on July 06, 2007, 04:14:41 PM
Looking good I am still using 1.4 and works great. I dont see the need to upgrade yet seeing as I need the SMF register to work into WP. I dont have a big members database in either one yet, and dont want to use WP's login as my main.

JJ- you rock man keep up the good work. I wish I knew more about SMF to be of some help but alas I do not.

add: Hey is there any way to display News/Announcements from SMF in the word press template? If not that would be a sweet feature to tack on as well. I know the orig author has how to do latest news post, board stats, users ect but no random news ! Any way. JJ do you think you will be making the SMF registration create the wp db any time soon?
Title: Re: SMF & WordPress
Post by: jjgallow on July 09, 2007, 07:18:53 PM
Quote from: RoarinRow on July 06, 2007, 10:27:29 AM
Looks like some great progress here.  Looking forward with the next iteration for the twin plug in for SMF, where all my users are   8)

Thanks Roarin Row, coming soon!

cheers
Title: Re: SMF & WordPress
Post by: jjgallow on July 09, 2007, 07:20:27 PM
Quote from: GLMontyWV on July 09, 2007, 01:34:30 PM
Can anyone who has installed this please post a link to their forum?  Would love to take a look at this installed and running.  Thanks!  Monty

I second that motion!  I have become so involved in this bridge code that I haven't even begun to develop my site.  It would be very inspiring, and helpful for sure, to see it in action.
Title: Re: SMF & WordPress
Post by: mpMS on July 09, 2007, 11:20:13 PM
Quote from: jjgallow on July 09, 2007, 07:05:54 PM
hello mpMS,

first of all, did you get everything sorted out?  I'm assuming your upgrade solved the problem?

Sorry I have not answered your question yet.   VERY busy on this twin plugin, but almost done.  If you have WP_SMF Version 1.05 (or higher),  all you do is go to the Bridge Admin panel and there should be a button called "Integrate Previous Users".

Backup your database for precaution, then click on the button. You're done!   (yes, it WILL integrate your SMF users into wordpress for you)

As for manually creating a Wordpress account for them, this is not necessary and not recommended.    The bridge will not know what to do for this.  As a security precaution, it only integrates users with the same password.  Since you set them up, the passwords will be different and the bridge will not dare integrate them.

If you've already done this, here is my recommendation:

1.  Go into the Plugins Panel and Deactivate WP_SMF  (VERY IMPORTANT!)

2.  Delete all the user accounts in Wordpress that you created, unless they are active and have the same password as in the SMF account.
**********NOTE!  If you didn't deactivate WP_SMF, then it will be trying to delete these users in SMF!  Since it can tell they're bogus, it probably won't...but Deactivate it anyway.

3.  Re-Activate WP_SMF

4.  Backup your Databases

5.  Go to the WP_SMF panel, and Click on 'Integrate Previous Users'

Problem solved.  All your SMF users can now log into Wordpress.  Previous Wordpress users, and previous Dual users (with the same password) will also be integrated.




Delete all users on WP? What if I will copy user password from WP to SMF, can I avoid deleting WP users? Also, what WP Role that will be set upon integration?
Title: Re: SMF & WordPress
Post by: shortyb on July 10, 2007, 01:05:55 AM
I turned WP registration on so people here could test it!! Register (http://loadedgamer.com/wp-login.php?action=register)
SMF info in WP: http://loadedgamer.com/forumstats/
Forum: http://loadedgamer.com/forum/

While the formating and some the info is wrong in the php code that displays post stats (I will try to look at some of the display stuff to see if I cant help out) The rest of the login/bridge stuff does work!  I do not however use WP registration. As an admin I have added users into WP and it creates the SMF login just fine.

This bridge works! it just needs some good polishing (thank goodness for JJ)

P.S. Hey gamers register for the site!  Help us become a laid back place for gamers of all styles.
Title: Re: SMF & WordPress
Post by: greynor on July 10, 2007, 02:04:38 AM
www.blackeye.org blog
www.couch-fiction.org/smf/ forum
Title: Re: SMF & WordPress
Post by: jjgallow on July 10, 2007, 01:20:05 PM
Hello mpMS,

The default role is subscriber when you integrate SMF users.  Those who need more authority can be modified later.

As for deleting users, you don't have to delete "ALL" WP users!  Only the ones that you created by accident, that are not being used.

If a Wordpress user account is being used, by all means leave it alone.  WP_SMF should sort through it.

But to answer your question, copying the password would also work....but there should be no need  :)
Title: Re: SMF & WordPress
Post by: jjgallow on July 10, 2007, 01:25:07 PM
Thats a Really nice site, shortyb!

I'll tack your comments onto my list of things to do down the road here.  Almost done this twin plugin.

You have some serious design talent!
Title: Re: SMF & WordPress
Post by: jjgallow on July 10, 2007, 01:36:49 PM
great workaround, greynor!

great blogsite too!  I feel like I'm seeing the future of websites with these examples.  It's very encouraging to see the talent that's onboard with this.
Title: Re: SMF & WordPress
Post by: shortyb on July 10, 2007, 08:21:08 PM
Quote from: jjgallow on July 10, 2007, 01:25:07 PM
Thats a Really nice site, shortyb!

I'll tack your comments onto my list of things to do down the road here.  Almost done this twin plugin.

You have some serious design talent!

Thanks man its SO nice to hear those words makes all the work worth it! This is one of my first true CSS based layouts I have done. Its been about 4 years since I have been into webdesign. I used to make some mean table based layouts though, but alas the standard has changed so much I feel like a noob. Now if I could just get some traffic to the site haha.

I am trying to work on the php display codes that output forum info. Any work I get done I will of course pass it on to be added to this bridge.
Title: Re: SMF & WordPress
Post by: mpMS on July 11, 2007, 05:03:10 AM
I have downloaded WP_SMF v 1.05 but it seems it doesnt integrate with WP. My WP version is WP 2.2.1 and SMF v 1.1.3.  As indicated on my previous post, I have the following path:

/var/www/blog - for Wordpress
/var/www/forum - for SMF

I have tried logging on to Wordpress and tried to visit the forum and it indicates that I am a guest.

I have already change the WP Plugin to path the SMF folder  to indicated path, integrate the users without the problem. I have browsed the database and found additional table on WP for user integration. Any other support here?
Title: Re: SMF & WordPress
Post by: jjgallow on July 11, 2007, 04:22:02 PM
Hello mpMS,

Sorry to hear that you are having so much trouble.

Your SMF and WP versions should be fine.

Did you convert to UTF-8?

(SMF is not UTF-8 by default, although many choose it in installation)
Title: Re: SMF & WordPress
Post by: mpMS on July 11, 2007, 08:40:53 PM
Quote from: jjgallow on July 11, 2007, 04:22:02 PM
Hello mpMS,

Sorry to hear that you are having so much trouble.

Your SMF and WP versions should be fine.

Did you convert to UTF-8?

(SMF is not UTF-8 by default, although many choose it in installation)

I think I've already did it (Under Forum Maintenance) I have also do the Convert HTML-entities to UTF-8 characters.

Hope you might help.
Title: Re: SMF & WordPress
Post by: greynor on July 12, 2007, 03:54:38 AM
I changed something that really bothered me and the members of my site:

in wp_smf.php i changed

$len = 3600;
into
$len = 3600*3600;

Before the login lasted only one hour (3600 sec), now 3600 hours.. It was quite painful to click on "login" on the forum, and getting redirected from wordpress immediatly because in wp you still are logged in and just the smf cookie got refreshed.

It's a workaround that's fine for me, I don't know if anyone else wants to use it.
Title: Re: SMF & WordPress
Post by: jjgallow on July 12, 2007, 06:37:28 AM
Hello mpMS,

It seems like you should be ok.   What happens when you try and register a new user in Wordpress now?  Do they show up in SMF?  Can they log in?

If you can clarify what part of the program isn't working, I'll do what I can  :)

Quote from: mpMS on July 11, 2007, 08:40:53 PM
Quote from: jjgallow on July 11, 2007, 04:22:02 PM
Hello mpMS,

Sorry to hear that you are having so much trouble.

Your SMF and WP versions should be fine.

Did you convert to UTF-8?

(SMF is not UTF-8 by default, although many choose it in installation)

I think I've already did it (Under Forum Maintenance) I have also do the Convert HTML-entities to UTF-8 characters.

Hope you might help.
Title: Re: SMF & WordPress
Post by: jjgallow on July 12, 2007, 06:43:08 AM
Hello greynor,

Makes sense to me.  I really appreciate your help!  I've made the change in Version 1.06, which I will make available shortly.  It will also come with a twin plugin.

My knowledge of cookies is very weak, so I'm not surprised there was a problem here (and I wasn't the one who wrote that part).   Until I have a reason to use something else that works, I'm going with your code.

cheers  :)

Quote from: greynor on July 12, 2007, 03:54:38 AM
I changed something that really bothered me and the members of my site:

in wp_smf.php i changed

$len = 3600;
into
$len = 3600*3600;

Before the login lasted only one hour (3600 sec), now 3600 hours.. It was quite painful to click on "login" on the forum, and getting redirected from wordpress immediatly because in wp you still are logged in and just the smf cookie got refreshed.

It's a workaround that's fine for me, I don't know if anyone else wants to use it.
Title: Re: SMF & WordPress
Post by: jjgallow on July 12, 2007, 05:50:40 PM
mmPS,

I'm almost certain I know what your problem is now, and thank you for pointing it out.  It was very important.

I have fixed it, and included it in WP_SMF 1.06.  All you need to do is upgrade, and you should be fine.  I will be releasing it shortly.

Please let me know how it goes!

cheers
Title: Re: SMF & WordPress
Post by: mpMS on July 12, 2007, 08:04:48 PM
Quote from: jjgallow on July 12, 2007, 05:50:40 PM
mmPS,

I'm almost certain I know what your problem is now, and thank you for pointing it out.  It was very important.

I have fixed it, and included it in WP_SMF 1.06.  All you need to do is upgrade, and you should be fine.  I will be releasing it shortly.

Please let me know how it goes!

cheers

Please PM me so I may know if WP_SMF 1.06 is released.
Title: Re: SMF & WordPress
Post by: greynor on July 13, 2007, 10:41:10 AM
heyas jjgallow

could you please post something like a to-do list or a feature list of your releases? i haven't found anything about what has been changed. would be a great help
Title: Re: SMF & WordPress
Post by: jjgallow on July 13, 2007, 04:07:39 PM
Hello Greynor,

Aside from bug fixes:

V 1.05 was the first version to integrate previous users into the bridge.

V1.06 will be the first version that works with a Twin Plugin in SMF.
             This means it will be able to integrate in both directions.  You can register your users on either system.  Same with password resets, etc.  it will basically be the bridge most SMF sites are waiting for.

****I will be taking a break here.....I am very tired.  Please do post problems and ideas, though.  I may not answer right away, but I will.

V1.07 Will be bug fixes, and cleanup of code.  I am about to release 1.06, and it is has been a LOT of work.   The code looks a bit like a war zone, and it was.  There will need to be some "consolidation" to move forward.

From here, user integration will be completed.  For future versions, I will work on:

-Site Integration  (to more easily meld the two interfaces)

-Suggestions on this thread, Readmes, Instructions, etc.

-Compatibility  (Ie., more work on non-UTF-8 encoded sites, etc.)
            -More testing with TinyPortal
            -More testing with WPMU.  There is a lot of potential here.
           -More testing with other portals, such as Mambo and Joomla.

*  Why test with other portals like Mambo and Joomla?  Because this bridge lets SMF and Wordpress operate independantly, which means either one (or both) may be theoretically tied into a separate portal, opening the door up to an incredible combination of integrations.

Title: Re: SMF & WordPress
Post by: mpMS on July 14, 2007, 01:00:52 AM
Quote from: jjgallow on July 13, 2007, 04:07:39 PM
Hello Greynor,

Aside from bug fixes:

V 1.05 was the first version to integrate previous users into the bridge.

V1.06 will be the first version that works with a Twin Plugin in SMF.
             This means it will be able to integrate in both directions.  You can register your users on either system.  Same with password resets, etc.  it will basically be the bridge most SMF sites are waiting for.

****I will be taking a break here.....I am very tired.  Please do post problems and ideas, though.  I may not answer right away, but I will.

V1.07 Will be bug fixes, and cleanup of code.  I am about to release 1.06, and it is has been a LOT of work.   The code looks a bit like a war zone, and it was.  There will need to be some "consolidation" to move forward.

From here, user integration will be completed.  For future versions, I will work on:

-Site Integration  (to more easily meld the two interfaces)

-Suggestions on this thread, Readmes, Instructions, etc.

-Compatibility  (Ie., more work on non-UTF-8 encoded sites, etc.)
            -More testing with TinyPortal
            -More testing with WPMU.  There is a lot of potential here.
           -More testing with other portals, such as Mambo and Joomla.

*  Why test with other portals like Mambo and Joomla?  Because this bridge lets SMF and Wordpress operate independantly, which means either one (or both) may be theoretically tied into a separate portal, opening the door up to an incredible combination of integrations.


Hi jj,

Good news!!!  ;D I have successfully integrate WP with SMF thru WP_SMF 1.06 you've made. Here is my observation:

QuoteAfter the activation of plugin, I have tried logging on from WP and visited the SMF and found that I am logged on automatically. When I logged out from WP and visited SMF, I am also logged out from SMF.

When logging on from SMF, and visited WP, account was not logged on.

Upon integration, noticed that all SMF users will have author role on WP which I would suggest to mark them as subscriber.

Nice effort youve make jj. Just a little more, you will almost perfect WP and SMF integration!!!

Congratulations and more power
Title: Re: SMF & WordPress
Post by: jjgallow on July 14, 2007, 04:34:02 AM
Thanks mpMS, that was REALLY appreciated!


*Just to explain, mpMS has been testing WP_SMF 1.06 out for me since 1.05 was incompatible for them.

Your feedback is really encouraging, mpMS.  It did what it's supposed to.

To explain, WP_SMF will integrate the SMF users to whatever your default registration setting is on Wordpress.  Yours must have been on "Author".  To register everyone as Subscriber, you would just change this setting in Wordpress Admin.  If this does not work for anyone, please let me know.

As for logging in and out from SMF, you need the Twin Plugin for this.  I will release this half shortly, and you will then have full integration.

cheers!
Title: Re: SMF & WordPress
Post by: mpMS on July 14, 2007, 06:21:17 AM
Quote from: jjgallow on July 14, 2007, 04:34:02 AM
Thanks mpMS, that was REALLY appreciated!


*Just to explain, mpMS has been testing WP_SMF 1.06 out for me since 1.05 was incompatible for them.

Your feedback is really encouraging, mpMS.  It did what it's supposed to.

To explain, WP_SMF will integrate the SMF users to whatever your default registration setting is on Wordpress.  Yours must have been on "Author".  To register everyone as Subscriber, you would just change this setting in Wordpress Admin.  If this does not work for anyone, please let me know.

As for logging in and out from SMF, you need the Twin Plugin for this.  I will release this half shortly, and you will then have full integration.

cheers!
Hi jj,

What I did is I have changed the WP role on selected Author users (to Subscriber) that was a regular user on SMF. I didnt find any problem with that. I just remeber on your last version of this plugin that the default WP role was subscriber. Anyway, no big deal, its working right now ;D.

Btw, if your latest plugin will be released, shall I deactivate the plugin and activate your new plugin?
Title: Re: SMF & WordPress
Post by: jjgallow on July 14, 2007, 07:33:04 AM
Hello mpMS,

Yes, and this is for everyone:

Deactivate, replace the plugin, Reactivate.

Then set the path.


The Twin Plugin will not require any configuration...but it must be installed After WP_SMF.  Also, it only works with version 1.06.

I will release very shortly here  :)
Title: Re: SMF & WordPress
Post by: jjgallow on July 14, 2007, 10:15:24 AM
 :) :) :) :) :) :) :) :) :) :) :)   ----Thanks to everyone who helped me on this thread!

It's here...

Wordpress and SMF are now friends, unofficially.  It's near consensus that SMF is the best forum software available anywhere, and likewise that Wordpress is the undisputed champion of blog software.  I started on this script with the notion that I should be able to have both.   I wanted the best of both, without worrying about CMS's that take over my site's personality and functionality.  Now the best blogging and forum software in the world works together! (but the two systems can still run entirely independant of each other)

Version 1.06 can be downloaded here:
http://www.earthorbit.com/opensource

And when you've installed that, you can add it's twin plugin, SMF_Wordpress, for complete user integration! (except for the inevitable bugs)

This is what I've been aiming for the whole time.  It was way over my head, but I have learned a lot.  I've never written a plugin.  DMRY started WP_SMF, but SMF_Wordpress would be the first plugin I've written on my own.  As plugins go, I figure it's a pretty powerful one.

I'm too tired to list all the features, but I think people will enjoy this.  Please post feedback, I always appreciate it!  If I don't get back right away, it's because I will be taking a break for a while.  This was way more work than I anticipated.

cheers!

p.s...
This has taken an incredible amount of time and coding.  I am tired, the script is tired.  In case there are bugs and it does not work for some people, I am keeping up the link to WP_SMF 1.05:
http://www.earthorbit.com/opensource/WP_SMF_1.05.zip                 or
http://www.earthorbit.com/opensource/WP_SMF_1.05.rar


Note:  This software is Use at Your own risk, not mine!  I take no responsibility, of course, for this free script.  In fact, I might suggest that at this stage of it's development, there WILL be bugs.
Title: Re: SMF & WordPress
Post by: Ken. on July 14, 2007, 10:47:15 AM
Great work jjgallow!!!

As you said... "I wanted the best of both" and it sounds like we are there!
After a little testing to get all/any bugs worked out we will indeed have the best of both.

Thanks for all of your hard work, for a first try you have written one very special plugin/mod.
Title: Re: SMF & WordPress
Post by: mpMS on July 15, 2007, 08:02:47 AM
Quote from: jjgallow on July 14, 2007, 10:15:24 AM
:) :) :) :) :) :) :) :) :) :) :)   ----Thanks to everyone who helped me on this thread!

It's here...

Wordpress and SMF are now friends, unofficially.  It's near consensus that SMF is the best forum software available anywhere, and likewise that Wordpress is the undisputed champion of blog software.  I started on this script with the notion that I should be able to have both.   I wanted the best of both, without worrying about CMS's that take over my site's personality and functionality.  Now the best blogging and forum software in the world works together! (but the two systems can still run entirely independant of each other)

Version 1.06 can be downloaded here:
http://www.earthorbit.com/opensource

And when you've installed that, you can add it's twin plugin, SMF_Wordpress, for complete user integration! (except for the inevitable bugs)

This is what I've been aiming for the whole time.  It was way over my head, but I have learned a lot.  I've never written a plugin.  DMRY started WP_SMF, but SMF_Wordpress would be the first plugin I've written on my own.  As plugins go, I figure it's a pretty powerful one.

I'm too tired to list all the features, but I think people will enjoy this.  Please post feedback, I always appreciate it!  If I don't get back right away, it's because I will be taking a break for a while.  This was way more work than I anticipated.

cheers!

p.s...
This has taken an incredible amount of time and coding.  I am tired, the script is tired.  In case there are bugs and it does not work for some people, I am keeping up the link to WP_SMF 1.05:
http://www.earthorbit.com/opensource/WP_SMF_1.05.zip                 or
http://www.earthorbit.com/opensource/WP_SMF_1.05.rar


Note:  This software is Use at Your own risk, not mine!  I take no responsibility, of course, for this free script.  In fact, I might suggest that at this stage of it's development, there WILL be bugs.

Hi jj,

I will try the Twin plugin and will give you feedback on this. Thanks for all your effort. Also, got your info on PM. Will send you mine  ;D
Title: Re: SMF & WordPress
Post by: mpMS on July 15, 2007, 08:18:59 AM
Hi jj,

How can I add this twin plugin if I already install version 1.06? Do I just copy the twin plugin and thats it? Or I need to deactivate 1.06 and install twin plugin?
Title: Re: SMF & WordPress
Post by: jjgallow on July 15, 2007, 10:42:48 AM
Hello mpMS,

If you have WP_SMF 1.06 already installed in Wordpress, then all you need to do is install the Twin Plugin.  You won't need to deactivate anything.  You can download the Twin Plugiin here:

http://www.earthorbit.com/opensource/SMF_Wordpress_1.06.zip

Just go to your SMF admin, and click on "Packages", then click on "Download", and upload SMF_Wordpress there.  Then go to "Browse Packages" and click on "Apply MOD".

It will l show the SMF_Wordpress Readme here, and then just click on "Install" at the bottom of the page.

It is the same procedure you would use for most SMF plugins. 

then you're done!   there's no configuring to do for the Twin Plugin.

cheers!
Title: Re: SMF & WordPress
Post by: aglioeolio on July 15, 2007, 04:29:49 PM
thanks for Sharing this plugin jjgallow
Title: Re: SMF & WordPress
Post by: mpMS on July 15, 2007, 08:26:45 PM
Quote from: jjgallow on July 15, 2007, 10:42:48 AM
Hello mpMS,

If you have WP_SMF 1.06 already installed in Wordpress, then all you need to do is install the Twin Plugin.  You won't need to deactivate anything.  You can download the Twin Plugiin here:

http://www.earthorbit.com/opensource/SMF_Wordpress_1.06.zip

Just go to your SMF admin, and click on "Packages", then click on "Download", and upload SMF_Wordpress there.  Then go to "Browse Packages" and click on "Apply MOD".

It will l show the SMF_Wordpress Readme here, and then just click on "Install" at the bottom of the page.

It is the same procedure you would use for most SMF plugins. 

then you're done!   there's no configuring to do for the Twin Plugin.

cheers!
I have applied the mod to my SMF but it didnt work. When I tried to login to SMF and tried visiting WP, it identifies that I am not logged on to WP. Just notice, is SMF knows that WP folder I am referring to? Or do I need to point the WP folder manually?
Title: Re: SMF & WordPress
Post by: jjgallow on July 15, 2007, 09:11:25 PM
Hello mpMS,

That's dissapointing!  The only thing you need to configure is WP_SMF...the path to SMF.  The new twin plugin does not need any configuring...it should know where everything is.  But...did you install a fresh version of 1.06?   Remember that the test copy of 1.06 I gave you...will never work with the Twin Plugin.  And did you set the path correctly in WP_SMF?  If so, I'm not sure.   It should work.
Title: Re: SMF & WordPress
Post by: mpMS on July 15, 2007, 11:02:20 PM
Quote from: jjgallow on July 15, 2007, 09:11:25 PM
Hello mpMS,

That's dissapointing!  The only thing you need to configure is WP_SMF...the path to SMF.  The new twin plugin does not need any configuring...it should know where everything is.  But...did you install a fresh version of 1.06?   Remember that the test copy of 1.06 I gave you...will never work with the Twin Plugin.  And did you set the path correctly in WP_SMF?  If so, I'm not sure.   It should work.
I have deactivated the 1.06 plugin and download a new one. Before I install the new plugin, I have uninstalled the SMF-WP twin plugin.

I have copied the WP_SMF 1.06 to the wp-content and activated the plugin. after that, I clicked Repair user links and update SMF folder. Afterwards, I have installed the SMF-WP twin plugin. After that, I have closed the browser and tried to logon to WP. in this test, SMF logon works. Next test is I have logoff both and close the browser. I have first logon to SMF and visited WP and notice that I am not logon to WP. what did I do wrong? If its ok to chat with you on this thru Messenger (I only have Yahoo, or gmail).
Title: Re: SMF & WordPress
Post by: jjgallow on July 16, 2007, 11:52:57 AM
Has anyone else tried the plugin?

I'm curious.  It works for me without issue.   

One thing I shoud mention...WP_SMF MUST be installed in it's default WP_SMF folder name.  I may make this more flexible in future versions,but for now it has to be that folder.
Title: Re: SMF & WordPress
Post by: Ken. on July 16, 2007, 12:24:55 PM
I'm in the middle with some other stuff on my forum just now jjgallow but have plans to try it asap... hopefully within the next 3-4 days.
Title: Re: SMF & WordPress
Post by: mfapsj on July 16, 2007, 12:57:54 PM
As I've said before I don't have any activity yet - won't have for some time until I've finished building the complete site - but with the new version + SMF twin plugin I'm able to log in at the SMF front then go to WP and it recognizes me as already logged in. So, I think it is all working perfectly for me :) many thanks!!!
Title: Re: SMF & WordPress
Post by: jjgallow on July 16, 2007, 08:40:43 PM
That's great to hear, mfapsj!  I feel bad for poor mpMS...I can't view the site either, so I don't know what's wrong there. 


Very glad to hear it's working for you.  On all my tests, it's pulled through so far.    Good luck to you too Ken, keep in touch!
Title: Re: SMF & WordPress
Post by: mpMS on July 16, 2007, 08:57:02 PM
Quote from: jjgallow on July 16, 2007, 08:40:43 PM
That's great to hear, mfapsj!  I feel bad for poor mpMS...I can't view the site either, so I don't know what's wrong there. 


Very glad to hear it's working for you.  On all my tests, it's pulled through so far.    Good luck to you too Ken, keep in touch!
yeah it really bad  :-[

I have sent you your requested info. I may chat with you personally if you want.
Title: Re: SMF & WordPress
Post by: brainiac744 on July 17, 2007, 03:13:32 PM
First of all, this plugin is AWESOME, and it has gotten the WPMU  blogging part of my site started.

I installed the bridge on my site with 4000+ members. It DID eventually bridge all the users after I clicked the button many times, but since I had so many members to bridge, the max execution time was reached before the script finished entirely. I can't raise the limit since my host is running in safe_mode, but I thought you should know so that in the next version you could perhaps have some kind of detection for that?

Also, I seem to be having a couple of cookie issues, but I think that has something to do with the fact that the forum and blog are on two different subdomains, thought you should know about that too.

All in all, this is a great plugin, and thanks for your hard work on it.
Title: Re: SMF & WordPress
Post by: mpMS on July 17, 2007, 08:37:42 PM
Nice to hear your feedback brain....

For me, I am currently coordinating with jjgallow about my issue. I have WP on my intranet and he is currently looking for solution to handle SMF_WF mod package.

Title: Re: SMF & WordPress
Post by: jjgallow on July 18, 2007, 12:58:46 AM
Hello brainiac 744,

Thank you for the kind words!  I really appreciate it!  I have been hoping for a user like you that really tests the current limits of this script.   WPMU with subdomains will definitely be why you're having cookie issues.  mpMS also has some, but it is because they have a very unique setup on an intranet. 

I think we can iron out the cookie issue quite quickly for you.   What exactly is the cookie situation?  Is the problem about logging in, logging out, or both?  Are you having troubles going from SMF to wordpress, visa versa, or both?

I'll make this script's cookie handling compatible for you, and then I'll deal with integrating users in a large database.  That should be fairly easy to iron out as well.

Please let me know, and if you're more comfortable, you can PM me with the info.

cheers  :)

Quote from: brainiac744 on July 17, 2007, 03:13:32 PM
First of all, this plugin is AWESOME, and it has gotten the WPMU  blogging part of my site started.

I installed the bridge on my site with 4000+ members. It DID eventually bridge all the users after I clicked the button many times, but since I had so many members to bridge, the max execution time was reached before the script finished entirely. I can't raise the limit since my host is running in safe_mode, but I thought you should know so that in the next version you could perhaps have some kind of detection for that?

Also, I seem to be having a couple of cookie issues, but I think that has something to do with the fact that the forum and blog are on two different subdomains, thought you should know about that too.

All in all, this is a great plugin, and thanks for your hard work on it.
Title: Re: SMF & WordPress
Post by: brainiac744 on July 18, 2007, 11:19:13 AM
It would probably be more helpful for people with similar setups if we stayed here and did it, but if you'd rather PM that's fine.

The problem is that anytime I log into SMF I'm not logged into WP, and the same is true for the reverse. Another little glitch is that no matter what I set the cookie duration to when I log into SMF it defaults to an arbitrary value. That's not such a large deal, but everybody keeps having to log back in. If that time value could change, I'd set it to something like this:
time()+60*60*24*365

That SHOULD make the cookie stick for a year, unless they log out.

I -think- that most of my users got integrated before the max execution was reached, but SMF and WP are reporting a different number of users. WP is reporting about 200 more than SMF (all users were integrated from SMF to WP, so if I need to toast everything in the WP database, that's not a large deal). A couple of my users are also reporting problems logging in, I haven't experienced that though. For them I've just been logging into WP and manually changing their password there.
Title: Re: SMF & WordPress
Post by: jjgallow on July 18, 2007, 12:57:01 PM
Hello brainiac744,

I will be around later today, and hopefully we can find a time to fix some of these problems.

I have addressed a number of them already, involving the cookies.  I have not updated the version number, but fresh downloading fresh builds from my site:

http://www.earthorbit.com/opensource

Should help with a lot of your compatibility problems.

You could re-install, or simply replace these two files:

yourblog/wp-content/plugins/wp_smf.php
and
yourforum/Sources/SMF_Wordpress.php


cheers!

I willl PM you as well.
Title: Re: SMF & WordPress
Post by: brainiac744 on July 18, 2007, 01:06:29 PM
Okiedokie, I'll update those files now.

You might want to wait a few days to look into my problems because I just got word from my server admin that one of the drives in the mysql server's raid array died, and a replacement won't be here until probably the weekend.


UPDATE:
OK, here's what seems to be happening now:
-Logging in and out from each package (SMF and WP) seem to only affect that package for users integrated from SMF to WP. I can login to either one with my username and password from SMF though.
-Logging in from the login form on my home page (which is connected to SMF's SSI.php) only logs me into SMF
-Logging into WP from the only account that was there before integrating (admin) logs me into both SMF and WP, but SMF doesn't show a username for me. (i.e. instead of saying "Hey, USER, you have 0 messages" it says "Hey, , you have 0 messages" in the header)

From these symptoms I'd say that when I integrated users it probably didn't completely finish before dying on me. At this point would it be easier for me to just deactivate the plugin on the WP side and clear out all the users? As far as I know (since I called it a beta and launched it only yesterday) only a couple blogs have been made so I wouldn't feel bad about erasing them.


Here's a bit more information about how my blogs and forum are set up:
-The forum is in a subdirectory from the main site (domain.com/smf)
-The blogs are in subdirectory mode, but are on a subdomain of the main site (blogs.domain.com/user)


Also, testing things on the server has become very difficult because since the RAID array is running in degraded mode, I'm getting a lot of mysql errors (not related to the bridge).



Oh and I almost forgot. The SMF plugin page on WP won't seem to load for me anymore, I just get a blank white page. Not sure if that's a result of the database server fluctuating or not...
Title: Re: SMF & WordPress
Post by: shortyb on July 18, 2007, 05:46:05 PM
Hey sorry works had me all over trying to make me an IT guy when Im not that skilled with bs. ANY WHO! Nice work man! I have installed the new twin plugin works good got all the current users added to WP now. So far I have not gave a real hard testing but I will so far all looks to be a lot better thanks for making the looks for stats better can be viewed here. (http://loadedgamer.com/forumstats/) Still waiting on the News/Announcements wp.display though! (I have had no time to work on tracking down how to do it )

Issue: User Deletion! When deleted from wordpress admin it gives this error

Warning: implode() [function.implode]: Bad arguments. in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 394

Warning: implode() [function.implode]: Bad arguments. in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 394

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 395

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 403

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/WP_SMF/smf_api_1.1.php:394) in /wp-includes/pluggable.php on line 329

But does delete the user from both database's. However it leaves the member counter and latest member stats the same. Deletion from SMF Works for all SMF features but does not delete from WP.

I'm thrilled I can now use the SMF registration for my whole site thanks man!
Title: Re: SMF & WordPress
Post by: jjgallow on July 18, 2007, 08:17:49 PM
Thank you too, shortyb!

Great stats integration!  I can't wait to get all user issues ironed out so I can just work on the site integration features...which have huge potential.

I was actually aware of that error, and I will address it, but since the deletion actually works, I have not gotten there yet.  Absolutely, the next version will clear any error messages up for deletion and get the counts right too.  The problem is in the way the function loops, because it only gives errors when multiple users are deleted.

Thanks for the heads up...  I promise to take care of that for 1.07.  And congrats for successfully bridging your site!
Title: Re: SMF & WordPress
Post by: jjgallow on July 18, 2007, 08:21:21 PM
Hello brainiac744,

That's unfortunate!  Sorry I haven't caught you today. 

Tonight, I'm going to build a site with the same configuration as yours, and get everything working.  I'll even add 4000 users and subdomains.

cheers
Title: Re: SMF & WordPress
Post by: brainiac744 on July 18, 2007, 11:19:45 PM
Thanks for all the help and for doing that. Unfortunately I've just gotten word that the new drive won't be here until Friday, and until then that database server is inaccessible. That means I unfortunately won't be able to provide any more feedback until then.
Title: Re: SMF & WordPress
Post by: jjgallow on July 19, 2007, 03:11:44 AM
Quote from: brainiac744 on July 18, 2007, 01:06:29 PM

-Logging into WP from the only account that was there before integrating (admin) logs me into both SMF and WP, but SMF doesn't show a username for me. (i.e. instead of saying "Hey, USER, you have 0 messages" it says "Hey, , you have 0 messages" in the header)

From these symptoms I'd say that when I integrated users it probably didn't completely finish before dying on me.

Hello brainiac,

For this particular situation, the way the integration tool works, wordpress's admin would have been the first user integrated.  So there wouldn't have been any timeout problem.  My guess is this is also a cookie problem.  If you check in SMF, you should be able to tell if "admin" is a member or not...this would help narrrow down the problem.

p.s....sorry to hear about your RAID drive.  best luck with it.
Title: Re: SMF & WordPress
Post by: jjgallow on July 19, 2007, 03:18:38 AM
Quote from: brainiac744 on July 17, 2007, 03:13:32 PM

I installed the bridge on my site with 4000+ members. It DID eventually bridge all the users after I clicked the button many times, but since I had so many members to bridge, the max execution time was reached before the script finished entirely. I can't raise the limit since my host is running in safe_mode, but I thought you should know so that in the next version you could perhaps have some kind of detection for that?

Hello brainiac,

It's too bad you're stuck in safe_mode here, but my guess is that you did complete the integration.  For the next version, I have increased the maximum time to 5 minutes.  However, since you're in safe_mode, as you described, it will not fly for you.  It is very easy to detect safe_mode, but not so easy to get around it. 

I will try to figure out a workaround for this, but it won't be simple.  Let's see if your repeated clicking method turns out to have worked!  I think it should.
Title: Re: SMF & WordPress
Post by: jjgallow on July 19, 2007, 03:47:52 AM
Ok brainiac and shortyb,  I have addressed a number of issues brought up, and fixed the script for them.    These include:

shortyb:  deletion error warnings  --> Identified and  fixed.

brainiac:  WPMU cookie problems with subdomains --> Identified and fixed.
(this includes all your login and logout problems)

brainiac:  Blank screen in WP_SMF admin  -->  Identified and fixed.

brainiac:  Integration timeouts for large databases  -->  Identified, improved...but will still timeout in safe_mode.  I will work on this.


I am including these fixes in version 1.07, now available at:
http://www.earthorbit.com/opensource

Both plugins need to be updated for the changes to take effect, and the SMF path may need to be set again in "Plugins-->SMF".


Please let me know if they work for you.  If they do, I can move onto some of the other issues.

cheers  :)


p.s....mmPS, I have not forgotten you!  I have PM'd you.
Title: Re: SMF & WordPress
Post by: mpMS on July 19, 2007, 04:46:49 AM
Hi jj,

I have good news and bad news....

I have installed the WP_SMF 1.07 and SMF_Wordpress 1.07 and it works fine except for SMF to WP  :-[

I forgot to tell you that I am using Internet Explorer 6 & 7, so I decided to use Firefox and tried if I will also encounter this problem.

You know what? IT WORKED!!!  8) 8) 8)

There is something to do with the browser.

Its almost time for a celebration... Just a little more....  ;D
Title: Re: SMF & WordPress
Post by: shortyb on July 19, 2007, 12:58:16 PM
mpMS I know this is probably a stupid Q but you do have your databases able to interact with each other right? you gave your wp db and smf db access to each other? Im not sure if you even have to with this script I just do it out of habbit because of other bridges working that way. I how ever have not tested IE6/7 yet other than looks being I use Firefox by default.
Title: Re: SMF & WordPress
Post by: jjgallow on July 19, 2007, 02:37:05 PM
Hello mpMS,

That's good news, sort of  :)

I'm glad you can do it in firefox.  I've tested it over and over again in IE 7, and it always works.  I don't have IE 6.

I know that IE can get very confused with cookies, and no doubt you have a lot of garbage in there with all this testing.  Have you deleted all your cookies in IE?  That may solve the problem right there.
Title: Re: SMF & WordPress
Post by: mpMS on July 19, 2007, 08:12:37 PM
Quote from: jjgallow on July 19, 2007, 02:37:05 PM
Hello mpMS,

That's good news, sort of  :)

I'm glad you can do it in firefox.  I've tested it over and over again in IE 7, and it always works.  I don't have IE 6.

I know that IE can get very confused with cookies, and no doubt you have a lot of garbage in there with all this testing.  Have you deleted all your cookies in IE?  That may solve the problem right there.
Actually I have tried in some computers (5 different PCs) and encounter the same scenario. It only works on firefox.
Title: Re: SMF & WordPress
Post by: mpMS on July 20, 2007, 02:04:33 AM
I have use some theme integration code like this:

<?php echo SMF_EnSonBasliklar($limit=10,'<ul>','<li>','</li>','</ul>'?>

It was ok but notice something. It displays the UTC system time and not the local time. How can I set it to display the local system time?
Title: Re: SMF & WordPress
Post by: jjgallow on July 20, 2007, 03:54:08 AM
Hello mpMS,

I have emailed you a solution to your time zone issue, although I must say I am mainly focused on user integration at this stage.

When I know that users are integrated without issue, then I'll focus on site integration.


As for your IE issue, I'm not sure.  It's very hard to evaluate when I'm not able to see your site or its details.

-Did you try the modified script I sent you?

-What are your Privacy and Security settings for IE?  Medium?  High?  Custom?

cheers
Title: Re: SMF & WordPress
Post by: mpMS on July 20, 2007, 04:29:02 AM
About the time issue, does it have 2 instance of these lines on wp_smf.php? I have tried to add the $time on two lines but it made the topic to display nothing, like 000 on WP.

About the security of IE, we just set IE to Medium-Low Security. Also, I didnt modify the script unless you told me to do it. ;D
Title: Re: SMF & WordPress
Post by: jjgallow on July 20, 2007, 10:38:36 AM
Hello mpMS,

did you give $time a value?

and about the other thing...

I sent you a modified script when I released 1.07.  I sent you an email, explaining that it might work better on your internet site.  I'm wanting to know if you tried that script.
Title: Re: SMF & WordPress
Post by: zerone on July 20, 2007, 04:34:44 PM
Hello,

I've a problem. I have a clean fresh install of WP and SMF (v2.2.1 & v1.1.3). Now i want install the Bridge (v1.07). I activated the WP Plugin and it seems to work. After that, i had to set the Path to SMF:

/is/htdocs/wp1020627_38PLQCKE3N/www/smf/

And at this point I get this messages:


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/tmp:/bin:/usr:/is/default.errors:/is/htdocs/wp1020627_38PLQCKE3N) in /is/htdocs/wp1020627_38PLQCKE3N/www/wordpress/wp-content/plugins/WP_SMF/smf_api_1.1.php on line 1240
...


my folder structure is simple:

/www
   /wordpress
   /smf

Any idea?
Thx for help!
Title: Re: SMF & WordPress
Post by: jjgallow on July 21, 2007, 01:29:19 AM
Hello zerone,

I really appreciate you pointing this out...

there's actually no reason for the script to be there that's causing you this trouble.  It was just some code I hadn't edited out yet.  It doesn't create warnings on my system, so I never noticed.

I've removed the junk code, and hopefully your errors as well.

If you download a new copy of the WP_SMF plugin here:

http://www.earthorbit.com/opensource

And replace it, you should be good to go.  I did not change the version for this...but the site is updated as of now.  There should be no need to re-install the SMF_Wordpress plugin for this.

cheers  :)
Title: Re: SMF & WordPress
Post by: mpMS on July 21, 2007, 08:56:33 AM
Quote from: jjgallow on July 20, 2007, 10:38:36 AM
Hello mpMS,

did you give $time a value?

and about the other thing...

I sent you a modified script when I released 1.07.  I sent you an email, explaining that it might work better on your internet site.  I'm wanting to know if you tried that script.
Got your message and will try it on monday.  Btw, can I get the hours difference on the smf database instead of manual entering it on the WP_SMF file?
Title: Re: SMF & WordPress
Post by: jjgallow on July 21, 2007, 10:56:13 AM
Absolutely, there is a way to fix this.  It would take me a while to get all the coding done for it, though.  I'd have to call for two separate variables from SMF that aren't normally available in that function.  I'd probably end up modifying the SMF api file to do it.

Anyway, long story short, I will look at fixing, and improving, site integration...but not right now.  I want to make sure everyone has great user integration without any bugs.
Title: Re: SMF & WordPress
Post by: jjgallow on July 21, 2007, 01:33:20 PM
OK, lol.

I feel bad now.  mpMS, I have included Time zones in the integration.  If you download a new copy of WP_SMF, you should be good.  I have not changed the version number for this.

Now, I felt it was more appropriate to tie this into Wordpress, where it will be displaying.  So, make sure your Wordpress time zone is set.  You can do this in the "Options" tab of Wordpress admin.

Enjoy  :)
Title: Re: SMF & WordPress
Post by: ladynada on July 21, 2007, 02:51:37 PM
Hi,
I saw this and thought of you, hope it helps you
Import Users Plugin for WordPress (http://www.dagondesign.com/articles/import-users-plugin-for-wordpress/)

QuoteThis plugin was created for people who need to easily add multiple users to their WordPress installation. Simply give it a list of usernames and email addresses, specify the role of the users (subscriber, author, admin, etc.) and it does the rest. It will automatically email each user and give them their randomly generated password. It also has validation in place to make sure the usernames do not already exist, that the email addresses are not already in use, that the usernames are valid, etc. After it processes the information, it tells you how many were added, and upon error, gives you the reason why each failed.

I think this means, you could modify this plugin for wordpress to provide automatic registration of all currently registered users of an SMF forum - at least giving the SMF users the same username.

:)

there may be other things you could do..

nada

Title: Re: SMF & WordPress
Post by: jjgallow on July 21, 2007, 03:18:18 PM
thanks ladynada,

I will look at this, it seems like a great integration tool that could possibly increase the level of integration for this bridge.

Now, I don't know if you've been following the thread lately, but WP_SMF does already import your previous users....from Wordpress or SMF...to the other.

cheers  :)
Title: Re: SMF & WordPress
Post by: ladynada on July 21, 2007, 04:40:46 PM
No I have only been glancing at the thread here, I did not know you have it importing both ways.  That is excellent.  Good Job.  I am interested in trying it out in the future. Right now I have too much on my plate...  alpha testing a new wordpress theme
check it out
http://heartdaughter.com/blogs/elijah/

If I can help with your mod, please ask.
nada
Title: Re: SMF & WordPress
Post by: zerone on July 22, 2007, 03:50:45 AM
Thx jjgallow  , the fix worked
Title: Re: SMF & WordPress
Post by: jjgallow on July 22, 2007, 01:37:23 PM
Zerone:  No problems, enjoy  :)

Ladynada...Thanks, I will keep that in mind!  Good to hear from you  :)
Title: Re: SMF & WordPress
Post by: mpMS on July 22, 2007, 08:20:34 PM
Quote from: jjgallow on July 21, 2007, 01:33:20 PM
OK, lol.

I feel bad now.  mpMS, I have included Time zones in the integration.  If you download a new copy of WP_SMF, you should be good.  I have not changed the version number for this.

Now, I felt it was more appropriate to tie this into Wordpress, where it will be displaying.  So, make sure your Wordpress time zone is set.  You can do this in the "Options" tab of Wordpress admin.

Enjoy  :)
Already got it jj! thanks again. Btw, one more thing,  about the theme integration, can we set viewable post only to public forum boards only?

As an example, I use this:
<?php echo SMF_EnSonBasliklar($limit=10,'<ul>','<li>','</li>','</ul>'?>

And it displays all post even on restricted forum boards that only allowed group/users can view. But if you click on the restricted post, it will prompt for a restricted board but can we remove it on the list?
Title: Re: SMF & WordPress
Post by: jjgallow on July 23, 2007, 02:59:48 AM
Hello mpMS,

I will have a look, I'm sure it can be done.

First though, did you ever get IE to work?
Title: Re: SMF & WordPress
Post by: mpMS on July 23, 2007, 09:34:17 PM
Quote from: jjgallow on July 23, 2007, 02:59:48 AM
Hello mpMS,

I will have a look, I'm sure it can be done.

First though, did you ever get IE to work?
Still not working on IE. It only works on firefox.  :(
Title: Re: SMF & WordPress
Post by: brainiac744 on July 23, 2007, 09:52:00 PM
OK, I've reinstalled and got the databases set back up now.

I integrated all users again (this time only two clicks, and the second time it actually told me it finished successfully)
I still seem to be having the same cookie problems, where if I login on SMF I don't login on the blogs (they're all blogs.domain.com/user)
ALSO, I've had a chance to talk to some of my users now. My username on the blog (I assume since it begins with a, and is user 1) was most likely integrated properly, so my password works both places. I can see all the forum users in the blog's users section (seems more like the right number of them now too), but most of them can't login with their SMF password, and when they reset the password on WP the new password that is emailed to them doesn't work, and it doesn't update the password in SMF.
Title: Re: SMF & WordPress
Post by: jjgallow on July 24, 2007, 02:45:31 AM

Hello brainiac744,

That's a little disapointing...I was suspecting far less hitches.

The number one suspect is usually the character encoding...are you using UTF-8 in SMF?

Hopefully I can figure this out quickly for you.
Title: Re: SMF & WordPress
Post by: brainiac744 on July 24, 2007, 10:54:14 AM
I wasn't originally, but I converted to UTF-8. Should I have also converted HTML entities to UTF-8? Like I said before, if I need to drop all the WP users that's not a big deal, SMF users on the other hand would be.
Title: Re: SMF & WordPress
Post by: jjgallow on July 24, 2007, 12:13:24 PM
Hello brainiac,

I would imagine that this isn't the problem if you've already converted.   We should be able to figure it out, though.  I've PM'd you.
Title: Re: SMF & WordPress
Post by: darkhors3 on July 25, 2007, 02:58:04 AM
hey jjgallow,

been following this thread as I have a base forum started and am working on the wordpress part next. For now, just trying to get the pieces all working before I really role this thing out

Anyhow, I installed both parts of the bridge per your instructions:
Wordpress -> SMF works (no issues yet)
SMF -> Wordpress has a small issue

When registering on SMF, the user shows up in Wordpress (along with the password they chose in SMF)

The problem is that when looking at the users from my WP Admin Panel, I notice that any "new" users from SMF are not assigned any roles by default. In my case the default role should be "Subscriber". Without a "default role" automatically set, a user going from the SMF board (logged in) to the Wordpress board will get the following error: "You do not have sufficient permissions to access this page."

This links back to the fact that they have no role set in Wordpress by default.

Thoughts?

btw, great work so far!

Website: www.totalwarhammer.com
Title: Re: SMF & WordPress
Post by: jjgallow on July 25, 2007, 04:17:56 AM
Hello darkhors,

thanks for the feedback....I'm just realizing some of the mistakes in the way it sets user roles.  It's causing problems for a few.  I'm working on it right now, and will update when solved.

cheers
Title: Re: SMF & WordPress
Post by: darkhors3 on July 25, 2007, 02:40:10 PM
I am more than happy to help out in any way I can (but my skills only limit me to testing and giving feedback I think!)

Anyhow, I have an open question for everyone to see if a plugin exists or is this something that would need be be created:

What I am looking for is a plugin to handle the following:

- Posting in WP will auto generate a post in a specified forum within SMF
- "Comments" link at the bottom of the WP post would take users to the specific SMF forum post generated above
- Comments "count" would pull from the # of replies in SMF under related forum post

In essence, taking the comments functionality of Wordpress and transferring it to SMF to help consolidate user interfaction in a single place as opposed to dealing with comments on the blog and posts in SMF.

Thoughts?
Title: Re: SMF & WordPress
Post by: jjgallow on July 26, 2007, 07:01:37 AM
hello darkhors3,

These are great ideas!

I am fully busy just trying to make user integration stable...and your problem is a perfect example of that.  As it becomes more reliable, I will begin investigating some of these site integrations.

Meanwhile, I've addressed your problem with users who register in SMF and don't have proper roles. 

I have released version 1.08 at:
http://www.earthorbit.com/opensource

It addressed a number of bugs, including that one.
Title: Swinging for the fence?
Post by: CosminB on July 26, 2007, 08:57:07 AM
Hello, jjgallow!

First of all, let me just thank you for all the work you've done so far. I really appreciate it. :) And oh man, I've tested this plugin yesterday and already you released a new version of it. Way to go!

Second... well, I have a WP blog for about 8 months now and I decided to transform it into a portal dedicated to the city I live in. Basically I'll keep and improve the blog, add a forum (SMF), add a photo (and video?) gallery and a load of semi-static pages so to say, and I want to have it all integrated. I only have two registered users on the blog, so no huge comunity - just me and a helpful friend also involved in this project.

Now, I can tackle the problem in two ways:
1) I create a single user DB, so that you have the same login screen anywhere in the site with the same options (fields) and all that
or...
2) I use your plugin and integrate SMF and WP.

However, I have two problems. In the first case, if I choose to make an unique DB for users, as you also said, it will be very hard to upgrade either SMF or WP. Not to mention the amount of work I need to get it done. I'm just a rookie with PHP & MySQL, mind you. The advantage would be total integration. Is it worth it considering what I want to do?

Now, on the other hand, if I use your plugin, all I have to do is tweak WP & SMF a bit, integrate the design and make the rest of the pages. I can manage that, but since I'm so new to PHP & MySQL, I don't really know where to start with designing an universal login screen.

Yeah, I know I'm aiming high for my curent knowledge, but I can't postpone the site's development anymore and besides, what better way to learn than hard work, eh?

Sorry for the slight off-topic and the long post. Hope you can give me some advice.

Cheers.
Title: Re: SMF & WordPress
Post by: jjgallow on July 26, 2007, 03:54:27 PM
Hello CosminB,

First of all, with my bridge you do not need a universal login screen.

Some may choose to have one for look and feel, but users will be integrated regardless of which system they log in from.


A single database is a neat idea, and others have suggested it.  You can actually run both wordpress and smf off of one database with my bridge, if you like.  It will, however, pull user information from two different sources in the database.

If you want to make a true, single user database, you could....but data is only a small part of the problem.   SMF and wordpress encode their passwords differently, and they cannot be read by the other.  They also handle their cookies entirely differently, and have different paths. 

Basically, you will run into all the same integration problems I am trying to fine-tune right now.  The only real difference is that you will have had to change so much of the code that they will likely be incompatible with most plugins, and you will be re-writing your code every time either system upgrades their version.  Rest assured, one year from now very few websites will be running on Wordpress 2.2 and SMF 1.1.3.   You'll either have to be one of those few, or constantly re-write your code to keep up with the times.

JMHO  :)
Title: Re: SMF & WordPress
Post by: CosminB on July 26, 2007, 05:49:44 PM
My mistake, I meant a single table for users. I made a second database just to test your plugin, and both WP and SMF use it. That's really not a problem. But it seems you understood me - I want WP & SMF to share the users table.

I know it's tricky, but I'm in the process of learning PHP and MySQL and this site I'm working on is a good (though hard) way to start. But there's another reason for wanting an unique users table. I plan to build a database of places in the city (restaurants, museums, cafes, bars, hotels etc) where registered users can leave comments and rate those places. So if I use your plugin I'll have 3 user tables, or at least 2, if I use WP's table with this places database.

I know CSS, HTML, Photoshop (for the graphic design part), and I'm a noob with PHP & MySQL. I have a basic idea of what to do, but I don't really know where to start with the coding.

Just thought you could help me a bit with some general tips like "do that, there". No code... you know. But I understand what you say, that is hard and I'll analyze the situation.

P.S.: I thought about the password problem too, but figured I can encode them in a way and make both WP & SMF use that encoding, since I'm basically making an all new users table and making WP use SMF's table or viceversa. Maybe I'm still missing something.
Title: Re: SMF & WordPress
Post by: darkhors3 on July 27, 2007, 12:15:56 AM
JJ

Thanks for the quick update, I will give it a whirl!

Based on the other comments, I really like where this piece is going. How complex and how far do you think you are going to take this development? I ask because I personally like SMF as the best forum software and want to stick with it.

If intrested, someone else has been going the same route as you on the phpBB side in developing an integrated WP/Forum solution. WP-United http://www.wp-united.com/ (http://www.wp-united.com/) has some pretty neat ideas which you could "copy" for use with SMF. Thought I would toss that out for you to see.

Keep up the great work!
Title: Re: SMF & WordPress
Post by: mpMS on July 27, 2007, 03:51:29 AM
hi darkhors3,

thanks for the tip. Probably the link you've gave may help jj solve some of the issues in bridging WP with SMF. I am currently monitoring this thread since I already have both CMS.

:)
Title: Re: SMF & WordPress
Post by: jjgallow on July 27, 2007, 05:45:01 AM
Hey Cosminb,

Absolutely, a single-user table would be a neat project...I'm not trying to be unhelpful.  If I can explain it another way:

Using a single database means changing the way SMF and Wordpress read and store their data.  This means a lot of modification, and it means that any other plugin or upgrade which tries to read that data normally will not function.

Using SMF and Wordpress's original databases, like this bridge, means that instead of changing the way they interpret data, the bridge just lets each program know what the other did.  This means that it will not affect future upgrades or plugins.  Nothing has "changed" about either program.

So...you either have one user table and change the scripts....or you have the two original databases...leave the scripts the same, and communicate between them.

Aside from my explanation..my guess is you would want to start at the database query level.  In wordpress, the file you would need to get to know is /wp-includes/query.php.  In smf, it would be /sources/subs.php.   This is not fun stuff, imho...but good luck!
Title: Re: SMF & WordPress
Post by: jjgallow on July 27, 2007, 05:49:34 AM
Hey darkhors,

Thanks,

Great tip, darkhors!  I'm sure that will help!  There must be some great developers over there.  Honestly, any endeavour to get phpbb to work with wordpress is more ambitous than this.  At least smf and Wordpress have some basic structure in common.

I will definitely be looking at what they've done there.

To answer your question about how far I'd like to take this...pretty far...but the current pace of development won't keep up.  This is taking up too much time.  I'd eventually like to see a lot more than just user integration.  Site integration...and new features that share both programs...would be great to see.
Title: Re: SMF & WordPress
Post by: CosminB on July 27, 2007, 02:29:56 PM
Thanks for clearing that up for me, jj. Actually, I was expecting it to ruin some features of both SMF and WP, and again, as you said, upgrades would be a big issue. I guess what I really want is a full blown, custom made CMS, but as you can imagine I don't have the time nor knowledge for pulling that kinda stuff. Not to mention that even if I was a PHP/MySQL/JS/Ajax/HTML guru, that's not something you should do on your own. It helps if you have even a small team. That being said, I decided to drop the whole idea. Instead, I'll go with Mambo for CMS, WP for blogging and SMF for the forum. Also, I might need a gallery, and I'll probably go with Gallery2. These should integrate fine, right?

I'll try to tweak all those to my need as much as I can and just hope I'll learn a lot. As for your plugin, thank you for all the effort you've put in it and I'll keep an eye on it for any problems. :) So far it works great, but I haven't done much yet as I'm only testing the whole thing (Mambo, SMF and the rest).
Title: Re: SMF & WordPress
Post by: haymann on July 27, 2007, 04:10:06 PM
Hello jjgallow,

Thank you for your work on this bridge, I can't imagine the work involved in that. Hard enough for me to install the two products let alone try to get them to work together!

A quick question for you. I get the following error after activating the plugin and trying to import the users (already had SMF, just did a fresh install of WordPress).
QuoteWarning: main(): open_basedir restriction in effect. File(smf_api_1.1.php) is not within the allowed path(s): (/opt/wordpress/:/tmp) in /opt/wordpress/wp-content/plugins/WP_SMF/wp_smf.php on line 385

Fatal error: Can't load smf_api_1.1.php, open_basedir restriction. in /opt/wordpress/wp-content/plugins/WP_SMF/wp_smf.php on line 385
The error might have showed up immediately after activating the plugin, but it isn't visible until I view my WordPress site, the WordPress admin section and SMF page throw no errors.

I am running this on a SME 7 server (http://www.contribs.org) and I can modify the basedir settings, I just don't know what to allow and was hoping you might be able to provide some insight...

To the rest of you users, now that you have your SMF and WP installs integrated so nicely, have you had any luck in finding matching themes?

Thanks again for your hard work jjgallow, I am looking forward to my install working properly!
Title: Re: SMF & WordPress
Post by: jjgallow on July 28, 2007, 04:33:22 AM
Hello haymann,

I am definitely not an expert with the open_basedir setting, or with SME 7 server, but generally open_basedir is disabled in etc/httpd/conf/httpd.conf.

The disabling would usually look like this:
Quotephp_admin_value open_basedir none

Alternatively, you could just set a much less restrictive open_basedir.  You might choose this on a shared host if you are concerned that others may be able to run your scripts.   It might look something like this:

Quoteopen_basedir= /opt/"

good luck!

p.s...I have modified the script to make this line more compatible...but I cannot promise it will work.  Even if it does, you're likely to run into this problem again as you clearly have quite restrictive settings.
Title: Re: SMF & WordPress
Post by: jjgallow on July 28, 2007, 04:57:15 AM
This is just a little note of information for someone who may have trouble down the road:

If you're running WPMU with the main site on a subdomain, like wpmu.yourdomain.com, you could run into cookie troubles with the WP_SMF bridge. To fix it, you need to set your cookies globally. In wp-settings.php, change this line:

Quotedefine('COOKIE_DOMAIN', '.' . $current_site->domain);

to this:

Quotedefine('COOKIE_DOMAIN', '.' . "yourdomain.com");

where "yourdomain.com" is the domain name of your site WITHOUT any subdomains in it.

cheers :)
Title: Re: SMF & WordPress
Post by: jjgallow on July 28, 2007, 05:52:44 AM
OK, SO:   New Version!

Thanks to all of you for helping me improve this bridge!  I have to give special thanks to brainiac744 here...there are some major changes in this version that would not have happened without him.

Version 1.09 is out, and I would recommend upgrading for those of you who have active sites.  Both plugins have had significant improvements made.

http://www.earthorbit.com/opensource

Special note on this version:  It will correct a major oversight of previous versions which allowed usersnames to be created in Wordpress with upper-case letters.  None of these users will be able to log into wordpress, as it requires lower-case usernames.

If you see that you have users in your wordpress database with upper-case usernames, clicking on "Repair User Links" in version 1.09 will correct all your users and make them functional.

As always, it is highly recommended to backup your database before using the "Repair User Links" tool.

The other highly notable change is vastly improved cookie handling for logins/logouts.   (mpMS, you may want to see if this does the trick for you.  And by the way...your username is uppercase--probably another reason it never worked for you in Wordpress!)

haymann...I've done my best to make this script work error-free for you!  Give it a try...if not...you just need a less restrictive open_basedir.

As for my revised version plans:   Very close to stable right now, in terms of user integration.  The next version... Version 1.1...I hope to officially declare "Stable" and seek approval from the SMF moderators.  Moving forward from there will be Site Integration.
Title: Re: SMF & WordPress
Post by: mpMS on July 28, 2007, 11:36:54 PM
Already downloaded it and will upgrade existing bridge. Will post details on this thread. Thanks for the update.  ;D
Title: Re: SMF & WordPress
Post by: haymann on July 29, 2007, 12:33:05 AM
Quote from: jjgallow on July 28, 2007, 05:52:44 AM
haymann...I've done my best to make this script work error-free for you!  Give it a try...if not...you just need a less restrictive open_basedir.
Excellent!! No errors now. I was able to get rid of the error by setting open_basedir to none, but I set it back to what it was and no errors :)
Quoteyou're likely to run into this problem again as you clearly have quite restrictive settings.
Yeah, by default SME is pretty security conscious. Seeing as how the server is usually setup to host the company's email, firewall, network storage, etc... I think that is usually a good thing ;D

Quick question, how do I "reset" so I can run through the entire plugin activation sequence again?

Thanks again for your help!
Ryan
Title: Re: SMF & WordPress
Post by: jjgallow on July 29, 2007, 03:26:35 AM
hello Haymann,

Welll, for  WP_SMF, deactivating..then reactivating...then clicking on "repair user links" should usually reset it sufficiently.

If you REALLY want to reset the thing, after deactivating it...delete the wpsmfusers table in your wordpress database.


On the SMF side...uninstalling and reisntalling SMF_Wordpress should be suffiicient.

glad  to hear you're error free,

cheers  :)
Title: Re: SMF & WordPress
Post by: haymann on July 29, 2007, 09:08:51 AM
I wanted to go through the whole process again because I was trying to remember if there was the option to put in the db name, db username, & db password because I had SMF in a different db. I was getting some sort of connection error. Disabling the plugin, deleting the wpsmfusers table and then reactivating the plugin did not take me through the entire process again. No matter though, I moved my SMF tables into my WP db and ran repair user links and everything worked great!

Hopefully my last question... I have no users for WP yet as I just installed it the other day; I do have users for SMF though. Your plugin imported my SMF users into WP just fine, but when I logged into SMF I noticed that most of my boards were hidden. Long story short... All of my existing SMF users have an upper-case letter as the first character of the user name. The plugin created new SMF users with all lower-case. I couldn't see most of the boards because I was logged in as a new user w/ basic access.

So my question is, what is the best way to avoid duplicate accounts? I am thinking that I will need to change all the user names manually in SMF and then re-run the plugin. This isn't a huge deal as I don't have a large number of users, but I wanted to ask incase you had a better suggestion.

Thanks again for this, I really appreciate folks like you that know how to do the things that I don't and are willing to share your work.
Title: Re: SMF & WordPress
Post by: brainiac744 on July 29, 2007, 01:14:47 PM
I'd just like to say that you've done an EXCELLENT job on this bridge and everything seems to be working perfectly for me now. Kudos to you :)
Title: Re: SMF & WordPress
Post by: jjgallow on July 29, 2007, 01:29:28 PM
Thanks brainiac744,

I'm really glad it's worked for you! 
Title: Re: SMF & WordPress
Post by: jjgallow on July 29, 2007, 01:40:36 PM
Hello haymann.


My apologies, my instructions on resetting the plugin were not really accurate.  What I should have said is:

If you want to COMPLETELY reset the plugin:

1:  Deactivate it in Wordpress, Uninstall it in SMF.

2:  **Remove Any users that the bridge created in Wordpress and SMF.**

3:  Delete the wpsmfusers table in Wordpress database.

4:  Reactivate it in Wordpress, Reinstall it in SMF.

5:  Click on "Repair User Links".


As you can see, I never told you to remove the users the bridge created.  That would have been all the lowercase users in Wordpress.  I do not believe you needed to do this for a database change, but ...Now you need to ...sorry  :)

My suggestion would be to delete all the lowercase users created in Wordpress and SMF, as well as the wpsmfusers table.

To explain:

The wpsmfusers table links the users from either platform.  When you deleted it, they were no longer linked.  The difference of upper case and lower case made the users appear different to the bridge, and without the wpsmfusers table, it decided to bridge another account for them.

On my end, I will correct the program to make it always read smf users in lower case...so this won't happen in future versions.  Meanwhile...sorry about that...I hope this solves your problem though  :)
Title: Re: SMF & WordPress
Post by: jjgallow on July 30, 2007, 03:01:06 PM
Quick update:

I made some small changes to the script just now.  I've updated my site with the new code, but have not changed the version number for it.  Just some minor code changes that will prevent situations like haymann's from happening...mainly to do with better case sensitivity between wordpress and smf.

On another highly uninteresting note:

It turns out that wordpress CAN register users with Upper case letters, although it handles them very poorly compared to SMF.  WPMU definitely cannot handle them at all.  Bottom line,  the bridge is still far better off registering them all in lower case for wordpress.

Good luck everyone...I think this thing is nearly stable, and the updates should start to slow down  :)
Title: Re: SMF & WordPress
Post by: haymann on July 30, 2007, 09:31:55 PM
Cool! Maybe I should have waited...
I used the "old" new plugin last night and it was still having trouble with my account. I have an admin account in SMF that has a name other than admin. When I would run the plugin, log into WP, and then head to SMF I would be logged in, but as a limited user w/ no post history. I didn't have any of my users try it to see how it went for them. As I said a little earlier I don't have many users on SMF and none on WP so I went to the SMF tables and converted the user names to lower case and re-ran the plugin. As near as I can tell everything works great!! I am very happy!

Maybe I should have waited to change them so I could test your latest... Oh well, I'm sure it works. You have made life easier for everyone that wants to run WP and SMF together!
Title: Re: SMF & WordPress
Post by: jjgallow on July 30, 2007, 10:46:10 PM
Awesome haymann,

I'm really glad to hear it's working!

Hopefully this becomes a trend...I really feel that the plugin is stable for most users now.   I realize previous versions would sometimes make mistakes with the admin accounts, however I think I've solved this with the latest available download.  Feel free to PM me if you have any more trouble with your admin account...there is a fix for it.

cheers  :)
Title: Re: SMF & WordPress
Post by: antracit on July 31, 2007, 02:54:43 PM
 :) Hi

This is great work realy! Tested it and it was ok (exept for some charecters), I'm not on UTF-8 and can not change without other problems.

Is it possible to run this with a database on other charset?

//johan
Title: Re: SMF & WordPress
Post by: jjgallow on July 31, 2007, 02:59:45 PM
Hello antracit,

I've thought about it...I know almost ZERO about the subject.  I honestly have never pursued it as I'm a pretty strong supporter of UTF-8 myself.  To be fair, I will look into this.

For starters though...you'd need to have Wordpress in a non-UTF format...and it's not easy:
http://codex.wordpress.org/Converting_Database_Character_Sets


....Unless I could find a way to convert the character set each and every time information runs through the bridge.  I'm a little scared of that, but will have a look at this also.

p.s...If you really bug me about it...I might be able to figure out something  :)

Maybe PM me with exactly what kind of problems you end up having?  That might help me find a simple solution...if there is one.
Title: Re: SMF & WordPress
Post by: joewen7 on August 01, 2007, 01:49:58 PM
Hi jjgallow. I'm getting this error at the moment when I'm at the plugins > SMF page, with version 1.0.9.

"Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /path to my server/public_html/wp-content/plugins/WP_SMF/smf_api_1.1.php on line 179
WordPress database error: [Incorrect table name 'members']
SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName from ``.members ORDER BY ID_MEMBER"

I'm testing it on a test site, not my main. It was working when I was testing out version 1.0.6, with my old database. But before I used 1.0.9, I uploaded the latest database of my main site onto the test site (since it grew).

Do you have any idea what is causing this error? Thanks for you time.
Title: Re: SMF & WordPress
Post by: jjgallow on August 01, 2007, 11:51:48 PM
Hello joewen7,

It appears that this has more to do with your database change than the version change

(I sure hope so, anyway!)

What this error means, is that the plugin cannot find the name of your database.  Now, normally it would get this information from Settings.php in your SMF folder.  So:

Is the path set wrong in Plugins->SMF?

Does $db_name in Settings.php refer to the correct database name in SMF?  I'm guessing that this is somehow empty, or doesn't have the name of your test database in it.

Hope this helps...let me know how it goes!

Title: Re: SMF & WordPress
Post by: pftq on August 02, 2007, 03:39:03 PM
Hi, I've had a few complain of the lowercase naming in Wordpress.&nbsp; I understand you say it doesn't work well with uppercase, however I've taken a look at the mysql tables for it.

It seems like the uppercase work fine in Wordpress - except that only the user_nicename field must be lowercase.&nbsp; Do you think you can configure the plugin to only convert to lowercase for the user_nicename?

You're missing in wp_smf.php:
...
///////// Insert SMF user into Wordpress
$user_login=$smfuser->memberName;
$user_nicename=strtolower($user_login);

...
$userdata = compact('user_login', 'user_email', 'user_pass', 'description', 'user_url', 'aim', 'yim', 'first_name', 'last_name', 'user_nicename');

I'm not sure where to edit your code to stop it from converting all login to lowercase though (don't want to break where it might actually need to be lowercase)
Title: Re: SMF & WordPress
Post by: jjgallow on August 02, 2007, 04:28:19 PM
Hello pftq,

I will look at this tonight and change the code if this is the case.

I'll re-post a reply at that time.

cheers  :)
Title: Re: SMF & WordPress
Post by: pftq on August 02, 2007, 04:33:44 PM
I just went through to change it myself.&nbsp; Have to say it's working great (what I did was remove all strtolower and add the code I put in bold above for that one file; leave the smf_api untouched though).&nbsp; The user_login remains the same as SMF (the casing) and the user_nicename correctly goes to lowercase.

I found one problem though and I'm not sure if it's my editing or not.&nbsp; When deleting a member from Wordpress, it deletes from SMF - but the total members count for SMF does not decrease...
Title: Re: SMF & WordPress
Post by: ChemEng1 on August 02, 2007, 06:56:26 PM
Quote from: jjgallow on August 01, 2007, 11:51:48 PM
Hello joewen7,

It appears that this has more to do with your database change than the version change

(I sure hope so, anyway!)

What this error means, is that the plugin cannot find the name of your database.  Now, normally it would get this information from Settings.php in your SMF folder.  So:

Is the path set wrong in Plugins->SMF?

Does $db_name in Settings.php refer to the correct database name in SMF?  I'm guessing that this is somehow empty, or doesn't have the name of your test database in it.

Hope this helps...let me know how it goes!



Alright, I used this address and it connected: /home/content/c/h/e/chemeng/html/mb

Yippee!!!

I can see that all my WP users have been ported over to my SMF forums. Very cool.

If I log-in to my WP, should it recognize that when I go into my SMF boards? Or will I need to log in again on the boards?
Title: Re: SMF & WordPress
Post by: jjgallow on August 02, 2007, 11:36:49 PM
Hello ChemEng,

It should recognize it...I'm confused...are you joewen, or is this a different situation?

Anyway glad it's worked.  Let me know if you have any login troubles.

cheers
Title: Re: SMF & WordPress
Post by: jjgallow on August 03, 2007, 12:51:46 AM
Hello pftq,

First of all, let me say that I really like your site integration!  Very impressive.

I've looked into the code, and you are right that Wordpress can have users with uppercase.

However, WPMU (Wordpress MultiUser) cannot, and I don't want to lose compatibility with this.

Now, I would consider allowing users to have upper-case specifically with Wordpress, but here's the problem:

Try logging in using lower-case.  If you have an upper-case username, I think you'll find it won't let you.

My opinion is that this will be confusing for many SMF users, as SimpleMachines handles these logins much better.  Because SMF users are used to being able to log in with upper OR lower case, I think it may be best to not have Wordpress users with upper case.

Please let me know what you think of these reasons.  It would be very easy for me to change this code, but I think it would lead to more problems.

Maybe....in the future, I would consider making this an OPTION in admin...so each webmaster can decide for themselves.  ....would this be a good idea?

cheers  :)

Quote from: pftq on August 02, 2007, 03:39:03 PM
Hi, I've had a few complain of the lowercase naming in Wordpress.&nbsp; I understand you say it doesn't work well with uppercase, however I've taken a look at the mysql tables for it.

It seems like the uppercase work fine in Wordpress - except that only the user_nicename field must be lowercase.&nbsp; Do you think you can configure the plugin to only convert to lowercase for the user_nicename?

You're missing in wp_smf.php:
...
///////// Insert SMF user into Wordpress
$user_login=$smfuser->memberName;
$user_nicename=strtolower($user_login);

...
$userdata = compact('user_login', 'user_email', 'user_pass', 'description', 'user_url', 'aim', 'yim', 'first_name', 'last_name', 'user_nicename');

I'm not sure where to edit your code to stop it from converting all login to lowercase though (don't want to break where it might actually need to be lowercase)
Title: Re: SMF & WordPress
Post by: pftq on August 03, 2007, 01:38:12 AM
Thanks - it took me a while now I think lol.

Options are always best. I was not aware of WPMU that this was designed for.  However, a number of people will indeed only have Wordpress and SMF.

Wordpress being case-sensitive for logins shouldn't be too much of a problem... I personally think it's more confusing to remember two logins (one lowercase and one regular), supposing I had upper case letters in my screenname. :P

For setting it to an option, the best approach would probably be to replace strtolower with a function, checking if the option is enabled before setting the username to lowercase.
Title: Re: SMF & WordPress
Post by: ChemEng1 on August 03, 2007, 02:01:15 PM
Im d
Quote from: jjgallow on August 02, 2007, 11:36:49 PM
Hello ChemEng,

It should recognize it...I'm confused...are you joewen, or is this a different situation?

Anyway glad it's worked.  Let me know if you have any login troubles.

cheers

Sorry for the confusion. Im different than joewen, although we shared the same problem.

I am still having problems with having to log in twice though.

I start with logging out of both my WP and SMF. Then I log into WP and hit the link to my SMF. It still wants my user information.

The same is true if I start with logging into my SMF boards, then hitting the link to my WP. I still have to log in.

Not really sure what is going on there. Although I can see that now all my WP users have an imported account into my SMF boards.

Am I missing something?
Title: Re: SMF & WordPress
Post by: jjgallow on August 03, 2007, 03:53:16 PM
Hello chemeng,

What kind of paths do you have to wordpress and smf?  What is the directory structure, and:

Do you have subdomains?

I'll see if we can figure this out  :)
Title: Re: SMF & WordPress
Post by: jjgallow on August 03, 2007, 03:56:12 PM
Hello pftq,

I will include an option in future versions.   How's that sound?

Now, if others have an opinion on this and I find that there is a consensus, I'd also be fine with changing future scripts to always allow upper-case usernames for Wordpress.  As long as everyone realizes the limitations of that.
Title: Re: SMF & WordPress
Post by: pftq on August 03, 2007, 06:08:41 PM
Sounds good.&nbsp; If it worries you, you can always default it to disable uppercase names.

I'm finding that SMF does not remember my login lately.. (wordpress stays logged in though) It's as if the "Stay logged in forever" box is not working.  Perhaps I edited something wrong when I was enabling the uppercase names on my end - do you have any suggestions where I should look?
Title: Re: SMF & WordPress
Post by: ChemEng1 on August 03, 2007, 07:14:29 PM
Quote from: jjgallow on August 03, 2007, 03:53:16 PM
Hello chemeng,

What kind of paths do you have to wordpress and smf?  What is the directory structure, and:

Do you have subdomains?

I'll see if we can figure this out  :)

(Please dont laugh at the site. Im doing all this to learn more about developing websites.)

Wordpress is installed here: site www.workingmansblog.com
SMF is installed here: www.workingmansblog.com/mb

I have site hosted through godaddy and godaddy did the install of both through their Metropolis service.

Not sure how to answer you directory structure question though.
Title: Re: SMF & WordPress
Post by: brainiac744 on August 03, 2007, 08:39:29 PM
pftq, I had the same problem, but for now instead of tracking down where the login period problem lies, I just editted my cookie to last until 2038. If you find out why this happens I would be very happy, or if I decide to try and find out where the problem is I'll share it with you.
Title: Re: SMF & WordPress
Post by: jjgallow on August 04, 2007, 01:26:16 AM
Hello ChemEng...

Just checking here, but did you install the Twin plugin for SMF?  Or do you just have the one plugin for wordpress installed?

cheers :)
Title: Re: SMF & WordPress
Post by: jjgallow on August 04, 2007, 03:37:10 PM
The problem lies in SMF_Wordpress, and it appears to exist in all versions of it from 1.06 through 1.09.  I'm unable to identify it, as my test server is down.  When I figure it out, I will update the code.

Quote from: brainiac744 on August 03, 2007, 08:39:29 PM
pftq, I had the same problem, but for now instead of tracking down where the login period problem lies, I just editted my cookie to last until 2038. If you find out why this happens I would be very happy, or if I decide to try and find out where the problem is I'll share it with you.
Title: Re: SMF & WordPress
Post by: jjgallow on August 04, 2007, 06:50:53 PM
Hello brainiac, ChemEng and pftq:

Your problems have been corrected :)  and are available with a fresh download:

http://www.earthorbit.com/opensource

I did not change the version number, however.

It is recommended to upgrade both plugins.


More details below:

"Login Forever" troubles:  This has never been caught until now...thank you for bringing it up!  It actually took quite a bit of code cleanup to make it work, but you can now login forever.  For those of you who changed your default login time, you can now return it to "60", or wherever it was.


Username Case Sensitivity:

After a lot of thought, I've decided to keep it simple.  There are no "Options", as there's enough confusion already.

If you're using WPMU, it will register users in lowercase.  If you have WPMU users that are not in lowercase, click on the "Repair User Links" button, and they will be properly converted.

If you're using Wordpress, it will register users with upper case if they choose such a name.  If your Wordpress database has users who's case was forced to lowercase, click on the "Repair User Links" button, and they will be properly converted to their upper case form.

I originally thought of making this an option, but then decided that making Wordpress users lowercase, although beneficial, alters the functionality of Wordpress.  I want this bridge to avoid any alterations to Wordpress functionality, so I've kept it simple.


cheers  :)


p.s...why did I not change the freakin version number?  Because I have it in my head that Version 1.1 will have absolutely stable User Integration from day one.  Once I achieve this, any future version upgrades will be "beta" until proven stable.  Hopefully this fresh update will prove stable.
Title: Re: SMF & WordPress
Post by: jjgallow on August 05, 2007, 04:46:26 AM
Hello pftq,

Sorry, I forgot about your problem with total members after deleting.  I have corrected the script as of this post, and also integrated user deletion from smf to wordpress.

I'm feeling like I MUST be nearly finished with user integration here...anything else I should be addressing?

Quote from: pftq on August 02, 2007, 04:33:44 PM
I found one problem though and I'm not sure if it's my editing or not.&nbsp; When deleting a member from Wordpress, it deletes from SMF - but the total members count for SMF does not decrease...
Title: Re: SMF & WordPress
Post by: uh_Iforgot on August 05, 2007, 06:10:47 AM
It wont work
Title: Re: SMF & WordPress
Post by: H on August 05, 2007, 08:08:18 AM
Quote from: uh_Iforgot on August 05, 2007, 06:10:47 AM
It wont work

You need to be more specific rather than just posting three words!
Title: Re: SMF & WordPress
Post by: jjgallow on August 05, 2007, 01:26:31 PM
Thanks H, 

I would have to agree on that.  I'm about to get quite scarce on these boards, so now would be the time to bring up any other problems with the user integration.

If this board is silent for a week (which usually means everyone's happy), I'll make a version 1.1, which will basically be the same as 1.09, except that the code will be readable for future developers, and I'll provide updated documentation such as the readme.

The only other thing I can think of is providing compatibility with character coding other than UTF-8...   I'm a UTF-8 man myself, so I won't be messing with that unless provoked.

Have a good one, eh?
Title: Re: SMF & WordPress
Post by: brainiac744 on August 05, 2007, 08:58:31 PM
Everything seems to be working quite nicely for me, "login forever" included :)
Title: Re: SMF & WordPress
Post by: haymann on August 06, 2007, 03:50:34 PM
A quick question about updating to a newer version...
Is it as simple as copying the new version "over the top" of the old, or is it recommended to deactivate and uninstall?
Apologies if this has been answered already, I quickly skimmed the 10 pages of posts... ;D
Title: Re: SMF & WordPress
Post by: jjgallow on August 06, 2007, 04:01:30 PM
lol haymann....

I tell you what...Version 1.1...when I get to it...will have better documentation.

For WP_SMF....you can just copy it over.  This depends on the type of upgrade...some require a deactivation, etc.   This one doesn't.

Now...if you want to fix your user's Uppercase in Wordpress...click on "Repair User Links".


For SMF_Wordpress....you can just copy SMF_Wordpress.php into /sources.....although uninstalling and re-installing the package takes about the same amount of time.

cheers  :)
Title: Re: SMF & WordPress
Post by: haymann on August 07, 2007, 02:02:23 PM
Thanks! I copied them over and I seem to be running just fine. Thanks again for all of your work.
Ryan
Title: Re: SMF & WordPress
Post by: jjgallow on August 08, 2007, 02:54:15 PM
Thanks haymann and brainiac,

I'm glad to hear things are working out!  Very encouraging.  I'll hopefully have a version 1.1 out on the weekend, but I don't see any reason to upgrade to it if everything continues to go well.  It'll just have better documentation, etc.
Title: Re: SMF & WordPress
Post by: Hj Ahmad Rasyid Hj Ismail on August 10, 2007, 11:41:56 AM
Hi jjgallow, your work is great.

However, I need some help anywhere. Have you or anyone experience mambo + smf + chat + wordpress combination? The first three work well before I try with word press. Well, I am testing the 4th combination and got this error.

QuoteNotice: Constant SMF_INTEGRATION_SETTINGS already defined in /home/content/a/h/r/ahrasis/html/forum/Sources/SMF_Wordpress.php on line 25

Fatal error: Cannot redeclare integrate_login() (previously declared in /home/content/a/h/r/ahrasis/html/components/com_smf/smf.php:589) in /home/content/a/h/r/ahrasis/html/forum/Sources/SMF_Wordpress.php on line 36

May be I shouldn't use mambo but use wordpress + smf + chat. Can anybody give me some advise?
Title: Re: SMF & WordPress
Post by: kjaonline on August 11, 2007, 10:56:18 PM
okay I'd like to ask if this mod works with Wordpress MU? I have read in the previous pages but that was a few versions back.. any confirmations please? thanks!
Title: Re: SMF & WordPress
Post by: pushkin22 on August 13, 2007, 10:21:29 AM
Quote from: kjaonline on August 11, 2007, 10:56:18 PM
okay I'd like to ask if this mod works with Wordpress MU? I have read in the previous pages but that was a few versions back.. any confirmations please? thanks!
Yes, it works with WPMU. ;)

I have a problem with the bridge. The smf users with special charachters in their nicknames (öäüß or # * $ etc.) were integrated twice and the special charachters in the nicknames were deleted after the intergration. For example: I have a user in SMF with bürste as nickname, his nickname were intergrated to wpmu but his nickname there is brste (and there is also another doubled account with the same nickname). So I have now 3 accounts (1 bürste in SMF) and 2 brste's in WPMU

sorry for my bad english
Title: Re: SMF & WordPress
Post by: brainiac744 on August 14, 2007, 12:36:22 AM
ahrasis, what is in this file "components/com_smf/smf.php" ? I assume that it's integration with one of those other scripts that you listed. It would seem that it and SMF_Wordpress are both using a function called integrate_login, and that is most likely the root of your problems.
Title: Re: SMF & WordPress
Post by: miCRoSCoPiC^eaRthLinG on August 16, 2007, 01:41:06 AM
Hi,
  I've installed WP_SMF (v1.09) and configured it successfully. When I pressed on the button to migrate all WP users to SMF, it copied them over all fine - but along with that it spewed out the message in WP_SMF plugin panel in WP.

WordPress database error: [SELECT command denied to user 'wpadmin'@'localhost' for table 'smf_members']
SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName from `forum`.smf_members ORDER BY ID_MEMBER


Should I be concerned? Is something going wrong and needs to be fixed?

Thanks,
m^e
Title: Re: SMF & WordPress
Post by: 3nd3r on August 16, 2007, 04:33:19 AM
Quote from: miCRoSCoPiC^eaRthLinG on August 16, 2007, 01:41:06 AM
Hi,
  I've installed WP_SMF (v1.09) and configured it successfully. When I pressed on the button to migrate all WP users to SMF, it copied them over all fine - but along with that it spewed out the message in WP_SMF plugin panel in WP.

WordPress database error: [SELECT command denied to user 'wpadmin'@'localhost' for table 'smf_members']
SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName from `forum`.smf_members ORDER BY ID_MEMBER


Should I be concerned? Is something going wrong and needs to be fixed?

Thanks,
m^e
Yes, I've got and solved this problem earlier (http://wordpress.org/support/topic/122464)
The solution:
That user is your wp admin user, so, go to your mySQL db area through cPanel and update smf database with all access granted for wpadmin (adminuser)... And error is gone.  :)

Well, now for my question (hi jjgallow!  ;) ):
What I want is a way to IMPORT smf posts into WP posts, boards into categories, answers to smf posts into comments ... And so on. I meant, a complete db DUMP to definitively copy SMF Forum into Wordpress without losing any data...

Maybe a couple of SQL sentences can do this, but I don't know them  :'( Any help?

Thanks in advance foru your time.
Title: Re: SMF & WordPress
Post by: miCRoSCoPiC^eaRthLinG on August 16, 2007, 07:31:36 AM
3nd3r: Thanks a tonne for the quick solution :)

Now another quick question...
I've already tested the parts of the plugin - registering a user in WP does perform the registration in SMF too. But does the login work as well? Is it supposed to? I mean say you're logged into WordPress, will it log you on, into SMF as well? I tried it out and it didn't quite happen...
Title: Re: SMF & WordPress
Post by: brainiac744 on August 18, 2007, 05:39:19 PM
It should work if you login from WP or SMF, or register in either one (supposing you have both parts of the bridge installed)
Title: Re: SMF & WordPress
Post by: miCRoSCoPiC^eaRthLinG on August 19, 2007, 04:32:14 AM
Yup - I've got both the WP-SMF and the twin bridge for SMF installed. Registration is working fine - no hassles with that. But login still doesn't work. You've to manually login into each :o Any ideas?

Thanks,
m^e
Title: Re: SMF & WordPress
Post by: brainiac744 on August 19, 2007, 03:18:14 PM
A few pages back (not exactly sure how many), there is a solution to this if you're using subdomains. You'll have to manually edit a wordpress config file. It's not a large deal, but if you're using subdomains that should be the first thing you try. If you're not, it would be more helpful if you could give some idea of your setup (directories that smf and wp are located in, subdomains that they're on if any, whether you are using 1 or 2 databases, etc.)
Title: Re: SMF & WordPress
Post by: miCRoSCoPiC^eaRthLinG on August 20, 2007, 01:39:24 AM
Here's more info about my setup...

My blog is at: http://chaos-laboratory.com/
SMF Installation: http://chaos-laboratory.com/forum/

As for databases, I'm using two separate ones.

Not using any sub-domains.

Thanks for all the help :)
m^e
Title: Re: SMF & WordPress
Post by: jjgallow on August 21, 2007, 03:35:28 PM
Hey there,

I just got back from vacation.  Thanks for all the feedback and thanks to those of you who helped others with their problems!

I don't have time to answer all the questions right now, but I will shortly.

With regards to problems with special characters, Wordpress and SMF have to have the same character encoding.

By default, SMF is ISO and Wordpress is UTF-8.  This is why I suggest your SMF be set to UTF-8.

Alternatively, you could set Wordpress to ISO.

If you're having these problems, make the character encoding the same, and you should be okay.  If you've already imported the users, you may need to:

-Deactivate the bridge in Wordpress

-Delete the imported users in Wordpress

-Reactivate the bridge

-Click on "Repair user links".  This will re-import all the users.


cheers


Title: Re: SMF & WordPress
Post by: SebKom on August 22, 2007, 12:23:07 PM
Hello there!

First of all, great work and congratulations for what you have done so far! I have to admit that your plugin was one of the main reasons that made me register on the forums here. Keep it up boy!

I am having some difficulties, however. I uploaded the plugin and activated it, but I got some errors, and I couldn't even access my main page. I removed it from my FTP and now everything is fine, except that I cannot activate again (fatal error, I guess that's because I deleted it without deactivating it). Anyway, I have come up with an idea:

What if I only install the SMF_WP plugin and only let users register there? So, they register on the forums and come back at the blog main page, ready to comment with their SMF accounts! Is that possible or am I just daydreaming?

Thank you in advance for your time and congratulations once again! ;)
Title: Re: SMF & WordPress
Post by: ExcalibursZone on August 22, 2007, 12:41:16 PM
Personally, I believe hosting 2 databases is a pain in the butt when everything that's in the wp_users table is in the smf_members table. The only issue is the wp_usermeta which contains other information, sort of an 'extra' storage place for custom stuff.

Anyway, I think the best bet is to slave WP to the SMF member tables except for the wp_usermeta which is WP only stuff. This would mean that you'd need only one plug-in (for WP) and nothing for SMF. You wouldn't have to copy over user accounts or anything.

There are issues, however, such as concurrent logins and the like, but I'm going to try and wade through both packages and see if I can't find a plug-in or hack for WP that eliminates the need to carry 2 user tables for the same account...
Title: Re: SMF & WordPress
Post by: brainiac744 on August 22, 2007, 03:22:22 PM
Excalibur: There are a few problems with that, the main one is that SMF and WP encode passwords differently. SMF uses SHA1 while WP uses MD5 (if I'm not mistaken). That COULD potentially be overcome by replacing all the references in WP or SMF, but I believe that would be a significant pain.

microscopic: Are ALL users affected by this problem, or just admins? How about accounts created after the bridge was activated, are they affected? If you have the ability can you look at your cookies and see exactly what is set when you login at both places? Do you have SMF set for subdomain independent cookies? (can't remember exactly where the setting is, and it might not apply, but it can't hurt to try it)
Title: Re: SMF & WordPress
Post by: jjgallow on August 22, 2007, 10:20:02 PM
budu,

sorry to hear you're having troubles.  I cannot guarantee that it will work, but you could try.  WP_SMF can definitely run on its own...but SMF_Wordpress, probably not unless you were very lucky.

Sorry to hear that the install isn't working.  In most cases, this is because of a conflict with another Wordpress plugin.  Please let me know if this seems likely for you.
Title: Re: SMF & WordPress
Post by: jjgallow on August 22, 2007, 10:40:44 PM
Hello ahrasis,

I've made a small change to SMF_Wordpress which should give you compatibility with this combination.

I have not changed the version number, but a fresh download at:
http://www.earthorbit.com/opensource

Should do the trick.  No need to re-install the WP_SMF plugin.

Let me know how it goes...

cheers  :)


Quote from: ahrasis on August 10, 2007, 11:41:56 AM
Hi jjgallow, your work is great.

However, I need some help anywhere. Have you or anyone experience mambo + smf + chat + wordpress combination? The first three work well before I try with word press. Well, I am testing the 4th combination and got this error.

QuoteNotice: Constant SMF_INTEGRATION_SETTINGS already defined in /home/content/a/h/r/ahrasis/html/forum/Sources/SMF_Wordpress.php on line 25

Fatal error: Cannot redeclare integrate_login() (previously declared in /home/content/a/h/r/ahrasis/html/components/com_smf/smf.php:589) in /home/content/a/h/r/ahrasis/html/forum/Sources/SMF_Wordpress.php on line 36

May be I shouldn't use mambo but use wordpress + smf + chat. Can anybody give me some advise?
Title: Re: SMF & WordPress
Post by: jjgallow on August 22, 2007, 10:46:42 PM
Hello 3nd3r,

I am not smart enough to answer this yet, lol.  Sorry.  It is in the plans, and possibly Version 1.2 will automatically do some of this.   If you go in to the WP_SMF admin, there are some Theme Integration options which will emulate some of this, and SMF has some great SSI features that can be used.  Aside from this, I am also trying to learn how to better integrate the two.

Quote from: 3nd3r on August 16, 2007, 04:33:19 AM

Well, now for my question (hi jjgallow!  ;) ):
What I want is a way to IMPORT smf posts into WP posts, boards into categories, answers to smf posts into comments ... And so on. I meant, a complete db DUMP to definitively copy SMF Forum into Wordpress without losing any data...

Maybe a couple of SQL sentences can do this, but I don't know them  :'( Any help?

Thanks in advance foru your time.
Title: Re: SMF & WordPress
Post by: jjgallow on August 22, 2007, 10:51:29 PM
Ok!

Thanks brainiac, pushkin, 3nd3r, and others who helped answer questions about this bridge.  I think everyone's question so far has been answered by me or one of you.

I will wait a bit for some feedback on how the solutions went, and then I'll release 1.1.  It will not be anything special...just a little more user friendly.  It might come with a manual override when certain users (such as admins) just refuse to link properly.

It will be the first "stable" version however, and it will be written in one language instead of two  :)

Then, on to feature integration!

cheers
Title: Re: SMF & WordPress
Post by: ExcalibursZone on August 22, 2007, 11:22:22 PM
Quote from: brainiac744 on August 22, 2007, 03:22:22 PM
Excalibur: There are a few problems with that, the main one is that SMF and WP encode passwords differently. SMF uses SHA1 while WP uses MD5 (if I'm not mistaken). That COULD potentially be overcome by replacing all the references in WP or SMF, but I believe that would be a significant pain.
Nah, you'd just use the SMF stuff for any user-based info. The usermeta table doesn't have the password, just the user id. And you could replace the function that gets the user information with one that maps SMF data to the WP fields. Though, with my solution, the WP users table would go away entirely and you'd use the SMF members table exclusively. Since you're also using SMF for user authentication and whatnot, you don't have to worry about the passwords being encrypted differently. All you'd have to do is override all the functions that deal with users in WP and you *should* be golden. The trick is getting stuff to line up and getting SMF to work properly with WP. I'm looking into that though (ripping apart a CMS bridge... mambo... and seeing how they log people into SMF). If I can get that working and override all the user stuff in WP then things might just turn out well and we'd only need to use 1 plug-in.
Title: Re: SMF & WordPress
Post by: pftq on August 23, 2007, 02:31:31 AM
Hey I haven't checked this in a month.  Thanks for fixing the login problem. Excellent solution too with making it dependent on the software.  I did not even consider that possibility.

Few last things - deleting users via SMF does not seem to delete for Wordpress.  Also, Wordpress names - can you not filter them? Leave them w/ numbers and punctuation.  Some users have the same name but different number - gets confusing.
Title: Re: SMF & WordPress
Post by: jjgallow on August 23, 2007, 12:27:45 PM
excaliburszone,

Let me know how it goes!  Some people on here have definitely expressed a preference for that.  I would have concerns regarding the compatibility of wordpress plugins, etc.  If you're just using wordpress standalone, and you're not concerned with upgrading to future versions, you might be able to do it.   I highly doubt anyone on here just uses SMF without any plugins though, and I think you'll find that, as you use wordpress, the same holds true.
Title: Re: SMF & WordPress
Post by: jjgallow on August 23, 2007, 12:34:17 PM
Hello pftq,

thanks for the feedback!

Are you using the latest version of SMF_Wordpress?  I enabled user-deletion integration from SMF fairly recently...it was one of the last things I did...due to it's destructive nature  :)

As for names and numbers...what is the character encoding set to on your Wordpress and SMF?  They should be the same...I recommend UTF-8.  If they are different, that is why you're getting character problems.
Title: Re: SMF & WordPress
Post by: ExcalibursZone on August 23, 2007, 03:59:52 PM
Quote from: jjgallow on August 23, 2007, 12:27:45 PM
excaliburszone,

Let me know how it goes!  Some people on here have definitely expressed a preference for that.  I would have concerns regarding the compatibility of wordpress plugins, etc.  If you're just using wordpress standalone, and you're not concerned with upgrading to future versions, you might be able to do it.   I highly doubt anyone on here just uses SMF without any plugins though, and I think you'll find that, as you use wordpress, the same holds true.

Well, the way I plan on doing it is to override stuff by using a plug-in. You can see all the functions in wp-includes/pluggable.php.

My plan is to hide all the WP user access code (save for the usermeta table) with wrappers that fetch from the SMF members table instead. That way, for all intents and purposes, WP and all the plug-ins think that you're accessing the wp_members table when you're actually grabbing SMF.

The only compatibility issues I see with that is when other plug-ins try to do the same thing. I'm not sure what to do in that case since I haven't run into it yet... heh

The problem I face is actually logging in and staying logged in with SMF. I'm researching, and chances are, I'll be using the SMF integration hooks that the CMS bridges use.

Goals:
Login from either SMF or WP and be logged into both places.
Accessing user profiles in WP will actually access SMF except when accessing usermeta.
Reduce everything down to a single user table.

After that, adding new things in will be something else, such as when posting a blog, have it post to SMF as well... If that feature were to be used, I'd have it post to SMF directly and note in the WP tables that's where the record is located. Then use SSI or something to pull the topic and display it. I'm still working on all the ideas.

And, yeah, I'll post here and on the WP forums how it all goes.
Title: Re: SMF & WordPress
Post by: mfapsj on August 24, 2007, 08:03:53 AM
I tried some earlier versions of WP_SMF and also SMF_WP (up to version 06, I believe) and it worked perfectly. My site is now finished and I de-activated them, deleted the plugin/package and installed the latest versions of both plugins. User get created in SMF when registered through WP - however the staying logged in seems to have problems now. When I log in via WP and go to SMF I'm only a guest. When I login at SMF and go to WP it works! (I did clear cache etc. so that shouldn't cause the problem)

http://www.marion-cotillard.org
http://www.marion-cotillard.org/forum
2 separate databases

I think when I tried it out before I hadn't WPG2 (Gallery2 integration into WP, does control users via WP admin) activated, don't know whether that had any influence?

I cannot think of where to look for the origin for this problem, so, any help would greatly be appreciated!
Title: Re: SMF & WordPress
Post by: jjgallow on August 24, 2007, 01:07:22 PM
Hello mfapsj,

Sorry to hear that....I have no immediate answers why it isn't working for you.

You can definitely download the older plugins on my website, although they're not listed.

For instance,

http://www.earthorbit.com/opensource/WP_SMF_1.06.zip
http://www.earthorbit.com/opensource/SMF_Wordpress_1.06.zip

Please let me know if they older version works for you...I'll give it some thought.  By chance, are there any capital letters in your username?
Title: Re: SMF & WordPress
Post by: mfapsj on August 24, 2007, 01:27:11 PM
I installed version 1.06 and it's working - both ways!! Great!

My username is lowercase (admin) but display name (Maria) is uppercase! Also I saw that some WP users have capital letters in their usernames.

Oh, and when I try to repair users it gives me the following:

QuoteWordPress database error: [SELECT command denied ......

*****Link Repair Complete. WP_SMF is finished with the database.*****

edit: read up on the matter. Since I can't create a second user for a database (my host doesn't have CPanel) I dropped the existing SMF tables in my WP database. Now repair works. However, 1.09 still didn't  - so I'm back with 1.06 which works perfectly fin
Title: Re: SMF & WordPress
Post by: mfapsj on August 24, 2007, 01:37:50 PM
I just thought of another question. I couldn't find a similar question when I did the search, so I hope this has not been answered before.

Should I worry about spam user registrations in WP? What if I installed http://fuctweb.com/2007/06/15/capcc/? Would it have any influence on the plugin?

Thanks!
Title: Re: SMF & WordPress
Post by: paki on August 25, 2007, 02:46:55 AM
Quick question,

Is there a "Who's Online" module in the works? I apologize if it has been asked before as I haven't had a chance to look through this yet.

Also, I am currently only running the WP_SMF bridge. (No SMF-Wordpress). When I logged out of WP, it kept me logged into SMF. Am I to assume correctly that by installing SMF_Wordpress (the SMF side of the bridge), it will log me out of SMF as well? And I can use the registration form from SMF to register a user, and they will be registered into WP?

The only reason I am using the bridge is for the SSI functions, as I haven't spent much time trying to alter files and getting it to work without a bridge.. but it sure seems like a great piece of work so far

Thanks!
Title: Re: SMF & WordPress
Post by: ExcalibursZone on August 25, 2007, 08:43:43 AM
Update on my plug-in:

Well, in my quest to use one user table for both WP2 and SMF, I've gotten 1/2 way there! :) I ran into a question on the WP dev mailing list and came up with an idea:

What if I used an SQL view to represent the SMF member information that WP requires? Well, I had to override a few functions in a WP plug-in and make sure the view was set up properly.

Result: Using only the SMF members table, I can now log into WP without an issue! :D

There are problems, however:

So, here's a list of what I'm going to attempt to do next:

Once I have all user code working properly, I will start to add new features that use SSI or smf_api to further tie the two software packages together.

Just thought I'd let you know! :)

-Ex


UPDATE:
I now have deletion working for WP->SMF, but if the user is deleted in SMF then the WP user_meta table isn't touched. Looks like I'll try to transfer the usermeta to the user table as well, that way they will both be updated quite readily.

This is showing promise, anyway, so I'm going to see what I can about inserts and updates in the user table (read as reset password, lost password, insert user, and update user). There are only a few places this happens and I might be able to do this without resorting to hacks, but wp-login and registration might have to be hacked to get this to work properly.

I will hopefully have a working plug-in for WP by Sunday night for anyone to test. Complete with install instructions.

I will say this: You need to have the basic admin account before you install the plug-in. After that, I'll fix up a way to adjust the login name of that account to match the first user in smf. Once all is said and done, there will be ONE user table for both WP2 and SMF (versions 2.2.2 and 1.1.3 respectively).
Title: Re: SMF & WordPress
Post by: ExcalibursZone on August 25, 2007, 04:36:15 PM
Update 2:

OK, some more news. I have fixed the _usermeta issue when someone from SMF goes to WP for the first time.
All I do is set up 3 basic things: *_capabilities, *_user_level, and nickname.

Since you decide the role and everything in WP when you register someone, this won't be an issue. Now, if someone is registered in SMF and logs into WP, they will be issued the above 3 usermeta keys as they enter WP.

You will have to set up 1 array for this, an array that shows the user groups in SMF as their BASIC roles in WP.

For instance. Someone with the Administrator group in SMF (1) will be assigned a user_level of 10 and a capabilities of [administrator] => 1 (or administrator = true). I will look at a default version of SMF for default user groups and set that up. If you have different ones, it might just be part of the installation (or options, if I can figure them out).

OK: Next up will be to clear out invalid usermeta data to make sure that users who are deleted in SMF are also deleted in WP. I'll look into that soon.

Following this will be user insert/update from the WP side so that registration by user and admin both work. For now, it's time for me to go to bed (12 hour shifts kill me).

I'll update again when I have some more working. Then I'll release as a beta for people to try.
Title: Re: SMF & WordPress
Post by: ExcalibursZone on August 26, 2007, 09:37:26 AM
Another lovely update:

OK, today I pulled out all the hard-coded junk and set up an options page. Now you'll be able to set the path to your SMF install (the absolute path), the view name for your users table, the member groups that belong to the default 5 Roles in WP2, and I added a little bit of an extra...

Say you're installing this and you have users that need to be deleted or posts that need to be inherited in your WP2 database. For instance, any users that exist in WP that do not exist in SMF... And you want the posts moved. Well, I added an option to either not assign an inheritor for the posts and links or you can choose a user id to become the inheritor. You then either select yes or now to delete/reassign the data, click a confirm checkbox, then hit update options. All data will either be deleted or reassigned to the specified user id. This will happen for ALL user ids in WP that do not exist in SMF.

I am still looking into what can be done for the insert/update and concurrent login. But I'm quite a bit closer in any case. Look for my plug-in announcement soon. (well, hopefully, depending on how busy school and work keeps me...)

-Ex
Title: Re: SMF & WordPress
Post by: pftq on August 29, 2007, 02:55:15 AM
Strangely enough I just found out the latest version of the plugin (1.09) does not log me into Wordpress from SMF.  That combined with the fact SMF deleted members do not delete from Wordpress has led me to believe the plugin is taking effect on the SMF side.

Maybe it's not finding the Wordpress database correctly.  Is there something I have to edit before clicking install package on SMF?
Title: Re: SMF & WordPress
Post by: brainiac744 on September 05, 2007, 12:47:28 PM
I just found a problem I think. I tried to change somebody's username from SMF, and it changed it in WP but not in SMF, and it gave me a database error.
Title: Re: SMF & WordPress
Post by: fisherman1 on September 08, 2007, 11:39:39 AM
I am trying to bridge WPMU to SMF on my system
PHP 5.2.3, mysql 5, wp-smf 1.0.9, WPMU 1.2.4 and SMF 1.1.3 are install in the same database.

I have done what the instruction told me to until activation of the bridge...SMF is connected but every button i press on the config page. (e.g. readme button, integrate previous users) lots of error:database modification failed come out...then i tried to go to WPMU frontpage....those error appears too....

What seems to be the problem? Any different procedure required for wpmu...should i have the bridge store under mu-plugin instead? ....

This bridge should be compatible with WPMU...What have i missed out?

Fisherman
Title: Re: SMF & WordPress
Post by: viulian on September 08, 2007, 03:04:36 PM
Well, I just gave up mkportal and my users already have some blogs there.

I want to port those blogs to a better blogging engine, and here I came across this piece of mod that seems to help me a lot :)

I have two questions:
a) I understand that members have their own blog in WPMU, will they be able to change their themes, upload new ones, etc ? They like to have their place configured.
b) How does a link (URL) to a member blog look like ?

Thanks!
Title: Re: SMF & WordPress
Post by: brainiac744 on September 08, 2007, 11:11:05 PM
@fisherman: The procedure for setting it up on my WPMU was exactly the same, but I'm using an older version (1.2.3 I think...).

@viulian:
a) I don't think users can upload their own themes by default, but I'm pretty sure there's a plugin that will let them. What I've done is installed several themes that are available and take requests. Users can DEFINITELY change their own theme out of the box.

b) You can set up the URL's a couple of different ways, subdomains (like user.yoursite.com) or subdirectories (like yoursite.com/blogs/user, or in my case blogs.yoursite.com/user)
Title: Re: SMF & WordPress
Post by: fisherman1 on September 08, 2007, 11:38:13 PM
where can i get a copy of wpmu1.2.3?

If anyone have it, please email a copy  to my please

many many thanks

fisherman
fisherman1341 AT yahoo Dot com Dot hk
Title: Re: SMF & WordPress
Post by: viulian on September 09, 2007, 12:50:29 AM
Thanks brainiac744 :) uploading themes on request its fine by me. I'll try and install today.
Title: Re: SMF & WordPress
Post by: fisherman1 on September 10, 2007, 04:01:38 AM
the bridge works with 1.2.4..... now i find an error with the twin bridge
smf-wp under windows

in my server error log
Failed opening required 'D:Localhostwww\test1.com\blog/wp-includes/wp-db.php' (include_path='.;C:\\php5\\pear') in D:\\Localhost\\www\\test1.com\\forum\\Sources\\SMF_Wordpress.php on line 992, referer: http://test1.com/forum/index.php

notice the slashes for the path are gone....this causes blank page

how can i fix it such that corrent ABSPATH are fetched ?

regards,

fisherman
Title: Re: SMF & WordPress
Post by: brainiac744 on September 10, 2007, 07:55:42 AM
Just FYI, it seems that I was wrong about the version of WPMU that I have installed, it's 1.2.1.

In any case, I don't think that the bridge was ever tested on a windows server. You might try PMing the bridge's creator (jjgallow).
Title: Re: SMF & WordPress
Post by: Tidea on September 10, 2007, 07:41:48 PM
I have a question.  Doing the bridge and everything, I maanged to get WP users to migrate to become Forum users as well.  But, the forum users did not become WP users.

Is this supposed ot happen?
Title: Re: SMF & WordPress
Post by: brainiac744 on September 12, 2007, 08:24:33 AM
No, forum users SHOULD become WP users. Have you tried clicking on the "repair user links" button? If not try that and see if it clears up your troubles.
Title: Re: SMF & WordPress
Post by: shelikesrain on September 14, 2007, 12:06:55 AM
Hi guys,

I just installed the bridge from http://www.earthorbit.com/opensource/, but I'm not sure how to use the features.

Could someone please direct me on how to include a log-in box, users online and display the latest poll? I noticed that the features we can do with SSI doesn't work in Wordpress? :(.

Oh and currently, the recent topics has way too much information. How can I remove where topic board it was posted on, time and date? You can see my problem in my sidebar here (http://cloudaustralia.saranghae.org/content/), it weighs it down too much.

Please help me out, thanks!
Title: Re: SMF & WordPress
Post by: brainiac744 on September 18, 2007, 11:15:57 PM
I'm not sure of the other theme integration things, but why would you need another login box, wordpress has one of it's own...
Title: Re: SMF & WordPress
Post by: viulian on September 22, 2007, 02:17:13 PM
Is there a quick answer to why the plugin won't copy users from SMF to WPMU  :D ?

I've tried on a test server and it worked perfect, now, on production, only the admin user from WPMU is copied into SMF, but no users from SMF are being copied over to WPMU.

WP_SMF 1.0.9 + the latest SMF plugin on the SMF part. (SMF 1.1.3)

Later Edit:

Yes!!! 1637 members are imported :D yupeeee!

What I did:

a) Remembered to put the WPMU database with utf-8. However this was not the issue (mentioning it here 'cos maybe it might cause troubles for someone else, and to remind that the databases should be utf-8).
b) the issue was.... that I created a separate database for WPMU of course with a separate user. And the user that the WP_SMF plugin was runinng with did not have access to the SMF database. Somehow I thought that WP_SMF will actually use the Settings.php from SMF to get the SMF DB username.

So it's working :)

One thing about the documentation:
Yesterday I spend 30 mins trying to find out the Plugins tab where I was supposed to activate the WP_SMF plugin. It was my first installation of WPMU, and I had no clue that I need to activate the Plugins tab too, in the Site Admin / Options / the last thing on that page.

Now, on my wish list, I would like all the users to be given their blog names too (I mean not necessarily let them choose a name). There are ones which will try to annoy the girls and steal the blog names.. So I would like for plug in to also assign a blog name to a member (existing or the ones that will register after the bridge is installed). This way I don't have to police the behavior :D

I'll see what I can do and post here..
Title: Re: SMF & WordPress
Post by: viulian on September 23, 2007, 04:53:09 AM
Ok, the story continue.

I discovered that SMF would not log me into WPMU. Digging down, found out the issue:

SMF_Wordpress_1.09 plugin wasn't even installed, even if I told it so.
THe problem is that the package-info.xml file contains a line:

<type>Bridge</type>

This type isn't defined per the namespace http://www.simplemachines.org/xml/package-info

So SMF 1.1.3 will report this mod as "Unknown" and won't apply the changes.
(will just copy the SMF_Wordpress.php to the Sources/ directory).

The correct way is:

<type>modification</type>

I did this change, and now I get an error with install.xml : "Modification parse error" when installing the mod.
Will post back.
Title: Re: SMF & WordPress
Post by: viulian on September 23, 2007, 05:13:14 AM
Ok, SMF now logs me into WP :)

To be able to properly install the SMF plugin, I also did these changes:

a) in package-info.xml

<?xml version="1.09"?>

This is incorrect. As per XML standard http://www.w3.org/TR/REC-xml/ , the only XML version allowed is 1.0 (I think the programmer thought it's the module version).

So:

<?xml version="1.0"?>

is correct.

b) from install.xml, I removed the two lines at the beginning:

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">


These are incorrect, based on XML namespace offered in at http://www.simplemachines.org/xml/modification

I've reinstalled the module, and not it works :)

Yupeeeee :)

Great work for the integration!

However, I don't understand why there was a need to put the users in lowercase - this will create confusions among existing SMF users (and I need to explain that). So I guess I'll update the code not to put the users into lowercase.

Another thing that happened, is that when importing users from SMF, the bridge actually trimmed down the user names and removed the special characters, such as 'pipe' |
But then after it trimmed them, it copied the users from WPMU back to SMF, but it did not remember the original name in SMF so I had a bunch of 30 people or so having their account duplicated. I guess the bridge should also verify email addresses too before creating users into SMF (to detect the presence that is). emails must be unique, and I think right now the bridge only checks the user names to match.
Title: Re: SMF & WordPress
Post by: brainiac744 on September 24, 2007, 11:19:57 AM
I can't speak for the trimming issue, but I assume it involves the same reason as lowercase. If you'll look back a few pages you'll see a bit of trouble people were having logging into WPMU accounts after the bridge. It turns out that WPMU can't really handle uppercase characters in the username, so the author decided the best way to deal with it would be to just give WPMU what it wanted (and I agree with that BTW, no need to rewrite a load of core code). So, if you change it you'll be doing so at your own risk. If you DO find a way to make it work with the uppercase characters, several people will probably be interested in how you did it.
Title: Re: SMF & WordPress
Post by: alanpace on October 01, 2007, 02:24:22 AM
This bit of information might save some time for some of you at some point. To get SMF_Wordpress 1.09 working with WordPress 2.3, you'll need to delete these two lines in SMF_Wordpress.php:

Delete line 198: require_once (ABSPATH . 'wp-admin/admin-db.php');
and line 583: require_once(ABSPATH . 'wp-admin/admin-db.php');

The file admin-db.php has been eliminated from WordPress, but the functions it contained were moved to other files that are still included in SMF_Wordpress.php.
Title: Re: SMF & WordPress
Post by: Tidea on October 02, 2007, 06:36:49 PM
Do you replace those lines with anything new?

Btw, I can't find where pack-info is at
Title: Re: SMF & WordPress
Post by: Tidea on October 02, 2007, 06:52:35 PM
I just noticed something.  If someone is to register on WP, and in their registration, they put in their real name, the bridge actually creates an SMF account for them under their real name, instead of their WP name.

Any way to change this?
Title: Re: SMF & WordPress
Post by: viulian on October 03, 2007, 07:38:13 AM
Just wanted to point out (for the new ones, that are starting with an existing SMF configuration and installing WPMU from scrap) that WPMU has some issues with spammers which can create new blogs pointing to weird sites.

Better check the WPMU forums before going live :)
Title: Re: SMF & WordPress
Post by: mellow_bunny on October 05, 2007, 08:40:49 PM
I'm currently using the plugin set and all seems to be ok. The only issue I have is when a new user signs up through Wordpress, SMF doesn't seem to recognize their password. They can login fine from the Wordpress page. Anyone had this issue?
Title: Re: SMF & WordPress
Post by: tsp_derek on October 06, 2007, 11:37:44 AM
i've been completely unable to get this plugin working at all.

the username has been added to the smf database, the twin plugin installed in smf, the wordpress plugin is installed and configured.  i've tried adding this code to the sidebar:

<?php echo SMF_EnSonMesajlar($limit=10,$before_all,$before_message,$after_message,$after_all) ; ?>

and i get nothing at all.  no error, no text, just blank.  the only weird thing i can see is that i have the forum on a different subdomain and the wordpress installation on the main domain.  anyone have any notions on what i'm doing wrong?
Title: Re: SMF & WordPress
Post by: 7summits on October 08, 2007, 01:03:10 PM
Hi all, I am playing with the plugin on WPMU, it seems to work, but have some questions:

(1) with the current version (1.09), should it be installed under /plugins or under /mu-plugins?
it will be very confusing for other users if it is under /plugins as they might think they need to activate it. Also, they can play around with the configuration options then, which does not seem wise?

[edit: when trying this, I activated it as admin and it worked. But also when logged in as any other user with a blog, I could activate this and then go to configuration. After I did that some redirections were off, as I could not log in as admin until the plugin was deleted. Anyway, letting all blog owners play with the settings does not seem like a good idea? Or does this bridge need to be activated by all members before it works for them?]

But under mu-plugins, it means that every pageview will load this code, which might cause excessive server load(?).

[edit: it did not work under mu-plugins as folders are not detected. How did other WPMU users get this bridge working safely?]

(2) The synch of users worked wonderfully but when a user logs out in WP he is still logged in in SMF. Is this normal?

Cheers
Title: Re: SMF & WordPress
Post by: Riotblade on October 08, 2007, 10:58:34 PM
Hey, anyone can share their function for getting a message?  I try calling BoardNews in SSI.php but now it says
QuoteCall to undefined function loadLanguage()


Also
Quote
(2) The synch of users worked wonderfully but when a user logs out in WP he is still logged in in SMF. Is this normal?
Ditto

Thanks
Title: Re: SMF & WordPress
Post by: 7summits on October 09, 2007, 05:09:31 AM
@ riotblade: I think you can just use the examples as in php files (see also 'Site Integration under the configuration options, when all is installed), fro example just add:

<?php echo SMF_EnSonMesajlar($limit=10,'<ul>','<li>','</li>','</ul>'?>

For using SSi functions I assume you have to php include that file, not sure.


-------- back to my problems :) ------------

I think I found a better way to keep the plugin from other users, might be useful for others as well

I now have a folder named my-plugins for mu-plugins that should only work for blog#1. It is called by a little page called my-plugins.php which is placed in muplugins:


<?php
define
'MAINPLUGINDIR''wp-content/my-plugins' );
if ( 
$blog_id == ) {
$plugins2 globABSPATH MAINPLUGINDIR '/*.php' );
if( 
is_array$plugins2 ) ) {
foreach ( 
$plugins2 as $plugin2 ) {
if( 
is_file$plugin2 ) )
include_once( 
$plugin2 );
}
}
}
?>



I added the bridge to my-plugins, but (as it is similar to mu-plugins), it will not execute a folder, so another small file is needed, called whatever.php with just one line:

<?php include('WP_SMF/wp_smf.php'); ?>


This will call the pluginfile, which in return will give some path error, so the path in the plugin needs to be changed to my-plugins...

It works (and the same method can of course be used to add it to mu-plugins, but if that is not needed, I rather not do that).

So far the good news :)

The synch seems to have worked, and I could also add the SMF package; but logging in WPMU does not automatically log me in SMF, nor vice versa (the registering seems to work, though when registering anybody through SMF I now get this error:

Fatal error: Cannot redeclare wp_unregister_globals() (previously declared in /home/user/public_html/forum/Sources/SMF_Wordpress.php:302) in /home/user/public_html/wp-settings.php on line 22


Also, when logging in as non-admin, the redirect of wp-login seems to get stuck (Firefox even tells me so). The login does work, when manually going to a blog I appear to have been logged in WP. Still SMF requires another login, which defeats the purpose.

As I use subdomains, I changed the cookie domain in WP settings from:

define('COOKIE_DOMAIN', '.' . $current_site->domain);


to

define('COOKIE_DOMAIN', '.biketravellers.com');


I have now changed it back as it did not seem to make any difference.

A lot of info, maybe this helps you, and maybe you can help me! You can test it for yourself by signing up on http://biketravellers.com or http://biketravellers.com/forum

all is still in beta, so you can test your heart out if you have time  8)

Thanks for any advice you can give,
Best regards,

Harry
Title: Re: SMF & WordPress
Post by: Riotblade on October 10, 2007, 03:49:04 PM
Quote from: 7summits on October 09, 2007, 05:09:31 AM
@ riotblade: I think you can just use the examples as in php files (see also 'Site Integration under the configuration options, when all is installed), fro example just add:

<?php echo SMF_EnSonMesajlar($limit=10,'<ul>','<li>','</li>','</ul>'?>

For using SSi functions I assume you have to php include that file, not sure.\

That's not what I'm asking.  I'm asking for a function that retrieves things WITHIN a topic like the SSI BoardNews function.  SSI was working until after enabling the plugin.
Title: Re: SMF & WordPress
Post by: Nibbler336 on October 14, 2007, 07:16:33 AM
Hi all,

How to (easily) visually integrate smf forum in wp blog??
I mean to have my forum on a page of my blog and keep the blog's skin.

Thx

Nib
Title: Re: SMF & WordPress
Post by: wayoutwest on October 18, 2007, 07:01:59 AM
I got the WP side of things working (where when user is logged in WordPressMU theyre logged in SMF), but I cant get it working the other direction.

I'm using SMF1.1.3 and tried to manually install the SMF_Wordpress files.  Problem is in the  $sourcedir/Subs-Members.php and $sourcedir/Security.php.   

I did the changes manually (the adding of new code) and now I'm getting parse errors.  Code in install.xml (the code it searches for) is slightly different in 1.1.3 and tried to make the replacement code match up to new version, but apparently I failed.

Anyone using SMF 1.1.3 and get this to work?  Help please

edit - I think I got it working.  Will post back with step by step on installing for wordpressMU and SMF1.1.3 if all checks out okay.


edit2 - Well, it worked so-so.  Got the users moved to blog, but it put them all in the main blog rather than their own blogs (using wordpressMU).  So alot of shuffling yet to do (manually create each blog area and move users to their own blog area).  And, when logged in through SMF, doesnt seem to always have them logged into blog (but tired and quit testing).

For the install on the SMF side of things (smf 1.1.3), what I had to do was (after installing things on the WordPress side):

upload SMF_Wordpress.php to directory /Sources

manually edit the index.php file in forum directory, doing the following:

find:
require_once($sourcedir . '/Security.php');

add in right below that on own line:
require_once($sourcedir . '/SMF_Wordpress.php');


manually edit the file /Sources/Subs-Members.php, doing the following:

find:

$memberID = db_insert_id();

insert the following directly below it:

// Call an optional function to validate the users' input.
   if (isset($modSettings['integrate_after_reg']) && function_exists($modSettings['integrate_after_reg']))
      $modSettings['integrate_after_reg']($regOptions, $theme_vars, $memberID);


in file Sources/Security.php, do the following:

find:

function is_admin()
{
   isAllowedTo('admin_forum');
}


replace with:

// Commented out by SMF_Wordpress plugin for compatibility.
function is_admin()
{
   isAllowedTo('admin_forum');
}
*/


Then, in site control panel give your smf database user access to the blog's SQL database and the blog database user access to the smf SQL database.

Then, go to blog admin panel, to the smf plugin page, and select "Repair User Links"

When I did all of that, the users then showed up in WordPress.  BUT, since I'm using WordPressMU, they all showed up as users for the primary blog, rather than their own blogs.   And, for some reason a few users were skipped (I think cause they had odd characters, such as !, in their name) [edit - theyre in the SQL database, but just not showing up in userlist in admin panel for some reason].

Oh, another thing to be aware of, be sure you have php set to have access to enough memory!   Got out of memory errors when trying to run the fix user links utility.  Turned out that php was set to default of 8mb memory.  Added the following to .htaccess file in site's html root directory to fix it:

<FilesMatch "\.(php|html?)$">
php_value memory_limit 16M
</FilesMatch>


Hope that all made sense and that it helps someone.  Now if I could only figure out an easy way to move all these users to their own blogs and then to import their posts from the old blog system to the new. 
Title: Re: SMF & WordPress
Post by: wayoutwest on October 21, 2007, 09:22:06 PM
just ripped the bridge out cause too buggy.   It screwed up some usernames in forum (one person had part of their username truncated for no apparent reason), when person would put in real name (in First Name, Last Name entries) in their blog profile it would change their username in smf forum, and some probs with passwords (granted, it might have been people forgetting their passwords). 

it also added a space to random users' display name in forum, screwing up PMs.
Title: Re: SMF & WordPress
Post by: benji99 on October 29, 2007, 09:53:27 AM
I think an amazing job has been done with the integration of SMF and WP.  I appreciate everyone who has spent time on making this work.

I do have a question;

I am using the following code to generate the latest posts from my forum on the wordpress blog front page.

<?php echo SMF_EnSonBasliklar($limit=10,'<ul>','<li>','</li>','</ul>') ?>

This generates something like this ...

QuoteWelcome to our forum!
Last post by: benji Topic: Anything & Everthing Date: 26.10.2007 22:23

I would like to this to only generate the topic title ("Welcome to our forum!") as well as the author of the last post and not show the forum name and date and time of the post.

Any ideas on how to do this?
Title: Re: SMF & WordPress
Post by: powerline on October 29, 2007, 01:03:35 PM
O.k. I got the smf/wordpress bridge installed everything synced like user accounts, but when me or any user logs off of smf and tries to log back on, i get this error:

QuoteFatal error: require_once() [function.require]: Failed opening required 'c:Inetpubwwwrootwordpress/wp-includes/wp-db.php' (include_path='.;C:\php5\pear') in c:\Inetpub\wwwroot\Sources\SMF_Wordpress.php on line 992

And Yes! it does it in IE and FireFox, IE ver. the regular one that comes with windwos, actually i tried it with every browser still the same, and every other user has the same error as well.
Can someone help me out before i erase this?

Thank You all for your time....

Joey
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 29, 2007, 02:13:39 PM
I got this working 100% on my forums...you can view them...and test it for your self just click the url in my mini profile to the left...then you will be at my main page and you can either sign up there to be apart of forums and main page or you can sign up on forums to be apart of both and well the forums url is at the top of the page...

---Stixsmaster
Title: Re: SMF & WordPress
Post by: powerline on October 29, 2007, 02:50:40 PM
But can you do what i mentioned on this post, without getting that error? If so how did you do it, please i would like to know..
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 29, 2007, 06:46:52 PM
Yes, as I said it works 100% with no trouble...and well I didnt do anything special I just installed the one plugin to my wordpress first then I installed the one to my SMF and configured it all perfectly and it came out working...it isnt hard and I love it...

---Stixsmaster
Title: Re: SMF & WordPress
Post by: powerline on October 29, 2007, 07:40:36 PM
But have you tried logging off in smf and loggin back in?
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 29, 2007, 08:05:00 PM
Yes...I have...

---Stixsmaster
Title: Re: SMF & WordPress
Post by: powerline on October 29, 2007, 08:08:43 PM
Ok did it work without any errors?
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 29, 2007, 09:50:24 PM
yea...

---Stixsmaster
Title: Re: SMF & WordPress
Post by: powerline on October 29, 2007, 10:56:57 PM
than i guess i dont know what went wrong for me, I give up then thanx.
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 30, 2007, 06:10:40 AM
All I can say is try installing the plugin for wordpress before the one for SMF and then after getting that configured and running install the one for your SMF and itll auto work with your wordpress...that is what I did...

---Stixsmaster
Title: Re: SMF & WordPress
Post by: powerline on October 30, 2007, 10:24:58 AM
i believe thats what i did just like in the instructions read me file. but all i see it do is work one way and thats from wordpress as far as logging in  and out goes. but when i go to smf all hell breaks loose
Title: Re: SMF & WordPress
Post by: brainiac744 on October 30, 2007, 02:06:33 PM
Mine WAS working perfectly, after an upgrade of SMF it is now broken though. When people try to register on the forum they get some lovely errors. I think I'm going to try uninstalling the SMF plugin and reinstalling it, but I'm not hopeful...
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 30, 2007, 02:07:22 PM
weird

---Stixsmaster
Title: Re: SMF & WordPress
Post by: benji99 on October 30, 2007, 04:28:11 PM
Quote from: Stixsmaster69 on October 30, 2007, 02:07:22 PM
weird

---Stixsmaster

I singed up on your blog, then logged into the forums.  Logged back into the blog and added first and last names on the blog profile.  This changed the username on the forum, which it shouldn't.  That's a problem that will affect a multitude of things including PM's, etc ...
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 30, 2007, 05:40:46 PM
It changed the name of your acount in the forums like it was sposed to but it did not change your login so technically it worked perfect still...

---Stixsmaster
Title: Re: SMF & WordPress
Post by: benji99 on October 31, 2007, 08:57:59 AM
Quote from: Stixsmaster69 on October 30, 2007, 05:40:46 PM
It changed the name of your acount in the forums like it was sposed to but it did not change your login so technically it worked perfect still...

---Stixsmaster

It may have worked the way it should, but I don't want my users to be able to change their displayed forum name.  That can cause all kind of confusion as well as duplication.  I could have 3 users all change their WP profile names to JOHN DOE and that's how their name would be displayed on their post.
Title: Re: SMF & WordPress
Post by: benji99 on October 31, 2007, 02:11:50 PM
Does anyone know why I am getting the following error when using SSI.php functions on the front page of my blog?

QuoteWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/b/e/n/benji99/html/forums/Sources/Subs.php on line 321

First, I was getting this error!
QuoteFatal error: Cannot redeclare is_admin() (previously declared in /home/content/b/e/n/benji99/html/blog/wp-includes/query.php:30) in /home/content/b/e/n/benji99/html/forums/Sources/Security.php on line 813
This was due to both (WP and SMF) using the is_admin function.  Fixed that, now I am getting the error mentioned first.

???
Title: Re: SMF & WordPress
Post by: WheresWaldo on October 31, 2007, 02:39:48 PM
I am having a few difficulties with this part of the WP_SMF plugin. first it did not show up as a modification, after making the changes to the file as outlined on page 12 of this thread, I was able to install and/or uninstall the modification.

Second, my ISP does not allow two DBs in the same instance of My_SQL. The other issue is that the second instance of My_SQL was on another server. Because of this I could never get anything to go from SMF to WP. Solved it by another suggestion on this thread, moving all the tables to inside of the WP DB, then reconfiguring to use that DB. Now it works both ways well.

One problem is that the group of people that the Blog and Forum is intended for all use nicknames. When a user is moved from WP to SMF the display name is the WP firstname+" "+lastname. Is there a way to force it to username as the default? Perhaps making that particular setting an option?

Blog @ http://blog.hammerton.net
Forum @ http://forum.hammerton.net
Title: Re: SMF & WordPress
Post by: Stixsmaster69 on October 31, 2007, 04:00:12 PM
Quote from: benji99 on October 31, 2007, 08:57:59 AMIt may have worked the way it should, but I don't want my users to be able to change their displayed forum name.  That can cause all kind of confusion as well as duplication.  I could have 3 users all change their WP profile names to JOHN DOE and that's how their name would be displayed on their post.

That is your humble opinion and the display name change feature is a SMF feature so if you can figure out a mod to disable it then yes...that may work...but I am just letting you know technically this mod/plugin works perfectly fine still..

---Stixsmaster
Title: Re: SMF & WordPress
Post by: viulian on November 02, 2007, 02:11:11 AM
Mine works perfect too.
SMF 1.1.4 + Wordpress MU 1.3.0 (which just appeared a few days ago). I installed it with WPMU 1.2.5a and upgraded it after a while.
This new WPMU has disabled the xmlrpc posting access par default [I too was pestered by spammers].

What is a pain for me (and confusing for the users) is that not all of SMF users have their member name in the format accepted by WPMU. Some are with spaces, some are with dots - etc, and they aren't logged in by default.
I'm thinking of a mapping between smf user names and wpmu names (and two cookies to be present at the same time for users ending up with canonicalized name in WPMU).
Title: Re: SMF & WordPress
Post by: Tidea on November 12, 2007, 05:24:43 PM
How can I fix this error?  Seeing this error in the forum log.

8: Undefined variable: wp_path
File: /home/findmysa/public_html/project-tideas.com/forum/Sources/SMF_Wordpress.php
Line: 274
?action=register2
Title: Re: SMF & WordPress
Post by: oktosoma on November 15, 2007, 01:17:51 PM
Using SMF 1.1.4 and WPMU 1.3.0

Self Fixed :
1. Remove line admin-db.php include
2. Remove do-action() in pluggable.php

Still found this errors:

8: Undefined property: base_prefix
File: /home/rcwebid/public_html/wp-includes/pluggable.php
Line: 68

8: Use of undefined constant USER_COOKIE - assumed 'USER_COOKIE'
File: /home/rcwebid/public_html/wp-includes/pluggable.php
Line: 49

8: Undefined variable: wp_path
File: /home/rcwebid/public_html/forum/Sources/SMF_Wordpress.php
Line: 274

8: Constant WPLANG already defined
File: /home/rcwebid/public_html/forum/Sources/SMF_Wordpress.php
Line: 742

8: Constant VHOST already defined
File: /home/rcwebid/public_html/forum/Sources/SMF_Wordpress.php
Line: 740

8: Constant DB_CHARSET already defined
File: /home/rcwebid/public_html/forum/Sources/SMF_Wordpress.php
Line: 736

and other Constant **** already defined in many lines.

Please advise,

tx
Title: Re: SMF & WordPress
Post by: crystalwater2 on November 15, 2007, 01:24:43 PM
How exactly does this plugin work? Does it post WP posts in the forum? Can you integrate for use as the comment system?
Title: Re: SMF & WordPress
Post by: jjgallow on November 16, 2007, 12:58:53 AM
Just wanted to say hi to all...

I've been very busy and unable to maintain the bridge.  I was hoping to put work into it over Christmas, but I've just been informed by SMF that they have some copyright concerns (as they are not GPL).  Unfortunately, I'm not sure that  it's in my best interest to keep developing/distributing this.  For my own site, I switched to a GPL-licenced bulletin board system that had bridging capabilities with wordpress.  I wasn't happy about this, as SMF is a superior platform.

Anyway, best wishes all.  If people are interested in further developing it, they're more than welcome.

cheers,

Jeff
Title: Re: SMF & WordPress
Post by: b4pjoe on November 20, 2007, 02:22:16 PM
Quote from: 3nd3r on August 16, 2007, 04:33:19 AM
Quote from: miCRoSCoPiC^eaRthLinG on August 16, 2007, 01:41:06 AM
Hi,
  I've installed WP_SMF (v1.09) and configured it successfully. When I pressed on the button to migrate all WP users to SMF, it copied them over all fine - but along with that it spewed out the message in WP_SMF plugin panel in WP.

WordPress database error: [SELECT command denied to user 'wpadmin'@'localhost' for table 'smf_members']
SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName from `forum`.smf_members ORDER BY ID_MEMBER


Should I be concerned? Is something going wrong and needs to be fixed?

Thanks,
m^e
Yes, I've got and solved this problem earlier (http://wordpress.org/support/topic/122464)
The solution:
That user is your wp admin user, so, go to your mySQL db area through cPanel and update smf database with all access granted for wpadmin (adminuser)... And error is gone.  :)

My error message:

Quote[SELECT command denied to user 'xxxxxxxxxxxxxxxx'@'linhost281.prod.mesa1.secureserver.net' for table 'smf_members']
SELECT ID_MEMBER, memberName, passwd, emailAddress, personalText, websiteUrl, aim, yim, realName from `xxxxxxxxxxxxxxxx`.smf_members ORDER BY ID_MEMBER

I get this error also and have not found a solution. I'm hosted at goDaddy and as far as I can tell there is no CPanel at goDaddy. I contacted goDaddy support and this is the reply I got back:

QuoteThank you for contacting Online Support. Unfortunately I would not be able to assist you with this issue. You are most likely receiving the error because the connection to the database is not closing prior to accessing the other, but it is unclear based on the information provided. The permissions needed for this function are enabled by default. I can only advise to perform a search online if you are not familiar with the necessary scripting.

Any ideas would be greatly appreciated.
Title: Re: SMF & WordPress
Post by: brainiac744 on November 26, 2007, 11:31:33 PM
You need to make sure that your SMF and Wordpress databases have the same MySQL user. I can't remember how to do that in GoDaddy's hosting panel, but you could ask them specifically how to assign a MySQL user to more than one database if you can't figure it out.
Title: Re: SMF & WordPress
Post by: viulian on December 10, 2007, 02:27:13 AM
Here are the nginx rules that work for my SMF <-> WPMU integration:

location /blogs/ {
                index index.php;
                rewrite ^.*/files/(.*) /blogs/wp-content/blogs.php?file=$1;

                if (!-e $request_filename) {
                        rewrite ^.+?(/wp-.*) /blogs/$1 last;
                        rewrite ^.+?(/.*\.php)$ /blogs/$1 last;
                        rewrite ^ /blogs/index.php last;
                }
        }


Images were an issue for me too and I had to comment out the static serving part.
Basically, when nginx sees this line:

location ~* ^.+\.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|p
df|ppt|txt|tar|mid|midi|wav|bmp|rtf)$
        {
                expires 7d;
                # break;
        }


it will refuse to match further.. (even if you don't have a break there).

PS:

Basically, I choose not to run Apache (as it eats up a lot of memory) and as rewrite rules are difficult on lighttpd, I choosed nginx as webserver. .htaccess is useless in nginx, the rules needed to be rewritten.

My setup is:
.../html/community/
.../html/blogs/

For WPMU sites that run directly in the web root, the rules need to be changed a bit. You can remove the /blogs/ part in the rules above, or read more here: http://mu.wordpress.org/forums/topic.php?id=3410&page
Title: Re: SMF & WordPress
Post by: waremock on December 21, 2007, 06:49:10 PM
I got everything to work, however..


How do I make the forum appear in a WP page?
Title: Re: SMF & WordPress
Post by: waremock on December 29, 2007, 06:38:16 PM
Anyone, please help me. I'm drowning in code.
Title: Re: SMF & WordPress
Post by: Succubus Evaligan on January 29, 2008, 09:12:40 PM
Hi
I am using SMF 1.1.4 and I have installed WordPress 2.3.2
Are some bridge that works fine with that two?

I want that the WP uses the DB of the SMF.
Title: Re: SMF & WordPress
Post by: Prospero on February 02, 2008, 02:57:20 AM
I couldn't integrate WordPress 2.3.2 with SMF 1.1.4. It's a pity as I love SMF, but now will probably have to work with phpBB. :(

I hope someone will be able to update bridge for new versions of both WP an SMF.
Title: Re: SMF & WordPress
Post by: Hj Ahmad Rasyid Hj Ismail on February 02, 2008, 07:23:07 AM
Quote from: jjgallow on November 16, 2007, 12:58:53 AM
Just wanted to say hi to all...

I've been very busy and unable to maintain the bridge.  I was hoping to put work into it over Christmas, but I've just been informed by SMF that they have some copyright concerns (as they are not GPL).  Unfortunately, I'm not sure that  it's in my best interest to keep developing/distributing this.  For my own site, I switched to a GPL-licenced bulletin board system that had bridging capabilities with wordpress.  I wasn't happy about this, as SMF is a superior platform.

Anyway, best wishes all.  If people are interested in further developing it, they're more than welcome.

cheers,

Jeff
What a sad ending... I really hope that someone will be interested in continuing this great job.
Title: Re: SMF & WordPress
Post by: wickeddivine on February 08, 2008, 11:41:22 AM
aargh I just got done installing the current versions of Wordpress and SMF-installed the two plugins and got an error.  Came here for help, only to see the post above me.  I wish he would have updated his download page with that information as well so I didn't have to waste my time......

Is there anything that can be integrated with SMF anymore?  No Wordpress, no Joomla....  It's my favorite forum software, but it's becoming harder and harder to use.
Title: Re: SMF & WordPress
Post by: waremock on February 10, 2008, 01:37:35 PM
Easy integration is going to be crucial for the survival of any forum program. I am going to be forced to choose the forum which integrates best with Wordpress.


I want to find something that works best with Wordpress and It really upsets me to have to do this because of all the time I have invested to make SMF and Wordpress work properly.

But at the end I'd rather get rid of SMF or have no forum at all instead of finding something different that would integrate with SMF.
Title: Re: SMF & WordPress
Post by: Apostaganha on February 29, 2008, 06:04:35 AM
Quote from: waremock on February 10, 2008, 01:37:35 PM
Easy integration is going to be crucial for the survival of any forum program. I am going to be forced to choose the forum which integrates best with Wordpress.


I want to find something that works best with Wordpress and It really upsets me to have to do this because of all the time I have invested to make SMF and Wordpress work properly.

But at the end I'd rather get rid of SMF or have no forum at all instead of finding something different that would integrate with SMF.


An integration os smf and wordpress is crucial and urgent!
Title: Re: SMF & WordPress
Post by: FCF iNFERNO on March 08, 2008, 05:41:31 PM
Quote from: ahrasis on February 02, 2008, 07:23:07 AM
Quote from: jjgallow on November 16, 2007, 12:58:53 AM
Just wanted to say hi to all...

I've been very busy and unable to maintain the bridge.  I was hoping to put work into it over Christmas, but I've just been informed by SMF that they have some copyright concerns (as they are not GPL).  Unfortunately, I'm not sure that  it's in my best interest to keep developing/distributing this.  For my own site, I switched to a GPL-licenced bulletin board system that had bridging capabilities with wordpress.  I wasn't happy about this, as SMF is a superior platform.

Anyway, best wishes all.  If people are interested in further developing it, they're more than welcome.

cheers,

Jeff
What a sad ending... I really hope that someone will be interested in continuing this great job.

Bump for the front page, so no one has to go through what I did.

I installed this bridge and plugins and the first time I tried to update the database crashed my forums completely.  No one can log in and it overwrote the names of the users.  In addition, the SMF backup won't work.

I'd search for a COMPLETELY different forum or blogging app.
Title: Re: SMF & WordPress
Post by: Prospero on March 11, 2008, 02:58:46 AM
This sucks. Why can't two great platforms find a way to be together? No offense, but why did SMF developers have to show that they were not pleased with someone working on a bridge? Did anybody suffer from this?
I just don't get why SMF, being IMO the best message board software, doesn't want to play nice with the best blogging software. Everyone would win.

So far the only people who suffered are WP and SMF users.

I don't have any message board now and I really don't know what to do. I could downgrade to older versions of WP and SMF and use and old bridge, but it's not the right thing to do and can't last forever. I could install Vanilla or PunBB, but they are way too simple for my needs. They only thing left is phpBB, but I don't really like the way it integrates the two scripts.

Damn, everything went so good till now...
Title: Re: SMF & WordPress
Post by: JoshieDaMan on March 13, 2008, 11:12:02 PM
I wish that SMF has a bridge for wordpress as well.
Title: Re: SMF & WordPress
Post by: Misu on April 07, 2008, 06:37:55 PM
For all those who are wondering whether this bridge works on WordPress 2.3 (I know... outdated now but a lot of us are still using it), it seems to work fine besides the cookie integration not working very well.  So when you log into WordPress, it doesn't log you into SMF, when you log out, blah blah...

I recently setup a WordPress+SMF Bridge for a client and figured out a work around to this problem.
The problem seems to be that the SMF Bridge (or maybe SMF) is setting its cookies to use .domain.com to allow for subdomain cookies to validate SMF too.  WordPress 2.3 uses domain.com as its cookie.  Since the cookies have two different domains, the bridge does not set and unset them properly (and thus you are not logged in our out properly).

The solution is pretty simple.  WordPress is built very pluggable, so all you need to do is tell WordPress that it should setup its cookie to be .domain.com instead of domain.com, and magic, everything should work in regards to shared logging in and out =D.

To tell WordPress to change what the default cookie domain is, just open up wp-config.php (the file you original modified when you created WordPress with all your database information).

Go to the the line that has:
define('COOKIEHASH', $cookiehash);
Add another enter and add this line of code
define('COOKIE_DOMAIN','.domain.com');

Make sure that you replace domain.com with your actual domain and that you have the "." in front of your domain name.  That "." is important, as it is what allows all the magic of the bridge to work automatically.

Hopefully this helps anyone still trying to use this bridge.


I haven't tested this in WordPress 2.5 yet, so I can not guarantee it will work with 2.5.  I have also not tested this on any version of WordPress MU, so no guarantees there either.  There may be a possibility that I can release a patched version of the bridge to incorporate this fix automatically, but that will all determine on whether I can find some time to do some more testing  and if I can get jjgallow's approval to use his codebase.
Title: Re: SMF & WordPress
Post by: ccbtimewiz on April 07, 2008, 06:56:55 PM
http://www.dmry.net/wordpress-smf-bridge-plugin-10
Title: Re: SMF & WordPress
Post by: waremock on April 07, 2008, 08:22:38 PM
Is anyone planning on making this work again? If not is there an easy way to import smf users into wordpress?
Title: Re: SMF & WordPress
Post by: b4pjoe on April 07, 2008, 09:27:49 PM
Quote from: Misu on April 07, 2008, 06:37:55 PM
For all those who are wondering whether this bridge works on WordPress 2.3 (I know... outdated now but a lot of us are still using it), it seems to work fine besides the cookie integration not working very well.  So when you log into WordPress, it doesn't log you into SMF, when you log out, blah blah...

I recently setup a WordPress+SMF Bridge for a client and figured out a work around to this problem.
The problem seems to be that the SMF Bridge (or maybe SMF) is setting its cookies to use .domain.com to allow for subdomain cookies to validate SMF too.  WordPress 2.3 uses domain.com as its cookie.  Since the cookies have two different domains, the bridge does not set and unset them properly (and thus you are not logged in our out properly).

The solution is pretty simple.  WordPress is built very pluggable, so all you need to do is tell WordPress that it should setup its cookie to be .domain.com instead of domain.com, and magic, everything should work in regards to shared logging in and out =D.

To tell WordPress to change what the default cookie domain is, just open up wp-config.php (the file you original modified when you created WordPress with all your database information).

Go to the the line that has:
define('COOKIEHASH', $cookiehash);
Add another enter and add this line of code
define('COOKIE_DOMAIN','.domain.com');

Make sure that you replace domain.com with your actual domain and that you have the "." in front of your domain name.  That "." is important, as it is what allows all the magic of the bridge to work automatically.

Hopefully this helps anyone still trying to use this bridge.


I haven't tested this in WordPress 2.5 yet, so I can not guarantee it will work with 2.5.  I have also not tested this on any version of WordPress MU, so no guarantees there either.  There may be a possibility that I can release a patched version of the bridge to incorporate this fix automatically, but that will all determine on whether I can find some time to do some more testing  and if I can get jjgallow's approval to use his codebase.

I have been using the WP & SMF 1.09 bridge with WP 2.3 and SMF 1.1.4 for quite a while now and today I upgraded WP to 2.5 and everything is still working quite nicely. Also I never experienced the login and logout problem from one to the other you mentioned in your post. If I login in or out from one it does the same at the other one.
Title: Re: SMF & WordPress
Post by: kangkenyot on April 23, 2008, 11:46:16 AM
Quote from: joec88 on April 07, 2008, 09:27:49 PM
If I login in or out from one it does the same at the other one.

OK, my database integration is works well for SMF and WP. No problem at all.

But, currently they're still on different page.
WP on http://www.links2countries.com
SMF on http://www.links2countries.com/forumtraveling

Now, how to make SMF Forum appear on WP 2.5 page with header, footer and widget as per WP 2.5 theme?

Anybody know how to do that?

Please advise.
Title: Re: SMF & WordPress
Post by: rgarrison on May 04, 2008, 01:57:31 PM
Any plans on making this work with SMF 2.0
Title: Re: SMF & WordPress
Post by: konfusion on May 18, 2008, 07:55:13 PM
Seems like I'll have to change forums yet again, as support is dropped. First I was using BBPress - but that was much too basic, and mods weren't actively being made at the time. Now I went to SMF, but the support has been dropped... PunBB next...
Title: Re: SMF & WordPress
Post by: Hj Ahmad Rasyid Hj Ismail on June 14, 2008, 09:51:59 PM
I am currently trying this complicated "thing". J1.0.x + SMF1.1.5 + FlashChat + WordPress (MojoBlog) + Gallery2. Except for Gallery 2, others should work just fine...
Title: Re: SMF & WordPress
Post by: Miyagi on June 16, 2008, 01:35:44 AM
anyone tried this... ?

http://gumfi.de/wordpress-251-smf-forum-bridge/

I might run a test environment tonight and have a play...
Title: Re: SMF & WordPress
Post by: Powerbob on June 20, 2008, 07:31:15 AM
Just downloaded it myself, will give it a try later.
Title: Re: SMF & WordPress
Post by: tongutd on July 01, 2008, 11:59:20 PM
I installed this plugin with SMF 1.1.5 and WP 2.5.1 Now it's working fine.
Title: Re: SMF & WordPress
Post by: nmpbk on July 02, 2008, 04:31:23 PM
1.09 is running for me on WP 2.5.1 ...  it imports my SMF users and new WP users are written to the SMF member table.

unfortunately the SMF user login/registration dies after activating its counterpart. have seen two other posts in this thread with the same issue i have - basically ABSPATH is stripping slashes, so i get an error like:

Fatal error: require_once() [function.require]: Failed opening required 'C:xampphtdocssmfwordpress/wp-includes/wp-db.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\xampp\smf\Sources\SMF_Wordpress.php on line 992


where C:xampphtdocssmfwordpress  should read C:\xampp\htdocs\smf\wordpress\

anyone else have this issue?
Title: Re: SMF & WordPress
Post by: trmxplat on July 04, 2008, 07:45:02 AM
When im trying to register from smf im getting this message:

Fatal error: Call to undefined function do_action() in /www/htdocs/w0088e80/ersterkontakt/wp-includes/functions.php on line 1703

I forgot: same config as nmpbk
Title: Re: SMF & WordPress
Post by: AmazinAzn on July 14, 2008, 01:50:14 AM
So what are all the problems with this bridge? I really want to use this but I don't want to risk messing something up since my forum is pretty big.
Title: Re: SMF & WordPress
Post by: waremock on July 16, 2008, 02:57:00 PM
Quote from: AmazinAzn on July 14, 2008, 01:50:14 AM
So what are all the problems with this bridge? I really want to use this but I don't want to risk messing something up since my forum is pretty big.

Create a test forum
Title: Re: SMF & WordPress
Post by: waremock on July 16, 2008, 03:00:28 PM
Does anyone know the query I can run to import users from SMF to wordpress?

Been trying to create one and so far it has not worked, The closest I've gotten is this

insert into wp_users

select
'' as ID,a.member_name as user_login,a.passwd as user_pass,a.member_name as user_nicename,a.email_address as user_email,
a.website_url as user_url,a.date_registered as user_registered,'' as user_activation_key,'0' as user_status,a.member_name as display_name,

'0' as spam,'0' as deleted
from smf_members a,wp_users b
where a.member_name<>b.user_login


however it inserts the same user thousands of times.


Any SQl experts out there that can help me.



I am running smf 2.0 beta 3.1 and wordpress mu 1.51

Title: Re: SMF & WordPress
Post by: scriptfordali on August 02, 2008, 11:19:18 PM
Quote from: Miyagi on June 16, 2008, 01:35:44 AM
anyone tried this... ?

http://gumfi.de/wordpress-251-smf-forum-bridge/

I might run a test environment tonight and have a play...

I tried the original one that was being developed and it failed with the errors described just above by the last couple of posters on here. 

I then saw this one and tried it and it now all works great!!  Thanks so much, mate!

I am using WP_SMF 1.09 , SMF 1.1.5 and this smf_wordpress_1.25.1 plugin for SMF and it works great!  I was able to successfully reg a new user in SMF and have it also update and work properly in WP and vice versa!  :D

Yay!!!!!!
Title: Re: SMF & WordPress
Post by: maida on August 06, 2008, 01:31:27 AM
Yay!  I was able to get the bridge working and even import previous users :)


WP 2.6 with WP_SMF 1.09 (http://www.earthorbit.com/opensource/)
SMF 1.1.5 with smf_wordpress_1.25.1 (http://gumfi.de/wordpress-251-smf-forum-bridge/)

I did have to go in and change two lines of code in one file of smf_wordpress_1.25.1 as per a comment in the package author's post

QuoteIn smf_api_1.1.php, in line 166 we should change:
@mysql_connect($db_server, $db_user, $db_passwd)

to:
@mysql_connect($db_server, $db_user, $db_passwd, true)

This will prevent the SMF bridge from hogging the sql connection, thus allowing for wordpress to keep on running as usual

I found that in line 165 in the file I used.
Title: Re: SMF & WordPress
Post by: kangkenyot on August 10, 2008, 08:36:58 PM
Quote from: maida on August 06, 2008, 01:31:27 AM
In smf_api_1.1.php, in line 166 we should change:
@mysql_connect($db_server, $db_user, $db_passwd)

to:
@mysql_connect($db_server, $db_user, $db_passwd, true)


worth to try :)
hope i'll success.
Title: Re: SMF & WordPress
Post by: 3nd3r on August 19, 2008, 05:06:50 AM
Hello. Just a question...

Is there a way to import ALL posts and comments from SMF to WP with these plugins?

Edited: I mean the ones from here: http://gumfi.de/wordpress-251-smf-forum-bridge/
Title: Re: SMF & WordPress
Post by: oldboy88 on August 19, 2008, 07:46:34 AM
I get the following error in SMF:

QuoteFatal error: Call to undefined function: hash_hmac() in /www/htdocs/xxx/forum/Sources/SMF_Wordpress.php on line 122

and this is what line 122 is about:

$key = hash_hmac('md5', $username . '|' . $expiration,$secret_key .  $vbsalt->option_value);

My Installation is  Wordpress 2.6 with WP & SMF 1.09, from this side i think, everything should be ok, in the config of the plugin is stated "connected", all users where imported into wordpress.
I´ve done manuel correction in the smf_api_1.1.php as said here some posts before.

QuoteIn smf_api_1.1.php, in line 166 we should change:
@mysql_connect($db_server, $db_user, $db_passwd)

to:
@mysql_connect($db_server, $db_user, $db_passwd, true)

And on the other side im running SMF 1.1.5 with smf_wordpress_1.25.1 ... but i cant login anymore, cant register ... all ******ed up ...

Ah, with i have done too, was to edit my SECRET_KEY to the SMF_Wordpress.php, becouse i was told so to do in the packet manager of smf.
So, in wp-admin, i have not only one secret_key, in Wp 2.6 i have: ('AUTH_KEY', 'SECURE_AUTH_KEY', 'LOGGED_IN_KEY',) but i´ve edited them out of the config, becouse i know you didnt need them, if you want not to use ssl ... so, there is

define('SECRET_KEY', 'XXX');

in the wp-config, and the "xxx" code is filled in SMF_Wordpress.smf on line 17 ...

can someone help me here ?

Ah, if this is relevant, the wordpress blog is installed on root, the board in a directory called "forum", so [root]/forum ....

Title: Re: SMF & WordPress
Post by: maida on August 19, 2008, 10:27:39 AM
I think you are making this more complicated than it needs to be.  When I did my install, I only changed the one file that I mentioned.

For your issue, I would try uploading your original smf_wordpress.php and not changing anything.  I didn't change anything in that file at all.

Restore your wp_config.php as well.  Put the lines you took out back in.  Just because you don't use them, doesn't mean you should delete them.


define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.


and remove the line you added (I'm not sure why you would add a new variable)

define('SECRET_KEY', 'XXX');

That should get you back to working - as long as all your files are uploaded and complete.

Good luck
Title: Re: SMF & WordPress
Post by: cassie on August 19, 2008, 10:31:50 AM
I would love to have a way to integrate SMF and WP. It looks like the plugin is buggy though.

I can't tell from this thread which plugin is the current, working one. Can someone post the link again?

What happens down the line if this plugin isn't developed and updated as SMF and WP update? That's what I'm concerned about. Don't want problems down the line.
Title: Re: SMF & WordPress
Post by: oldboy88 on August 19, 2008, 12:19:49 PM
Quote from: maida on August 19, 2008, 10:27:39 AM
I think you are making this more complicated than it needs to be.  When I did my install, I only changed the one file that I mentioned.

For your issue, I would try uploading your original smf_wordpress.php and not changing anything.  I didn't change anything in that file at all.

Restore your wp_config.php as well.  Put the lines you took out back in.  Just because you don't use them, doesn't mean you should delete them.


define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.


and remove the line you added (I'm not sure why you would add a new variable)

define('SECRET_KEY', 'XXX');

That should get you back to working - as long as all your files are uploaded and complete.

Good luck

re-edited my wp-config ...

have deleted the changed files of the package from the server, so that i can login, then i installled a clean version, nothing changed on the files through the packageinstaller ... but, same result ...

did you have your package files of both plugins on your harddrive ?

thanks for your help !

@cassie
if you want to try, the working versions where which maida posted some posts ago, you can see his post in the quotationmarks ...
Title: Re: SMF & WordPress
Post by: Soulgirl on August 19, 2008, 12:43:31 PM
Hello there... can you help me? I installed your SMF plugin to smf v1.1.5 and wordpress v2.6.1

On trying to register on the wordpress I get this error:


WordPress database error: [Table 'soulgirl_soulgirl.wp_wpsmf_users' doesn't exist]
SELECT * FROM wp_wpsmf_users WHERE user_id = '8′ AND meta_key = 'Smf_User_ID'

WordPress database error: [Table 'soulgirl_soulgirl.wp_wpsmf_users' doesn't exist]
INSERT INTO wp_wpsmf_users ( user_id, meta_key, meta_value ) VALUES ( '8′, 'Smf_User_ID', '6′ )


It does register the new user on wordpress and on the smf but of course, because it brings up that error on registering in wordpress people might go back and keep trying or get put off completely.  I've turned the wordpress plug in off for now.

Can you help?

Karen x
Title: Re: SMF & WordPress
Post by: oldboy88 on August 19, 2008, 05:43:31 PM
ok, now .. for a moment, i thought it works, so my setup, in detail:

Wordpress 2.6 + WP & SMF 1.09 (edited smf_api_1.1.php)

and on the smf side

SMF 1.1.5 + smf_wordpress_1.25.1 (nothing changed on a file or something)

I´ve activated the plugin, alle users where in my wordpress panel, an i could surf through my board as i want, then i logged me out ... and the same error as mentioned follows, when i want to login again:

Fatal error: Call to undefined function: hash_hmac() in /www/htdocs//forum/Sources/SMF_Wordpress.php on line 122

So, all things where ok when i was logged in ... on top of that, i am surfing with firefox, so ich opened IE, to test if i could register me as a new user, and what happend ? It works! The user was created in wordpress too ... but, once i logged out in firefox, i couldnt login with any acccount :\

Whe i register a new acconount, and gets directly logged in, i can surf through the board too ... but when i logout, i cant login anymore :\

SO ... could it be a cookie problem or something ? .\


Edit:

Ok, i tested following:
i deleted the follwing part in the SMF_Wordpress.php completly:

$key = hash_hmac('md5', $username . '|' . $expiration,$secret_key .  $vbsalt->option_value);

//$hash = hash_hmac('md5', $username . $expiration, $key);
$hash = hash_hmac('md5', $username . '|' . $expiration, $key);
$vb_cookie = $username . '|' . $expiration . '|' . $hash;


Now i can login, now i can register me as a new user, can login with this user on wordpres, can logon the board ...

but i dont know what i´ve done there with deleting this code :\
i think wordpress will have an diffrent sceme as md5, sha1 oder something like that, could that be the answer to my problem ? :\
Title: Re: SMF & WordPress
Post by: eporedieis on August 21, 2008, 07:30:29 AM
Quote from: maida on August 06, 2008, 01:31:27 AM
Yay!  I was able to get the bridge working and even import previous users :)


WP 2.6 with WP_SMF 1.09 (http://www.earthorbit.com/opensource/)
SMF 1.1.5 with smf_wordpress_1.25.1 (http://gumfi.de/wordpress-251-smf-forum-bridge/)
I've installed they, but there is an error. Anyone know how to do?
Fatal error: wp_password() [function.require]: Failed opening required 'wp-includes/wp-db.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/eporedie/public_html/forum/Sources/SMF_Wordpress.php on line 1073
Title: Re: SMF & WordPress
Post by: eporedieis on August 21, 2008, 11:57:08 AM
I've done all like "boy". All ok in the smf => wp, but there are password problems in wp => smf because every user has invalid password. I close registration in wp and i link to smf to do it, and then i have no other problems!
Title: Re: SMF & WordPress
Post by: devnet on August 21, 2008, 12:17:29 PM
Bridge doesn't work currently with 2.6.1 and SMF 1.1.5.

It doesn't allow registration and all logins were messed up on my test site.  I'm electing to go with SSI.php stuff in my sidebar on wordpress instead of this.
Title: Re: SMF & WordPress
Post by: misjka on August 21, 2008, 12:36:02 PM
Hi!

I've finally succeeded in installing the WP part of this bridge, according to guidelines in http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/installation/ :)... But, my question is: Where do I find the SMF part package, i.e. what is called SMF_Wordpress ??? I have searched all over the web without success  :'(... Guess one bit of information is missing for me?

Thanks for any help on this one, 'cause I really can't do without it  ;)!
Title: Re: SMF & WordPress
Post by: misjka on August 22, 2008, 12:16:14 AM
Quote from: misjka on August 21, 2008, 12:36:02 PM
Hi!

I've finally succeeded in installing the WP part of this bridge, according to guidelines in http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/installation/ :)... But, my question is: Where do I find the SMF part package, i.e. what is called SMF_Wordpress ??? I have searched all over the web without success  :'(... Guess one bit of information is missing for me?

Thanks for any help on this one, 'cause I really can't do without it  ;)!


May anyone help me with this one, please?
Title: Re: SMF & WordPress
Post by: kangkenyot on August 22, 2008, 12:47:17 AM
Quote from: misjka on August 21, 2008, 12:36:02 PM
Where do I find the SMF part package, i.e. what is called SMF_Wordpress???

I forget where i found it but see attachment for file.
Hope this help
Title: Re: SMF & WordPress
Post by: misjka on August 22, 2008, 03:28:17 AM
Many thanks!

I wonder, could it be you found it at: http://www.earthorbit.com/opensource/ ? The new twin plugin maybe?
Title: Re: SMF & WordPress
Post by: misjka on August 22, 2008, 11:38:27 AM
Hi!

I've had success in installing the SMF/WP (twin)plugins WP_SMF 1.09 + SMF_Wordpress 1.09 when integrating SMF 1.1.5 + WPMU 2.6 :).

But as I'm using the SMF admin panel to deny new SMF users access to my SMF forum, I get the following error:

QuoteFatal error: require_once(): Failed opening required '/home/misjkac/public_html/WordpressMU/wp-admin/admin-db.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/misjkac/public_html/Sources/SMF_Wordpress.php on line 198

As I've figured out, the required admin-db.php file is missing in the wp-admin directory! There are, though, other admin-*.php files there, e.g. admin-header.php, admin-post.php etc...

So, where might the fault be - in the source code of SMF_Wordpress.php file or is the admin-db.php actually missing in the WPMU distribution

I'm very grateful for a quick response since I'm running this in a "production" environment...

Thanks,
Title: Re: SMF & WordPress
Post by: mockingbird on September 19, 2008, 07:11:31 PM
It would be really great if a working version for WP 2.6.x + SMF 1.1.x would be released.
Title: Re: SMF & WordPress
Post by: combox7 on September 21, 2008, 05:38:05 PM
i really need help here i lost my site and beacuse of this and im noting going to use my site for noting lol i for got to back up but ok i have been trying to install smf in to wordpress for 4 days know and some one pls help me

details
wordpress 2.6.x

smf 1.1.6 i think

plug ins  wp_wordpress  and smf_wordpress
Title: Re: SMF & WordPress
Post by: astrokuma on October 01, 2008, 04:09:00 PM
First of all, sorry for my horrible english, I'm from a spanish country (Mexico)

I've got a simple question for you

you'll se, i'm a newbie using wordpress, and I don't know where shoul I put the new post from my smf to the wordpress, The Bridge works for me, but I'm a little lost.

the instruction :
SMF_EnSonMesajlar($limit=10,$before_all,$before_message,$after_message,$after_all)

where shuld I put it

that's all, if someone could tell me where I have to put this, to show the new posts in my wordpress It would be my hero, jeje

thanks a lot!

cya!
Title: Re: SMF & WordPress
Post by: freemanmagic on October 04, 2008, 12:21:41 PM
 :D
Title: Re: SMF & WordPress
Post by: Ramón Cutanda on October 06, 2008, 03:30:48 PM
Quote from: maida on August 06, 2008, 01:31:27 AM
Yay!  I was able to get the bridge working and even import previous users :)


WP 2.6 with WP_SMF 1.09 (http://www.earthorbit.com/opensource/)
SMF 1.1.5 with smf_wordpress_1.25.1 (http://gumfi.de/wordpress-251-smf-forum-bridge/)

That's what I used and it worked. However, I had some problems when integrating my 22,000 current SMF users into WP. It took more than an hour and I had to increase the memory in my php.ini until 1.500 Mbytes. Otherwise I had an error.
Title: Re: SMF & WordPress
Post by: vurea on October 06, 2008, 07:38:09 PM
ahh im about to rip my head out.

i got my wordpress 2.6.2 integrated with smf 1.16 successfully sorta.

users are indeed being integrated how ever the wordpress users password don't work in smf. any ideas
Title: Re: SMF & WordPress
Post by: vurea on October 06, 2008, 08:38:37 PM
sigh now i know why.


wordpress 2.6.2 uses 3 secret keys while the current bridge is set to use 2.5s secret key >< = password different doh!
Title: Re: SMF & WordPress
Post by: zigzagler on October 07, 2008, 04:37:20 AM
Quote from: vurea on October 06, 2008, 08:38:37 PM
sigh now i know why.


wordpress 2.6.2 uses 3 secret keys while the current bridge is set to use 2.5s secret key >< = password different doh!

Hi everyone, this is my first post in the forum as I'm very new to SMF.
However, I have a problem with my SMF forum:

- Recently upgraded to WP2.6.2 from WP2.5, SMF version 1.1.6(if I'm not mistaken).
- Yesterday, I added a new category & a new topic, then SMF forum asked me whether I wasnted to make an announcement to inform all my members about it...I clicked "OK".
- As soon as I see the process of sending messages to all my members notifying about the new post, my forum became unaccessable. This is the first post I made after the upgrade to WP2.6.2. I had upgraded SMF forum to 1.5 earlier prior to the WP upgrade.

Problem:

Under my dashboard, it has an irritating message on top saying "You still need to configure your WP_SMF Bridge. You can do this at Plugins->SMF"

I've tried to click on "Update SMF integration options" several times but the error message is still in my dashboard all the while.

I really appreaciate it if any experts in this forum would tell me what went wrong?

Will uploading my previous backup of FORUM solve this problem?

I really suspect there's a conflict in the WP-SMF bridge script with my current WP2.6.2  :-[

Thanks in advance!

Title: Re: SMF & WordPress
Post by: Igrecpoint on October 07, 2008, 11:41:49 PM
So
My config:
WP 2.6.1 + WP_SMF 1.0.9
SMF 1.1.6 + SMF_WP 1.09

May be it will be odd for you, but following the http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/installation/ + readme.txt of each plug in
All appear simple, efficient = great.

I had my WP with user, I've setup a new & empty smf.
My users are now synchronize ...

The only problem I have is while new people try to register from smf. it bug (error message, but the user is recorded & not accessible for validation or resent of the activation email)
While then arrive through WP, it's all fine.

Any idea ?


Y.
Title: Re: SMF & WordPress
Post by: vurea on October 08, 2008, 01:24:13 AM
read my above post.

users have different password then wordpress because one simple reason.

secret keys, cookie hashes.
wordpress 2.6 has 3 new cookies. previous wordpress only had 1.

someones gotta fix the bridge to use the 3 new keys.
Title: Re: SMF & WordPress
Post by: zigzagler on October 08, 2008, 08:51:25 AM
Quote from: vurea on October 08, 2008, 01:24:13 AM
read my above post.

users have different password then wordpress because one simple reason.

secret keys, cookie hashes.
wordpress 2.6 has 3 new cookies. previous wordpress only had 1.

someones gotta fix the bridge to use the 3 new keys.

I've tried to install a fresh new SMF on a different folder & as soon as I click on "announce the topic" this is what I get on my FTP server.

"Unable to transfer.
This is most likely due to insufficient permissions. Verify both the destination path and permissions, then try again. If the problem persists, contact your system administrator or hosting provider."

It appears to be the permission of the folder was set to "0" from "755".
Title: Re: SMF & WordPress
Post by: benm_at on October 10, 2008, 09:30:09 PM
hi all!

i successfully integrated smf into my wp blog http://www.benm.at/

now i just wanna show the "last 5 new threadposts" as a widget. i tried it but doesnt work the right way...

is there plugin allready to do this?

im not really coding guy. it was hard to implement the smf into my wp blog. so i hope someone can help me :)

best regards

ben

/e and is it possible to make a new thread automatically if a new wp-post will be posted? so people can discuss right in the forum about the news and not in the comments? is there maybe also a plugin for this?
Title: Re: SMF & WordPress
Post by: Callan on October 12, 2008, 11:22:59 PM
Is there a way to import all the current users in SMF as users in Wordpress?
I want to use wordpress as the front of my site and control the login if I can.
I've tried to click the 'Repair User Links' function in plugin's settings page as part of the WP admin area, but still it doesn't seem to add any new users.

I've installed WP 2.62, SMF 1.16, WP_SMF 1.9 and smf_wordpress_1.25.1

Thanks in advance,
Callan
Title: Re: SMF & WordPress
Post by: jjgallow on November 07, 2008, 10:51:08 AM
Hello everyone,

Sorry I haven't responded here in over a year.  I've just had to move onto other things in my life.  I just wanted to mention that the site I allowed downloads from, earthorbit.com, was hacked two days ago.  If you downloaded anything from the site Between Nov 5-7, 2008, I'd suggest deleting it or checking the script out.

I'm dissapointed that I need to worry about things like this just to offer free script.  Since my intention is not to spread viruses and I don't have time to monitor such behaviour, I've taken the site down.  Anyone who would like to continue the script is more than welcome.

cheers
Title: Re: SMF & WordPress
Post by: chaky! on November 09, 2008, 12:12:01 AM
Thanks for aaaall the work jjgallow, but you can upload the files here (like atachaments) i aprecciated.

sorry for my english  ;)
Title: Re: SMF & WordPress
Post by: af3 on November 11, 2008, 06:42:24 AM
this is working ok for me on wpmu2.6.3 + smf1.1.7 on all browsers except firefox3 and chrome: i cant login at all. when logging in, it will just go back to the login screen. pls help.

btw, another one small issue: when a user register in wpmu, this user registration stats is not inserted in the smf database, so the smf month stats will show zero registration. any idea where to fix this in the file? is this ins smf-wordpress file? thanks
Title: Re: SMF & WordPress
Post by: Chris369 on November 14, 2008, 02:08:37 PM
Has anyone got a working integration? I have SMF 1.1.5 and WP 2.6.3

I want my SMF users to be able to login n to WP with the same login details.

And it would be cool if blog posts/blog comments translated into SMF threads/SMF posts as well.

Anyone know of a working solution?

I've tried this - http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/ - but whenever I change the directory of my forum in the plugin settings I can't get any blog pages to load ... get some error about not being able to open stream on line 384 (?) of wp_smf.php (I think it was that file anyway).
Title: Re: SMF & WordPress
Post by: chaky! on November 14, 2008, 07:22:36 PM
Quote from: Chris369 on November 14, 2008, 02:08:37 PM
Has anyone got a working integration? I have SMF 1.1.5 and WP 2.6.3

I want my SMF users to be able to login n to WP with the same login details.

And it would be cool if blog posts/blog comments translated into SMF threads/SMF posts as well.

Anyone know of a working solution?

I've tried this - http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/ - but whenever I change the directory of my forum in the plugin settings I can't get any blog pages to load ... get some error about not being able to open stream on line 384 (?) of wp_smf.php (I think it was that file anyway).

I recived the same error... someone fixedit?
Title: Re: SMF & WordPress
Post by: af3 on November 15, 2008, 06:38:56 AM
Quote from: af3 on November 11, 2008, 06:42:24 AM
this is working ok for me on wpmu2.6.3 + smf1.1.7 on all browsers except firefox3 and chrome: i cant login at all. when logging in, it will just go back to the login screen. pls help.
update: this is fixewith firefox 3.0.4

Quotebtw, another one small issue: when a user register in wpmu, this user registration stats is not inserted in the smf database, so the smf month stats will show zero registration. any idea where to fix this in the file? is this ins smf-wordpress file? thanks
still havent got this fixed .. any idea how?
Title: Re: SMF & WordPress
Post by: Chris369 on November 16, 2008, 04:49:01 AM
Quote from: Chris369 on November 14, 2008, 02:08:37 PM
Has anyone got a working integration? I have SMF 1.1.5 and WP 2.6.3

I want my SMF users to be able to login n to WP with the same login details.

And it would be cool if blog posts/blog comments translated into SMF threads/SMF posts as well.

Anyone know of a working solution?

I've tried this - http://wordpress.org/extend/plugins/wp-smf-a-simplemachines-bridge/ - but whenever I change the directory of my forum in the plugin settings I can't get any blog pages to load ... get some error about not being able to open stream on line 384 (?) of wp_smf.php (I think it was that file anyway).

Anyone?
Title: Re: SMF & WordPress
Post by: teflon on November 19, 2008, 08:34:39 PM
http://www.simplemachines.org/community/index.php?topic=253806.0
you have to edit the page so that it references a lower case folder
Title: Re: SMF & WordPress
Post by: Chris369 on November 20, 2008, 04:00:28 PM
Quote from: teflon on November 19, 2008, 08:34:39 PM
http://www.simplemachines.org/community/index.php?topic=253806.0
you have to edit the page so that it references a lower case folder

Cheers that worked.

It copied the users from wordpress to the forum but it hasn't copied the forum members to wordpress. Should it do?
Title: Re: SMF & WordPress
Post by: lolicute on November 21, 2008, 12:45:39 AM
there any update to work in WP 2.6?
Title: Re: SMF & WordPress
Post by: mdjames0001 on November 26, 2008, 05:56:42 AM
Quote from: scriptfordali on August 02, 2008, 11:19:18 PM
Quote from: Miyagi on June 16, 2008, 01:35:44 AM
anyone tried this... ?

http://gumfi.de/wordpress-251-smf-forum-bridge/

I might run a test environment tonight and have a play...

I tried the original one that was being developed and it failed with the errors described just above by the last couple of posters on here. 

I then saw this one and tried it and it now all works great!!  Thanks so much, mate!

I am using WP_SMF 1.09 , SMF 1.1.5 and this smf_wordpress_1.25.1 plugin for SMF and it works great!  I was able to successfully reg a new user in SMF and have it also update and work properly in WP and vice versa!  :D

Yay!!!!!!

YES!!! This one finally works!!! I've been trying to find a download and couldn't find one. This finally worked.

Now...can anyone tell me how to reset it so that you can do the user integration again? I only have a one way (WP to SMF) integration of old users. I have tried the reset proceedure of deactivating both, dropping the WPSMFUsers table. I even dropped out the Option Records beginning with SMF (2 of them). It resets enough to let me enter the path of the SMF install, but that's it. Still says Users are integrated. or some such nonsense.

HELP!!!

Michael in Hawaii - www.Aplazak.com (http://www.aplazak.com) - Blog, photo gallery, and Community forum - <adult>
Title: Re: SMF & WordPress
Post by: Chris369 on November 30, 2008, 01:08:23 PM
Quote from: Chris369 on November 20, 2008, 04:00:28 PM
Quote from: teflon on November 19, 2008, 08:34:39 PM
http://www.simplemachines.org/community/index.php?topic=253806.0
you have to edit the page so that it references a lower case folder

Cheers that worked.

It copied the users from wordpress to the forum but it hasn't copied the forum members to wordpress. Should it do?

Anyone?
Title: Re: SMF & WordPress
Post by: mdjames0001 on November 30, 2008, 03:28:40 PM
Is this during install that it isn't copying them? Or after installation when you try a new registration?

I can't get the existing Forum Members to copy to the Wordpress Members. I think the new code should do it if I could get the script to reset and let me try it again, but I can't get it to reset.

Michael in Hawaii - www.Aplazak.com - Blog, photo gallery, and Community forum - <adult>
Title: Re: SMF & WordPress
Post by: mdjames0001 on December 07, 2008, 04:16:13 AM
Quote from: oldboy88 on August 19, 2008, 05:43:31 PM
ok, now .. for a moment, i thought it works, so my setup, in detail:

Wordpress 2.6 + WP & SMF 1.09 (edited smf_api_1.1.php)

and on the smf side

SMF 1.1.5 + smf_wordpress_1.25.1 (nothing changed on a file or something)

I´ve activated the plugin, alle users where in my wordpress panel, an i could surf through my board as i want, then i logged me out ... and the same error as mentioned follows, when i want to login again:

Fatal error: Call to undefined function: hash_hmac() in /www/htdocs//forum/Sources/SMF_Wordpress.php on line 122

So, all things where ok when i was logged in ... on top of that, i am surfing with firefox, so ich opened IE, to test if i could register me as a new user, and what happend ? It works! The user was created in wordpress too ... but, once i logged out in firefox, i couldnt login with any acccount :\

Whe i register a new acconount, and gets directly logged in, i can surf through the board too ... but when i logout, i cant login anymore :\

SO ... could it be a cookie problem or something ? .\


Edit:

Ok, i tested following:
i deleted the follwing part in the SMF_Wordpress.php completly:

$key = hash_hmac('md5', $username . '|' . $expiration,$secret_key .  $vbsalt->option_value);

//$hash = hash_hmac('md5', $username . $expiration, $key);
$hash = hash_hmac('md5', $username . '|' . $expiration, $key);
$vb_cookie = $username . '|' . $expiration . '|' . $hash;


Now i can login, now i can register me as a new user, can login with this user on wordpres, can logon the board ...

but i dont know what i´ve done there with deleting this code :\
i think wordpress will have an diffrent sceme as md5, sha1 oder something like that, could that be the answer to my problem ? :\

In this above example. I am getting the same thing the error in line 122. What I have noticed is that if you go in through WP and then link to SMF you get logged in fine. If you logout (as shown in his example above) you can't log back in. And for me as well, commenting out those line seems to help. hash_hmac seems to be a fucntion in a different version of PHP. I noticed that in the wp-includes folder, compat.php defines hash_hmac if it is not already defined.

If anyone is interested in cleaning up the code, that may be a place to look. I tried doing and include_once of that file, but it didn't work. I also am nto a good php programmer and don't really know how to do an include properly. :-) I simply looked for and include statement and tried to replicate it.

Onward and forward.

I still would like to know if someone has been able to reset the two systems so that you can try relinking the users. I have never gotten the SMF users to be copied to the WP users.

EDITED:
AHA!!! I Fixed it. I tried this instead. require_once (ABSPATH . 'wp-includes/compat.php');
right before the first hash_hmac. It doen't fail, I can logout and back in as the same suer or another user.

Aloha,
Michael
www.aplazak.com (http://www.aplazak.com)
Title: Re: SMF & WordPress
Post by: sosuke on December 10, 2008, 03:22:55 PM
Quote from: mdjames0001 on December 07, 2008, 04:16:13 AM
Quote from: oldboy88 on August 19, 2008, 05:43:31 PM
ok, now .. for a moment, i thought it works, so my setup, in detail:

Wordpress 2.6 + WP & SMF 1.09 (edited smf_api_1.1.php)

and on the smf side

SMF 1.1.5 + smf_wordpress_1.25.1 (nothing changed on a file or something)

I´ve activated the plugin, alle users where in my wordpress panel, an i could surf through my board as i want, then i logged me out ... and the same error as mentioned follows, when i want to login again:

Fatal error: Call to undefined function: hash_hmac() in /www/htdocs//forum/Sources/SMF_Wordpress.php on line 122

So, all things where ok when i was logged in ... on top of that, i am surfing with firefox, so ich opened IE, to test if i could register me as a new user, and what happend ? It works! The user was created in wordpress too ... but, once i logged out in firefox, i couldnt login with any acccount :\

Whe i register a new acconount, and gets directly logged in, i can surf through the board too ... but when i logout, i cant login anymore :\

SO ... could it be a cookie problem or something ? .\


Edit:

Ok, i tested following:
i deleted the follwing part in the SMF_Wordpress.php completly:

$key = hash_hmac('md5', $username . '|' . $expiration,$secret_key .  $vbsalt->option_value);

//$hash = hash_hmac('md5', $username . $expiration, $key);
$hash = hash_hmac('md5', $username . '|' . $expiration, $key);
$vb_cookie = $username . '|' . $expiration . '|' . $hash;


Now i can login, now i can register me as a new user, can login with this user on wordpres, can logon the board ...

but i dont know what i´ve done there with deleting this code :\
i think wordpress will have an diffrent sceme as md5, sha1 oder something like that, could that be the answer to my problem ? :\

In this above example. I am getting the same thing the error in line 122. What I have noticed is that if you go in through WP and then link to SMF you get logged in fine. If you logout (as shown in his example above) you can't log back in. And for me as well, commenting out those line seems to help. hash_hmac seems to be a fucntion in a different version of PHP. I noticed that in the wp-includes folder, compat.php defines hash_hmac if it is not already defined.

If anyone is interested in cleaning up the code, that may be a place to look. I tried doing and include_once of that file, but it didn't work. I also am nto a good php programmer and don't really know how to do an include properly. :-) I simply looked for and include statement and tried to replicate it.

Onward and forward.

I still would like to know if someone has been able to reset the two systems so that you can try relinking the users. I have never gotten the SMF users to be copied to the WP users.

EDITED:
AHA!!! I Fixed it. I tried this instead. require_once (ABSPATH . 'wp-includes/compat.php');
right before the first hash_hmac. It doen't fail, I can logout and back in as the same suer or another user.

Aloha,
Michael
www.aplazak.com (http://www.aplazak.com)

it took 18 posts to make it work? ****** i can't get it though. I'm a retard in HTML
Title: Re: SMF & WordPress
Post by: mdjames0001 on December 11, 2008, 03:10:10 AM
To be fair, it was 18 PAGES of posts. But hey. It's worth it.

I posted the ones that I am using. The 1.25.1 has my mod in it. install the SMF Package first then the wordpress plugin and integrate in Plugins/SMF Config, then integrate users.

Note, I still have not found a way to integrate users a second time. and I'm still not sure that the SMF users get integrated to WP, only WP to SMF.

But other than that it works great!! :P

Michael in Hawaii - www.Aplazak.com (http://www.aplazak.com) - Blog, photo gallery, and Community forum - <adult>
Title: Re: SMF & WordPress
Post by: Phat^Trance on December 21, 2008, 07:02:57 PM
what does these mod actually do?

is it possible to transfer all my current comments to the SMF forum? 

or is it possible to redirect a comment user from my blog post to a post on my forum when the visitors wants to comment?
Title: Re: SMF & WordPress
Post by: Sanhux on December 24, 2008, 08:42:47 PM
Is there any updated howto /plugins to integrate the user base of SMF and WP ?

I tried the old bridge, but get some errors in that ocasion, so isn't work for me.

tks
Title: Re: SMF & WordPress
Post by: Sel_888 on December 31, 2008, 10:39:44 AM
Would any of these mods allow the link to a user's blog show up in their smf post (either in their sig line or whatever.)
I have an example, but it's a phpbb site... but the idea is what I want.
http://www.gardenstew.com/about13257.html

Am I way off base with this? I tried to search out what these do, but all I am finding is that if one registers for one it registers for the other. I want simply that the registered users of SMF would be able to show their link to their blog automatically (especially 'recent blog entry' link) through them posting in SMF.
confusing... I know.
-Sel
Title: Re: SMF & WordPress
Post by: Joe_lemon on January 03, 2009, 05:56:47 PM
Hi all! I thank you for all your tips those have help me in the installation of this bridge. Now it works! :)
There's only a thing that I'd like to change: is it possible to do that when an user is logged in wordpress he is logged in smf too? Because you have to do two different logins and this isn't so comfortable..many thanks!
Title: Re: SMF & WordPress
Post by: SB1 on January 08, 2009, 11:37:59 PM
When I installed the bridge, it asked me to import the existing users, I did this and the whole wordpress installation went blank. I can't even log in to disable the package as it's blank on every page.

Anyone have any idea why? It's wordpress 2.7.
Title: Re: SMF & WordPress
Post by: robinwickens on January 09, 2009, 06:10:18 PM
An up to date link where all plug-ins are available would be appreciated!
Every link that I click on is returned as unavailable!
Title: Re: SMF & WordPress
Post by: JonnyNero on January 10, 2009, 11:25:20 AM
I've skimmed through this thread, and with my blog the only users I have sign up are  people who contribute to the blog.  So this type of integration is not needed for my use.

However, waaaaayyyy back in 2007 someone mentioned the need for a plug in to post an article from WP into SMF, and it was shot down because of priorities.  Has anything been done towards that kind of plug in yet?
Title: Re: SMF & WordPress
Post by: jesustm6 on January 25, 2009, 02:56:13 PM
hello guys, I have a problem with this mod: SMF_Wordpress. When is active and I try to post a new topic or some other actions, SMF returns me an empty page only with "Hacking attempt...". I have SMF 1.1.7

In the error's log show me messages like this:


Quotehttp://foro.micoalcoman.com/index.php?action=packages;sa=uninstall2;package=SMF_Wordpress.zip

    2: Cannot modify header information - headers already sent by (output started at /home/content/j/e/s/jesustm6/html/foro/Sources/SMF_Wordpress.php:1)
    Archivo: /home/content/j/e/s/jesustm6/html/foro/Sources/Subs.php
    Línea: 3208


or

Quote

    http://foro.micoalcoman.com/index.php?action=packages

    2: Cannot modify header information - headers already sent by (output started at /home/content/j/e/s/jesustm6/html/foro/Sources/SMF_Wordpress.php:1)
    Archivo: /home/content/j/e/s/jesustm6/html/foro/Sources/Subs.php
    Línea: 3205


If I uninstall the mod everything goes fine, but I really want that mod to make a bridge with wordpress

Thanks in advance for your help.
Title: Re: SMF & WordPress
Post by: D9r on February 10, 2009, 02:16:48 PM
Quote from: JonnyNero on January 10, 2009, 11:25:20 AM
However, waaaaayyyy back in 2007 someone mentioned the need for a plug in to post an article from WP into SMF, and it was shot down because of priorities.  Has anything been done towards that kind of plug in yet?

Google is your friend  ;)  www.google.com/search?q=wordpress+smf+forum+post
QuoteWordpress Post to SMF (http://wordpress.org/extend/plugins/post-to-smf-forum/)
Version: 1.5 This plugin adds Wordpress posts as topics in SimpleMachines Forum 1.1.7, and links the WP post to the comments in the forum.
http://wordpress.org/extend/plugins/post-to-smf-forum/
Title: Re: SMF & WordPress
Post by: comesee on February 22, 2009, 09:46:30 PM
I have smf 1.17 and wp 2.7 , i cant intregate why. my pages go blank. please attach plugin and mod.
Title: Re: SMF & WordPress
Post by: BYTE-Smasher on February 23, 2009, 12:32:03 PM
I'm gonna be a complete and utter noob here and not bother reading through this entire thread. Can someone please point me to the mods needed to integrate SMF 2.0 with Wordpress 2.7.1? I simply want my forum users to be able to post comments on my blog without having to enter user info. It's not really a big thing... but it would be nice to have :)
Title: Re: SMF & WordPress
Post by: iwrite on February 23, 2009, 11:57:06 PM
Sorry I like to understand a few things about SMF WP integration

1. say my wordpress is in _wp db, do I need to put it in the same db before I can integrate it.
2. if I want to make the forum wrap around my blog, meaning look like part of my blog what program can I use to customise. (prefer to be free of charge)
3. where do I upload the wp_smf bridge to?

You see I am new to this and I hope someone would be able to guide me along. by the way what is the difference between mod and theme? Should I upload to my host?
Title: Re: SMF & WordPress
Post by: af3 on February 24, 2009, 01:18:54 PM
There was work by jjgalow on the bridges but this has been abandoned (due to SMF GPL issues?) and no longer works with either the latest smf or wp2.7 or wpmu2.7, or both.

I think the interest in this WP/SMF bridge is growing, given the popularity of Wp and SMF too -- appreciate those with WP and SMF  skills can share how their bridge work, or how the existing bridge can be updated to work with latest releases. cheers
Title: Re: SMF & WordPress
Post by: BYTE-Smasher on February 26, 2009, 09:56:32 AM
I've hacked together a quick SMF 2.0 + Wordpress 2.7 DIY mod that allows logged in SMF users to post Wordpress comments using their SMF credentials:

In your wordpress template's comments.php file, add this at the begining:

<?php
require_once("/path/to/smf/forum/SSI.php");
global 
$context;
?>



Then, further down in the same file, find the folowing:

<?php if ( $user_ID ) : ?>

<p><small>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></small></p>

<?php else :?>


paste this after the else statement line:

<?php
if ($context["user"]["is_logged"]){
?>

<input type="hidden" name="author" id="author" value="<?php echo $context["user"]["username"]; ?>"/>
<input type="hidden" name="email" id="email" value="<?php echo $context["user"]["email"]; ?>"/>
        <?php
}else{
?>



Then scroll down a bit until you see this:

<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"?> />
<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"?></small></label></p>

and add this after it:
<?php }?>

This is an incomplete hack... I haven't added the SMF user's Website URL, because I didn't know where in the SMF api to retrieve it. I'll post back when I find it, or one of you kind people can inform me :p

I should also note: In my case, I had to enable subdomain independent cookies in the SMF admin, as my forum is installed to a subdomain.
Title: Re: SMF & WordPress
Post by: af3 on February 27, 2009, 05:13:38 AM
If you are using the previous mods wp/smf and smf/wp, users db are actually integrated; so users can comments in wp posts / forum. The mods work for previous wp version, also still works for wpmu2.7/wp2.7 + smf1.18 but smf users database has to be integrated manually from wp plugin dashboard.

would be great if this is fixed... anyone?

the mods are in the other threads in this bridge forum.

Title: Re: SMF & WordPress
Post by: midiof[f] on March 05, 2009, 07:24:44 AM
i am newbie with wordpress where can i use functions?
Quote
SMF_EnSonMesajlar($limit=10,$before_all,$before_message,$after_message,$after_all)
You can show last SMF forum messages topics on wordpress.

or

SMF_EnSonBasliklar($limit=10,$before_all,$before_message,$after_message,$after_all) 
You can show last SMF forum topics on wordpress.


where can i paste this code?

i need  to load one category with post and i dont know how can i do
i need any example or explain to for n00b :D

i first times using the wordpress and  it is initially opaque for me
thx
Title: Re: SMF & WordPress
Post by: af3 on March 05, 2009, 12:06:03 PM
addd this in your wordpress template that you are using -- this should be in the readme.txt
on wordpress questions; try http://wordpress.org
Title: Re: SMF & WordPress
Post by: midiof[f] on March 05, 2009, 03:14:12 PM
Quote from: af3 on March 05, 2009, 12:06:03 PM
addd this in your wordpress template that you are using -- this should be in the readme.txt
on wordpress questions; try http://wordpress.org
thx for link i founded it for long days :P
i read all but nothing support with this plugin and on smf support dont have it in downloadds not support from SMF !!, i thing.
instalation have good descript i have this is ok, but dont have how i use it

if , but why didnt wrote it ?
where file is it in template? i have lot of files :D
404.php , archive.php , archives.php ,  comments.php , index.php ,  etc.
where is file and where i paste simple code it is wery simple question
i trying all 2 days and i dont know what i doing false

but i thing this files are  codes not for users , users wrote in to DB

i tryed mambo+smf , it is very simple , wp i dont know how worked but is realy userfrendly

do u use wp+smf realy?
Title: Re: SMF & WordPress
Post by: Orstio on March 29, 2009, 12:46:26 PM
Quote from: af3 on February 24, 2009, 01:18:54 PM
There was work by jjgalow on the bridges but this has been abandoned (due to SMF GPL issues?) and no longer works with either the latest smf or wp2.7 or wpmu2.7, or both.

For the record, jjgallow didn't face any licensing issues.  He didn't have time to keep up the work.

His bridge should still work with any SMF 1.1.x forum.  I can't say it will work with the latest WP versions, however.

His work was open source, so I'm sure if somebody wanted to upgrade it, the community would be grateful.
Title: Re: SMF & WordPress
Post by: af3 on April 18, 2009, 04:11:02 PM
Osrtio - glad that this is cleared up. Hopefully someone can pick up from where jjgallow left.. such a superb plugin; just need to keep up with the upgrades. i'm not upgrading wp due to this :-) and still learning as well..
Title: Re: SMF & WordPress
Post by: af3 on May 02, 2009, 12:48:15 AM
Quote from: midiof[f] on March 05, 2009, 03:14:12 PM
do u use wp+smf realy?

yes, using wpmu2.65 and this bridge. works ok at http://kadazandusun.my
Title: Re: SMF & WordPress
Post by: RoyalC on May 02, 2009, 07:36:00 PM
is there any chance to have a real fonctionally bridge for wp 2.7.1 and SMF 2.0 ??

i'm trying to integrate it but can't find  a SMF_Wordpress package that work under smf 2.0 (alway put in unknow pakage !!!) i'm probably noob in smf (i'm coming from vbb ) and there is probably a thing to do to make it right.

i using this : SMF_Wordpress_1.09.25.zip and WP_SMF_1.09.zip but under wp 2.7.1 WP_SMF_1.09.zip make and error and plugins can't install.

Thanx for your help and please excuse for bad english it's not my first language.
Title: Re: SMF & WordPress
Post by: af3 on May 21, 2009, 10:28:40 AM
i dont think there is any updates on the bridge... unless someone comes out to volunteer continue the earlier work on this. try using simplepress forum http://simplepressforum.com
Title: Re: SMF & WordPress
Post by: Jim R on June 29, 2009, 12:39:50 AM
Would love a bridge. 
Title: Re: SMF & WordPress
Post by: SpeedForums on July 04, 2009, 03:49:21 PM
Hello, how are you doing? :)
Well, as the title says I need to integrate users of WordPress (2.7) and SMF (2.0 RC1-1), Does anybody know how to do that? It is for this site http://aereoo.com, joining this forum's users http://aereoo.com/foro.

Greetings and thank you very much! D
Title: Re: SMF & WordPress
Post by: drroot on October 23, 2009, 05:52:50 AM
any update for smf 1.1.10?
Title: Re: SMF & WordPress
Post by: I Agree on November 11, 2009, 09:23:02 PM
Hello,

I am probably interested in picking this work back up in a limited capacity. I'm basically writing now to ask if anyone has done any new work with it, or is planning to.

I've never been disappointed with SMF1.1 and we've customized it rather considerably, so I don't feel the need to support SMF2.0 as of this time. Nor do I plan on supporting anything in an official capacity.

I recently setup a new website with basically the same tools I'm accustomed to work with. This gave me a chance to try upgrading WordPress. I'm told this was my only option to improve upon Askimet's behavior, so taking that on good faith, I'm sticking with the upgrade. And plan to keep WP upgraded since we rely on it for a great deal more compared to SMF (which is of course great for our forums)

Rather than trying to put back all my WP hacks, I'm planning to put some serious work into converting them into a private plugin, so we can upgrade WP regularly without having hacks to the sources overwritten. And I don't see any reason why that plugin can't begin with this source code.

So my first goal will be finding out why this plugin is incompatible with new WP versions / fixing that.

That said I have no plans to arrange for any official/supported plugin page on Wordpress' website. But I would be happy to work with people / be in communication, and probably within reason continue to support SMF1.1 at least.

Again, the main reason I'm posting is to give anyone working along these same lines a chance to get in touch or share any discoveries / success stories they've had.

Mick


PS: I don't see any license attached to this plugin, so I'm assuming anything I will distribute will just be license/agreement-less use at your own risk install on your own accord DIY bubblegum to hold WP/SMF together.
Title: Re: SMF & WordPress
Post by: Jim R on November 11, 2009, 11:15:57 PM
I know I would certainly be interested in a bridge still, especially if it would carry over user roles.  There is a phpBB bridge that works just OK, but changes the blog URL, which screws up a couple of my plugins.  What that does is convert users from phpBB database to WordPress database.
Title: Re: SMF & WordPress
Post by: macmend on November 14, 2009, 06:11:14 PM
I'll reiterate aan earlier post and ask

Please could someone post an up to date link to download the most recent hacked versions of the plugins
Title: Re: SMF & WordPress
Post by: BrianVB on December 15, 2009, 06:53:02 AM
Is there any up2date bridge for SMF?(ONLY for account connections, i know how to put SMF into a wordpress template)
Title: Re: SMF & WordPress
Post by: h78509 on December 21, 2009, 07:19:46 AM
Quote from: BrianVB on December 15, 2009, 06:53:02 AM
Is there any up2date bridge for SMF?(ONLY for account connections, i know how to put SMF into a wordpress template)

Yes, I'm looking for the same thing.
Title: Re: SMF & WordPress
Post by: 青山 素子 on December 21, 2009, 05:46:39 PM
Quote from: I Agree on November 11, 2009, 09:23:02 PM
PS: I don't see any license attached to this plugin, so I'm assuming anything I will distribute will just be license/agreement-less use at your own risk install on your own accord DIY bubblegum to hold WP/SMF together.

Unless it's explicitly specified, copyright in most countries defaults to the most restrictive, which means no rights on it. While you might be okay (as in author won't pursue you legally) with using the code and distributing it, it's best to contact the author directly for permission.
Title: Re: SMF & WordPress
Post by: Tulumer on February 20, 2010, 01:37:09 AM
Got this message when I pointed my browser to the newly-installed and edited wp-config.php :

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/mysite.tld/Wordpress/wordpress/wp-config.php:5) in /home/xxxxx/public_html/mysite.tld/Wordpress/wordpress/wp-includes/pluggable.php on line 868

Anything to be concerned about?
******************

It was caused by white space before the <php tag
Title: Re: SMF & WordPress
Post by: kunzinb on February 22, 2010, 01:24:35 PM
The wp_smf bridge works great as for as I can tell for syncing up the user db but the SMF_Wordpress twin plugin gives this error when activated:

Fatal error: require_once() [function.require]: Failed opening required 'wp-includes/wp-db.php' (include_path='.;C:\php5\pear') in D:\Hosting\5178478\html\forum\Sources\SMF_Wordpress.php on line 1073

I can then only deactivate by logging into the blog and going to smf to deactivate.  I am only interested in user integration and could not find a solution using tinyportal but I am open to any option that will simply allow my users one log in to access both.

I am using smf 1.1.11, smf_wordpress 1.25.1, wp 2.9 and wp_smf 1.0.  My forum and blog respectively are stim-gym.com/forum and stim-gym.com/blog.

Thanks in advance for any help that can be provided!
kunzinb
Title: Re: SMF & WordPress
Post by: Jim R on February 22, 2010, 02:31:33 PM
The problem some have had is WP with SMF 2.0+. 
Title: Re: SMF & WordPress
Post by: kunzinb on February 24, 2010, 07:45:13 PM
I don't think the last post is for me because I have 1.1.11.

If it was meant for me I still need help!

Thanks in advance
kunzinb
Title: Re: SMF & WordPress
Post by: sidhi on March 01, 2010, 06:28:13 PM
Need help pleasee......

where can I download SMF_Wordpress ?  URL please.....
Title: Re: SMF & WordPress
Post by: sidhi on March 02, 2010, 12:18:46 AM
OK find the SMF_Wordpress.zip in some site and I reupload it at :

http://rapidshare.com/files/357710766/SMF_Wordpress_1.09.zip
or
http://www.megaupload.com/?d=FD70A8Y7

AND NOW I GOT ANOTHER ERROR :

Warning: require_once(/home/biforum/public_html/wp-content/plugins/WP_SMF/smf_api_1.1.php) [function.require-once]: failed to open stream: No such file or directory in /home/biforum/public_html/wp-content/plugins/wp_smf/wp_smf.php  on line 384

the error at this :
384|               require_once ($smf_api);


How to fix this error ??? Help pleasee.....
Title: Re: SMF & WordPress
Post by: Shaliza on March 04, 2010, 05:50:47 PM
This plugin for Wordpress was just added: http://wordpress.org/extend/plugins/cross-registration-integration/ - however, it is NOT an official SMF/Wordpress bridge. Read up & you'll see.
Title: Re: SMF & WordPress
Post by: Мel on March 22, 2010, 08:49:26 AM
Well, well. And what that "Transaction URL" would be?
Will it work, if structure is like this:
www.blog.com - WordPress
www.forum.blog.com - SMF
Title: Re: SMF & WordPress
Post by: jwall149 on March 31, 2010, 09:09:24 AM
There is a new working login bridge at
http://wordpress.org/extend/plugins/smf2wp/
It worked for me at least, and also at the demo site!
Title: Re: SMF & WordPress
Post by: juanpons14 on April 29, 2010, 03:21:54 PM
Quote from: jwall149 on March 31, 2010, 09:09:24 AM
There is a new working login bridge at
http://wordpress.org/extend/plugins/smf2wp/
It worked for me at least, and also at the demo site!

Cool!!! i don't really saw it =) it's good to heard that
Title: Re: SMF & WordPress
Post by: Мel on June 03, 2010, 02:32:03 AM
I'm looking into SMF Bridge (http://wordpress.org/extend/plugins/wp-smf-bridge/) - I see it have been recently updated. Anybody have experience with that? Would it work with SMF 2.0?
Title: Re: SMF & WordPress
Post by: Liam. on June 03, 2010, 05:45:46 AM
Ahh, interesting Mel...

The licenses still don't match, but if that plugin works for 1.1.X, it shouldn't be too hard to update to 2.0. I wanna give this a try sometime ;)
Title: Re: SMF & WordPress
Post by: obieq on June 06, 2010, 12:29:37 PM
I used.
SMF Bridge

And when trying to Manual User Sync receives the following error:

SMF Bridge Settings

Fatal error: Unknown column 'memberName' in 'field list' in /home/xxxx/domains/xxxxxx.pl/public_html/wp-content/plugins/wp-smf-bridge/bridge.php on line 316


I have tried an other plugs but they weren't work at well. Receiving Internal Server Error when entering wp-login.php (log in/out / registration ). Or when have tried to activate them received "Can't modifer header information).
Title: Re: SMF & WordPress
Post by: Phoestre on June 06, 2010, 04:02:55 PM
It may work on a fresh setup, I may test it this week.
Title: Re: SMF & WordPress
Post by: knightofdoom on June 10, 2010, 06:13:49 AM
What is the latest version of SMF/Wordpress bridge i want to set it up for my site.. dose'nt seems to be working..
>:(
any updates or methods to set it up ?

Title: Re: SMF & WordPress
Post by: jasonnjon on June 10, 2010, 06:35:06 AM
Yes there are packages you coud install for it to work
Title: Re: SMF & WordPress
Post by: Tamagochi on June 18, 2010, 07:58:26 AM
Hi,

I tried to install this plugin in my wordpress and all work ok so I configure the plugin in my wordpress and I have this error:

Fatal error: Cannot redeclare is_admin() (previously declared in /home/evitalac/public_html/wp-includes/load.php:566) in /home/evitalac/public_html/foro/Sources/Security.php  on line 839

Any idea to solve it?

By the way I have last WP 3.0 and last WPSMF plugin 1.09

Best Regards
Title: Re: SMF & WordPress
Post by: raphoto on June 26, 2010, 10:39:48 PM
SMF 1.1.11, WordPress 3.0

smf2wp works like a charm.

http://wordpress.org/extend/plugins/smf2wp/
Title: Re: SMF & WordPress
Post by: Wiejeben on June 30, 2010, 08:12:30 AM
I'm looking for a modification so SMF will be on the WordPress website.
The WordPress website will be closed, so registration disabled so only the people who are writing articles etc. are able to login via site.com/wp-admin

So, the SMF website thats located at site.com/forum and my WordPress at site.com/ and I want a URL in the SMF that goos to site.com/forum with the forum IN the lay-out of WordPress.
Don't care about the themes, that will come later :P

I'm using at the moment SMF 2.0 RC3, but I'll reset my website and start again with a fresh website (I'm having 2000 members, but it just needs to be done.)
Title: Re: SMF & WordPress
Post by: KensonPlays on July 09, 2010, 07:04:24 PM
wordpress 3.0 and SMF 2.0RC3 where are you?
Title: Re: SMF & WordPress
Post by: peanut123 on July 27, 2010, 04:08:41 PM
I am using the wp-smf-bridge. I only have 3 users on the smf an admin which was the initial user and two addition admin names I created using the original forum admin name.
When I bridged the site, it bridged the two additional admin names and passwords, but on the original admin name that was generated with the smf site creation did not bridge and the password does not work. I can not access this account now and I can not retrieve the password because there was no email assigned to it yet. I have only just started this site and it is not even close to going "live" yet.
I apologize for rambling. My question is how do I get that password back. Do I have to uninstall the bridge to be able to get back into forum using that name?
Any help would be great!!
Thanks
Title: Re: SMF & WordPress
Post by: Phat^Trance on July 30, 2010, 05:11:23 AM
Is there any plugin for wordpress and smf 1.1.11 that use the wordpress comments on the forum? so that when people click on the blog posts comment they will comment the blog post on the forum?
my forum and blog are on two different servers (same company)
Title: Re: SMF & WordPress
Post by: Woo1f on August 06, 2010, 07:11:13 PM
Quote from: BYTE-Smasher on February 26, 2009, 09:56:32 AM
I've hacked together a quick SMF 2.0 + Wordpress 2.7 DIY mod that allows logged in SMF users to post Wordpress comments using their SMF credentials:

In your wordpress template's comments.php file, add this at the begining:

<?php
require_once("/path/to/smf/forum/SSI.php");
global 
$context;
?>



Then, further down in the same file, find the folowing:

<?php if ( $user_ID ) : ?>

<p><small>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></small></p>

<?php else :?>


paste this after the else statement line:

<?php
if ($context["user"]["is_logged"]){
?>

<input type="hidden" name="author" id="author" value="<?php echo $context["user"]["username"]; ?>"/>
<input type="hidden" name="email" id="email" value="<?php echo $context["user"]["email"]; ?>"/>
        <?php
}else{
?>



Then scroll down a bit until you see this:

<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"?> />
<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"?></small></label></p>

and add this after it:
<?php }?>

This is an incomplete hack... I haven't added the SMF user's Website URL, because I didn't know where in the SMF api to retrieve it. I'll post back when I find it, or one of you kind people can inform me :p

I should also note: In my case, I had to enable subdomain independent cookies in the SMF admin, as my forum is installed to a subdomain.

Hi,
Sorry, this is going to be a rather long post.
I'm a complete noob to this stuff (php) and it all seems extremely daunting  :-\
I'm currently working with Dreamweaver and Fireworks etc. to create general website layouts.
What I was hoping to achieve is to basically create sites that also have a forum section for a web-site related community and a blog section/page for the purpose of having easy to update news and blog information.

The ideal is to just have a single register/log-in page (or element/table on every site page) which will allow the registered users to log-in and post comments on either the blog posts or in the forum. It really doesn't have to do any more than either share a database or share the user information across the blog and forum databases.

Both of the databases would be hosted on the same domain (or possibly within a sub-domain) of the same site.
The installs of the forum and blogging proggy's would both be 'fresh' per site, so there's no worries about existing users needing to be migrated (if this was needed I believe it could be manually done via admin on the SMF).

After searching about for quite a while now, I think I'm going to choose SMF as the way to go for the forum. I am still debating whether to use WP for the blogging side of things or not.

The 'blogging' side, I really want to exist within a page created in Dreamweaver, so that it matches the exact style of the site.
Perhaps it's possible to just add the blog-post and comment coding into exsisting tables created within Dreamweaver, yet still use the online interface of the blogging software to update?

I believe the forum should be able to have the 'theme' changed or modified to match into the colours (and background?) of the site. Is this correct? If so, is this a fairly simple process to undertake?

When I first decided I was going to try doing this, the overall idea seemed simple, yet I am now feeling bogged down in all this extra information and coding requirements.

I quoted the above because it seems as though (if using WP as the blogger) this seemingly simple code alteration would do what I need with regards to user-intergration across the SMF and WP databases. Is this correct?

I apologize if I happen to be asking seemingly simple (or indeed stupid) questions. Like I say, I mainly work with Dreamweaver and Fireworks html coding for design. I've even been out of that game for a while and am currently re-educating myself with it.

Any help or advice that you can offer in order to help me achieve my goals will be greatly appreciated.
Thanking you in advance for your time.

Regards,
W.
Title: Re: SMF & WordPress
Post by: TomW on August 07, 2010, 12:09:32 PM
Quote from: Kcmartz on July 09, 2010, 07:04:24 PM
wordpress 3.0 and SMF 2.0RC3 where are you?

Ditto that.  I am looking into SMF2WP and the SMF integration hooks to determine how to make it work. 
Title: Re: SMF & WordPress
Post by: vsamigo on August 19, 2010, 12:38:59 PM
Please help,

I'm getting
QuoteParse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /www/htdocs/wp-content/plugins/smf2wp/bridge.php on line 13
when activating the plugin

I got newly installed Wordpress 3.0.1 Russian with 1 user (admin) and SMF 1.1.11 with many users and topics, etc. (and same admin login and pass). Both installed in the same base (but smf has cp1251_general_ci encoding and wp has utf8_general_ci), wp is in domain/, smf - in domain/forum.

Is there any way to make it work correctly, like to clean SMF base, activate plugin and then import SMF base back? :)

Thank You
Title: Re: SMF & WordPress
Post by: propaganda on August 22, 2010, 03:31:40 PM
I had issues with any of the smf wp bridges I tried, the best thing to do is skin your forum to look exactly like your wordpress page, then code your wp nav between the smf wrap and header

My WP site http://huntdeer.ca

My forums http://huntdeer.ca/forum/
Title: Re: SMF & WordPress
Post by: tumbleweed on August 22, 2010, 09:50:18 PM
Quote from: propaganda on August 22, 2010, 03:31:40 PM
I had issues with any of the smf wp bridges I tried, the best thing to do is skin your forum to look exactly like your wordpress page, then code your wp nav between the smf wrap and header

My WP site http://huntdeer.ca

My forums http://huntdeer.ca/forum/

Agreed:
http://beachsidecrossfit.com/
http://beachsidecrossfit.com/forum/
Title: Re: SMF & WordPress
Post by: stranded on August 23, 2010, 02:04:04 PM
A Wordpress 3.0.1  + SMF 2.0 RC3 integration would totally change my life  :'(
Title: Re: SMF & WordPress
Post by: splatcat on September 22, 2010, 05:16:55 AM
Quote from: vsamigo on August 19, 2010, 12:38:59 PM
I'm getting
QuoteParse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /www/htdocs/wp-content/plugins/smf2wp/bridge.php on line 13
when activating the plugin

I got this as well. I have no idea about these things but a bit of research told me it was because I was running php4 rather than php5. I little more digging and I found a line of code to add to my .htaccess file in my WP folder and it now works great (not sure if that method is just relevent to my host, 1and1, or not). Like you I have a large established SMF forum 1.1.11 and a fresh WP installation 3.0.1. This bridge touched nothing in SMF, it obviously just reads if the user is logged into the forum.
Title: Re: SMF & WordPress
Post by: Stevee on October 01, 2010, 01:00:40 PM
Nice looking work on tumbleweed-propaganda sites.

Is this type of setup your using . . .
mysite.com/
mysite.com/forum/

. . . integrated as a sub domain structure?  I'd would like to go that route but setup is tricky on my host.  Any info on setting up this type of structure (without going on the wild goose chase) in particular proper file tree structure or whatever the integration technique is would be appreciated
Title: Re: SMF & WordPress
Post by: SEEN on October 07, 2010, 12:18:53 AM
so theres no solution up until today? :(

i might convert to phpbb instead.. i still believe smf > phpbb
Title: Re: SMF & WordPress
Post by: Joriske on November 17, 2010, 04:14:21 PM
Maybe a little bit of hope: hxxp://www.forexp.net/wordpress-plugins/smf-to-wordpress-bridge-plugin/smf2wp-2-0-bridge-between-smf-2-0-rc3-and-wordpress-3-0-1/ (copy and paste)

But development doesn't seem to go that  fast :( (he/she expected it to be ready in about a week or so).
As I didn't found any alternatives for this plugin yet it raises a couple of questions:

- Isn't there enough interest for this kind of functionality for SMF/Wordpress>
- Do developers want to wait for the final release of SMF 2.0?
- Or is it too difficult for coders to write a plugin like this? (I'm not a coder myself so I have no idea how much time can get into writing a plugin or such).
Title: Re: SMF & WordPress
Post by: Hj Ahmad Rasyid Hj Ismail on November 17, 2010, 05:20:38 PM
Yes. It is very difficult and time consuming to write such a plugin. Not to mention bugs, security etc. You don't want such a plugin turn your forum or blog vulnerable, would you?
Title: Re: SMF & WordPress
Post by: Ruriko on November 18, 2010, 08:03:05 AM
Is there one working for Wordpress 3.xx & SMF 1.11?
Title: Re: SMF & WordPress
Post by: KensonPlays on November 26, 2010, 02:59:20 PM
Quote from: stranded on August 23, 2010, 02:04:04 PM
A Wordpress 3.0.1  + SMF 2.0 RC3 integration would totally change my life  :'(
Similar, SMF 2.0 RC4 and WordPress 3.0.1

I redid site, forum is located elsewhere while I work on it.
Title: Re: SMF & WordPress
Post by: tumbleweed on November 26, 2010, 07:21:33 PM
Quote from: Stevee on October 01, 2010, 01:00:40 PM
Nice looking work on tumbleweed-propaganda sites.

Is this type of setup your using . . .
mysite.com/
mysite.com/forum/

. . . integrated as a sub domain structure?  I'd would like to go that route but setup is tricky on my host.  Any info on setting up this type of structure (without going on the wild goose chase) in particular proper file tree structure or whatever the integration technique is would be appreciated

Yes you are correct. That is the structure
Title: Re: SMF & WordPress
Post by: WilderNWL on November 28, 2010, 04:56:07 PM
Quote from: Ruriko on November 18, 2010, 08:03:05 AM
Is there one working for Wordpress 3.xx & SMF 1.11?

I would like to know the same thing. All the ones I've seen are buggy and outdated.
Title: Re: SMF & WordPress
Post by: Apostaganha on December 02, 2010, 12:13:30 PM
Quote from: Kcmartz on November 26, 2010, 02:59:20 PM
Quote from: stranded on August 23, 2010, 02:04:04 PM
A Wordpress 3.0.1  + SMF 2.0 RC3 integration would totally change my life  :'(
Similar, SMF 2.0 RC4 and WordPress 3.0.1

I redid site, forum is located elsewhere while I work on it.


X3
Title: Re: SMF & WordPress
Post by: nram on December 02, 2010, 04:21:58 PM
There is a file (ssi.php) as it has in SMF, but Wordpress? It is that caring wp-blog-header.php gives error: "Error Establishing Database Connection"
Title: Re: SMF & WordPress
Post by: Kindred on December 02, 2010, 08:58:55 PM
if wordpress and smf are in different databases, then you are going to have to add database switching coding...
Title: Re: SMF & WordPress
Post by: KensonPlays on December 03, 2010, 11:00:58 AM
Quote from: Kindred on December 02, 2010, 08:58:55 PM
if wordpress and smf are in different databases, then you are going to have to add database switching coding...
Mine are in two different DataBases.
Title: Re: SMF & WordPress
Post by: bloc on December 03, 2010, 11:51:19 AM
I too had trouble getting bridges to work - but I love the WPSMF plugin for WP. It posts blog posts back into SMF forums, even comments on the blogs. I turned that comment stuff off though, and added a small code bit to the WP theme to read the number of replies the SMF topic has. That way the blog stays free of comments and the SMF forum does the comment/discuss part, which its better for anyway, IMHO. ( http://www.blocweb.net/blog/ )

This would been a little more difficult if SMF/WP was in different databases, like Kindred mentions.


I must say theres a big difference between the coding in WP themes contra SMF themes. Had to rewrite it to use proper echoes instead of jumping in and out of PHP. :P But, WP is superior as a blogging platform so its def. worth making themes for, next to SMF of course. :)
Title: Re: SMF & WordPress
Post by: KensonPlays on December 06, 2010, 10:29:01 AM
But I would like a User integration. I have WP and SMF in two different DB, so it'll be harder, but I have about 2.5 hours now to implement any manual code changes.

EDIT:
I was wrong, they are in the same DB. So what now?
Title: Re: SMF & WordPress
Post by: Keith Allen on December 09, 2010, 10:11:58 AM
Hello everyone.  I am new to the forum thing and could really use some help.  I bought and SMF site hoping it would be what I wanted but it turns out i need more.  I was told that wordpress was the thing to to with based on my goals.  Now I would like my community to have more visual appeal and my forum.  I can manage the install of context and images into the wordpress format but don't have a clue as to how to go about combining my smf into my webpress.  I host with siteground and they seem to have lots of options.

Does anyone have the patients to help and walk me through the merging of my needs?

PLEASE.

For a more vitual sample you can see where i am headed by looking at my webpress site .photographypatio.com/webpress

and my forum site at .photographypatio.com

Title: Re: SMF & WordPress
Post by: WilderNWL on December 13, 2010, 10:07:59 PM
^^^^Seriously!

Can anyone answer this question?

Quote from: WilderNWL on November 28, 2010, 04:56:07 PM
Quote from: Ruriko on November 18, 2010, 08:03:05 AM
Is there one working for Wordpress 3.xx & SMF 1.11?

I would like to know the same thing. All the ones I've seen are buggy and outdated.
Title: Re: SMF & WordPress
Post by: choxnox on February 10, 2011, 06:11:31 PM
Is there any mod out there which integrates SMF with Wordpress in such way that whenever someone starts a new topic on the forum, that same topic would appear as WordPress new blog post? I've search through Internet, but it seems there is only opposite integration: WP to SMF  :-\
Title: Re: SMF & WordPress
Post by: I Agree on February 12, 2011, 12:51:22 PM
Quote from: choxnox on February 10, 2011, 06:11:31 PM
Is there any mod out there which integrates SMF with Wordpress in such way that whenever someone starts a new topic on the forum, that same topic would appear as WordPress new blog post? I've search through Internet, but it seems there is only opposite integration: WP to SMF  :-\

I've always used a link in the Wordpress post that goes to a corresponding forum post for discussion / translation purposes. But making a blog post appear from out of a forum seems very backwards.

Rather than try to link the two directly. I make the link a form which searches for the would be posts title. If the post hasn't been made it won't show up in the search results. This I find is better than expecting the urls to stay the same. You can modify the theme to let the user know that they can make the forum thread if it's not there and they want to discuss it. I've never tried to give the user a link which would create the thread with the appropriate title. I suspect it would not work unless you set things up in the database yourself, which might not be long term portable.

Anyway, I can show you how to do that if you like.


PS: I've posted in this thread before. And am very much interested in syncing up my SMF and WP user accounts. I won't be doing it for 1.0 though as I thought. I've decided better to move onto 2.0 from scratch, even if it's not regarded as stable and I was used to 1.0. I'm hoping there are already plugins/mods for this. But don't know yet.
Title: Re: SMF & WordPress
Post by: sadsog on February 19, 2011, 12:50:48 PM
Quote from: Kcmartz on July 09, 2010, 07:04:24 PM
wordpress 3.0 and SMF 2.0RC3 where are you?

That's what I'm talking about.  I have WP 3.0 with buddy press plus SMF 2.0RC3 and I want someone to be able to sign into WP and then automatically be bridged to my SMF forum.  I'd hate to lose my SMF forum to buddypress.
Title: Re: SMF & WordPress
Post by: jjgallow on March 06, 2011, 09:52:16 PM
Wow, I log in here years later, and there's still a need for this bridge.

I was somewhat discouraged from continuing work on this by concerns from individuals on copyright infringement, etc.  Combined with the fact that I was doing it for free and it took up a lot of time, the script was not developed further.  Incase anyone's considering starting this bridge up again, legallities, not technicallities, are going to be your obstacle.  If you can get clearance from SMF and Wordpress to continue development, it would be very beneficial to both communities and not that hard to do.

There are simply certain things about a well-designed forum that a blog cannot replace.  The same can be said for a well-designed blog.  Both have made attempts to duplicate the other, but the results speak for themselves.  Wordpress forums are simply inferior to SMF, and...arguably, the reverse is true as well.  It's a people problem...people write the best code for what they're passionate about.

This bridge was intended to bring those two passions together...I hope someone takes it furher.

cheers

Jeff
Title: Re: SMF & WordPress
Post by: mibodega on April 15, 2011, 09:11:28 PM
The only thing close to Bridging WP and SMF has been this http://www.dmry.net/wordpress-smf-bridge-plugin-10-beta/ (http://www.dmry.net/wordpress-smf-bridge-plugin-10-beta/) Plugin.

What I did on my forum is change all the links to login and logout to go to the wordpress login/out page usually http://www.YousiteURL.com/wp-login.php. I even changed the Profile link to point to the Profile in Wordpress, usually http://YOURSITEURL.com/wp-admin/profile.php.

To see an example check out my Forum http://www.erraticmedia.com/forum (http://www.erraticmedia.com/forum)  Click on the Register link on top and you will see that it takes you to the Wordpress Register page.
When you go the Wordpress Blog and click on Forum you will go to the forum and you will show up as Users Online.

So basically, Wordpress handles all the account information. It is the only Solution that has worked, cause til' this day all the Bridges that say they work simply do not trust me I have tried them all.
Title: Re: SMF & WordPress
Post by: Kindred on April 15, 2011, 09:50:00 PM
considering WP versus SMF security protocols... if I was ever to do this, I would use SMF as the master and WP as the slave instead of the other way around.
Title: Re: SMF & WordPress
Post by: mibodega on April 15, 2011, 10:13:58 PM
Many have tried and failed
Title: Re: SMF & WordPress
Post by: Kindred on April 15, 2011, 10:44:04 PM
and yet.... the integration hooks allow it to be done fairly easily.
Title: Re: SMF & WordPress
Post by: SlammedDime on April 16, 2011, 12:12:41 AM
Quote from: mibodega on April 15, 2011, 10:13:58 PM
Many have tried and failed
And some have succeeded... http://code.mattzuba.com/blogbridger
Title: Re: SMF & WordPress
Post by: mibodega on April 16, 2011, 08:20:30 AM
Are you saying that one works? That is one I haven't tried yet.
Title: Re: SMF & WordPress
Post by: SlammedDime on April 16, 2011, 11:24:32 AM
Yes... I coded it, it works.
Title: Re: SMF & WordPress
Post by: Spale on April 19, 2011, 03:49:48 PM
I will give it a try. Thanks SlammedDime ;)
Title: Re: SMF & WordPress
Post by: Heeks on April 25, 2011, 05:39:01 AM
thx for your work
Title: Re: SMF & WordPress
Post by: RoarinRow on May 03, 2011, 01:26:26 PM
Quote from: SlammedDime on April 16, 2011, 12:12:41 AM
Quote from: mibodega on April 15, 2011, 10:13:58 PM
Many have tried and failed
And some have succeeded... http://code.mattzuba.com/blogbridger

Awesome, thanks for the link!  I just tested it with my SMF 2.0 RC5 forum and WP 3.1.2 blog and it works!  There is an updated version of blogbridger just released version 1.1.2.   8)
Title: Re: SMF & WordPress
Post by: Adrek on May 03, 2011, 04:45:58 PM
If I have older version of this bridge and i want to update it, can I just replace old files with this new or I need to reinstall mod ?
Title: Re: SMF & WordPress
Post by: SlammedDime on May 03, 2011, 04:51:53 PM
The bridge that this topic was originally about is completely and utterly different from my implementation and they are not interchangeable with each other.  If you wish to swap, you'll need to uninstall and remove all code from what you currently have and then install mine.
Title: Re: SMF & WordPress
Post by: Adrek on May 05, 2011, 01:29:14 PM
I am using your bridge ;)

I testing your bridge on localhost for few days and all worked perfectly. Now when i added it in to my website - it's doesn't work (when i login i am logged only in SMF)

Maybe it's caused by subdomain from my forum ?
Wordpress is on mydomain.com
SMF - forum.mydomain.com
Title: Re: SMF & WordPress
Post by: SlammedDime on May 05, 2011, 01:30:39 PM
It's possible, I haven't tested this with subdomains yet.
Title: Re: SMF & WordPress
Post by: Adrek on May 05, 2011, 01:41:56 PM
anyway.. i moved forum to mydomain.com/forum and i can login, but now i can't... loguot :E
Title: Re: SMF & WordPress
Post by: SlammedDime on May 05, 2011, 02:27:58 PM
clear your cookies, that will effectively log you out.
Title: Re: SMF & WordPress
Post by: Adrek on May 05, 2011, 03:48:06 PM
yes, but this is only way to logout
Title: Re: SMF & WordPress
Post by: SlammedDime on May 05, 2011, 04:08:00 PM
That shouldn't normally be the case... I'm able to successfully log in and out on my side through normal methods.  Are you using v1.1.2?
Title: Re: SMF & WordPress
Post by: Adrek on May 05, 2011, 04:10:15 PM
yes
tomorrow i try to install clean RC5 and new WP
Title: Re: SMF & WordPress
Post by: Bendo on June 02, 2011, 10:29:15 AM
Hey again,
now I use WP 3.13 with SMF 2.0 RC5 to use this bridge. I installed the blog and than the board. After this I installed the modification but when I wanne return to the mod-site or startpage, I got this error-message:

QuoteWarning: Invalid argument supplied for foreach() in /usr/export/www/hosting/name/smf/Sources/WordpressBridge.php on line 118

Fatal error: Invalid call to handleHook in /usr/export/www/hosting/name/smf/Sources/WordpressBridge.php on line 126

Can anyone tell me whats wrong?
Title: Re: SMF & WordPress
Post by: SlammedDime on June 02, 2011, 11:29:07 AM
You should probably post in the support topic for the mod, rather than here.
Title: Re: SMF & WordPress
Post by: Bendo on June 02, 2011, 11:44:20 AM
Hey SlammedDime, this plugin have an own topic in this forum? I cant find any topic. :(
Title: Re: SMF & WordPress
Post by: SlammedDime on June 02, 2011, 12:03:26 PM
http://custom.simplemachines.org/mods/index.php?mod=3008 - Click the 'Support and Comments on this mod' button
Title: Re: SMF & WordPress
Post by: Bendo on June 02, 2011, 12:30:21 PM
Thanks  :)
Title: Re: SMF & WordPress
Post by: insiderdialogue on June 16, 2011, 09:30:25 AM
Anyone knows if this work if I use Wordpress as the primary source of login?

Tried installing this mod but I get "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Using SMF 2.0RC5
Title: Re: SMF & WordPress
Post by: Apllicmz on June 18, 2011, 09:41:21 AM
did try Update that mod
Work Fine Smf 2.0
Title: Re: SMF & WordPress
Post by: Bendo on July 17, 2011, 08:51:44 AM
With SMF 2.0 Final and WP 3.2.1 it doesnt work (uncompatible)  :(
Title: Re: SMF & WordPress
Post by: Bendo on July 18, 2011, 04:12:25 PM
I think I fixed the problem.  ;D

1. You must unpack the archiv untill you see all .php files.

2. You must open the "package-info.xml" and search fot this textparts:

Quote<install for="2.0 RC5">
      <readme parsebbc="true">README</readme>

Quote<uninstall for="2.0 RC5">
      <code type="inline"><![CDATA[<?php
         global $boarddir;
Here you have to delete "RC5" in both lines.

3.Now save the file and zip all files together with winzip.

Now it should work for the smf 2.0 final. ;)
Title: Re: SMF & WordPress
Post by: SlammedDime on July 18, 2011, 04:14:04 PM
Or you can just click on 'Advanced' at the bottom of the browse packages screen, enter 2.0 RC5 in the box, then install the mod.  Much easier.
Title: Re: SMF & WordPress
Post by: Bendo on July 23, 2011, 01:30:59 PM
Hey, I have a new little problem with this mod and my webspace.  O:)
My Wordpress Blog is in the root directory and my smf board in an extra folder. When I wanne fix the wp-login.php file I get this error message:
QuoteWordpress path is not writable by the webserver. We will not be able to make backups of modified Wordpress files

I cant change the root directory chmod. Is an backup so important? I make every day an backup.  Or can I delete the line from the source code and ignore the backup?
Title: Re: SMF & WordPress
Post by: Bendo on July 26, 2011, 03:36:15 AM
I changed all files and folders (without sub-folders and sub-files) to 777 and it works. But this is do dangerous in my opinion and i got the webspace path error too. No ideas? :(
Title: Re: SMF & WordPress
Post by: 青山 素子 on July 26, 2011, 11:40:34 AM
Why is it too dangerous? If an attacker gets access to the database, even if they can't write to any files, they can still cause a lot of damage. Heck, if the server is set up the common way with files owned by the webserver, even 600 would be dangerous.
Title: Re: SMF & WordPress
Post by: Bendo on July 26, 2011, 12:53:31 PM
777 allows everything for everybody.
Which file must be writable?
Title: Re: SMF & WordPress
Post by: 青山 素子 on July 26, 2011, 07:24:32 PM
Quote from: Bendo on July 26, 2011, 12:53:31 PM
777 allows everything for everybody.
Which file must be writable?

None really need to be, but you'll lose features. You can selectively allow write access to various areas if you want that functionality back. However, that's outside of this topic, which is about bridging SMF with WordFailPress.
Title: Re: SMF & WordPress
Post by: MarkLeevE on August 01, 2011, 09:06:10 AM
How to integrate WP and SMF? are they using same database?
Title: Re: SMF & WordPress
Post by: Arwym on August 11, 2011, 10:28:42 PM
MarkLeevE: like the mod's info page says, they don't have to be on the same database to work.

This works fine with SMF 2.0 and the latest version of WP, but there's something bothering me: existing WP users aren't added to SMF's members table upon installation of this mod. That's something of a downside if the WordPress site has its fair amount of existing users already, even if it's more likely that it'll be the other way around.

It'd also be nice if logging in from WP's front end worked, too.

Overall, awesome job. The code looks so clean and is documented, plus it's object-oriented. Too bad I can't understand all of it yet. I wish I could add my own functionality at this time.
Title: Re: SMF & WordPress
Post by: maha on September 01, 2011, 10:16:27 AM
I need convert smf to wordpress blod need advice
Title: Re: SMF & WordPress
Post by: dandorf on December 28, 2012, 12:28:44 PM
I fail to bridge wordpress SMF 3.4.1 and 2.0.2, no plug in works correctly

Any help?
Title: Re: SMF & WordPress
Post by: joeyjojoshabadoo on January 03, 2013, 05:09:28 PM
Why Bridge the two logins? I don't see any point at all, and it's just hassle.

i have a smf inside the wordpress folder on the one site. I dont have the logins linked as I see no point. I have a  wordpress site, and then a link to the forum. If people want to talk in the forum they register through SMF and thats it.

I never saw any point in letting people comment on both SMF and wordpress on the one site as it would just dilute the conversation. The only link I have is the forum feed on the home page and post pages, and that's all you need

Site is http://dropkickrugby.com (http://dropkickrugby.com)

forum is http://dropkickrugby.com/forum (http://dropkickrugby.com/forum)

i'm not technical but if anyone needs any pointers for this ill check back here soon
Title: Re: SMF & WordPress
Post by: keyrocks on January 07, 2013, 08:15:21 PM
Quote from: joeyjojoshabadoo on January 03, 2013, 05:09:28 PM
Why Bridge the two logins? I don't see any point at all, and it's just hassle.

i have a smf inside the wordpress folder on the one site. I dont have the logins linked as I see no point. I have a  wordpress site, and then a link to the forum. If people want to talk in the forum they register through SMF and thats it.

Installing SMF in a WP root/forum subdirectory without any integration is simple, no doubt about it, and you can also put the d-base tables for both in the same single database... no dispute there from me.

However, let's say I'm running WP as a multi-site network with 9 separate virtual sub-sites, each using their own table-sets but all running on one WP file-set. I have 2,400 users on the network and am using one login for all so that they can log into any one of the sub-sites and be logged into the other 8 at the same time. I'm doing this because my users find it most convenient.

If I add SMF as another sub-site in the WP root, I want to be able to over-ride or by-pass the SMF login and session scripts and have mu users automatically logged in on the SMF sub-site at the same time. That only makes sense, does it not?
Title: Re: SMF & WordPress
Post by: joeyjojoshabadoo on January 08, 2013, 08:25:48 PM
keyrocks, the thoughts of what you have to deal with scares me  :D

best of luck with all of that!
Title: Re: SMF & WordPress
Post by: madtequ on January 09, 2013, 05:24:42 PM
Hi guys,

I also have a question:

My main site is wordpress and after installing the mode on the smf forum I can't gain access to the wordpress admin (back end ) anymore. No matter what I try it keeps redirecting to the smf login. I need both back ends and the mode.. I've tried creating another wp-login (wp-login2.php) it points to the correct login page of wordpress but when I login I get the smf redirect.


Any tips and help is greatly appreciated.
Thanks.