All,
I'd like to present you my first SMF-Drupal bridge. The code can be downloaded from SourceForge at http://sourceforge.net/projects/embient . Since this is the alpha version, there is not much user documentation available. Anyway, there're some development documentation, generated by Doxygen here: http://embient.sourceforge.net.
I'm setting up the demo and issue tracker site for this project. Unfortunately, I'm being rushed with a lot of job at the few weeks. Therefore, I'd like to use this topic as the issue tracker for a while, until my own project site is ready.
Requirements:
-------------
* Drupal 4.7.0 Beta4
* SMF 1.1 RC2
* DOMIT! the DOM XML Parser (http://sourceforge.net/projects/domit-xmlparser)
Installation:
-----------
* Extract the file into a separated subdirectory (from your document root is an excellent choice).
* Extract the DOMIT into the "domit" directory under the directory you just created.
* Use the browser to call "http:<yoursite>/<directory>/install.php"
BoogieBug
[changelog]
16 Feb:
- Update requirement list
- add installation instruction
Wow - this is exciting - I'm downloading as I type :D
Nice, I am considering adding drupal to my site too!
Have you posted this at drupal so it (and SMF :P) gets more coverage?
Get me all excited and I can't get install.php to run ;)
I'm a php noob, but I see two includes, one of which is xml_domit_include.php
Do I need a specific version/ compilation of php?
Opppss. Sorry, you also need DOMIT. It's the XML library in PHP.
Download it from http://sourceforge.net/projects/domit-xmlparser and extract
it into the "domit" sub directory.
I've to update the "requirement list" :P
I've found some bug in the installation script. The following is the work-around to fix it:
* File modules/embient.module - fix the path name to an absolute path to your embient installation (e.g., /home/public_html/embient)[/li][/list]
* SMF's Settings.php - fix the path name in the line of:
$integration = array( 'integrate_pre_include' => '<path>smf.php',
Let the path point to your embient installation.[/li][/list]
Another concern is the age of cookie and TimeZone in SMF setting. Misconfiguration of these 2 parameters may cause the cookie expire immediately and the login on SMF will not work.
Also, you may found that the module generate a lot of debug message, to disable the debug message, you can comment out all the lines with function "embient_debug()" in file embient.plugin.php.
I'll fix the installation script in the next version.
Just a notes I realise this is in alpha stage so just listing a few problems..
Make sure it only installs one time or do some other word/line checks to prevent the installer from writing to settings.php multiple times not a big deal..
Example fix:
//-- Around line 50 uptop
//-- Find
// embient's root
$embient_dir = dirname(__FILE__);
//-- After Add
$lockfile = './install.lock.php';
if (file_exists($lockfile)) {
echo "Already Installed, remove install.lock.php to install this script.";
exit(1);
} else {
echo "<strong>Attempting to install embient changes</strong><br /><br />";
embient_lock($lockfile);
}
//-- Find
function embient_create($filename, $content)
{
$file = fopen("$filename", "w");
fwrite($file, "<?php\n");
fwrite($file, "$content\n");
fwrite($file, "?>");
fclose($file);
}
//-- After add
function embient_lock($filename)
{
$file = fopen("$filename", "x");
fwrite($file, "<?php\n");
fwrite($file, "Installer is locked, remove: install.lock.php to enable installing again.\n");
fwrite($file, "?>");
fclose($file);
}
Btw, im very interested in seeing this get to beta/release stages im still looking thru your code and it looks promising.
I'd be willing to help some if you need pm me or @mail me (
[email protected]) if you'd like help finding bugs or fixing bugs so you can focus more on the core code.
Alot of paths and settings that are derived from the paths break, because they seem to be geared toward windows .. creating some nightmares on *nix/linux.
But more or less looking thru your code I like what your trying to do.
Excellent work - I'd also love to participate in assisting with bug testing/patches to try and get this off the ground.
Thanks BoogieBug for starting this much needed bridge!
Thanks, TestMonkey. I'll include your code into the beta version. Since the project is now hosted by SF.net, if you want to join the team, please feel free to PM me your SF.net ID. I will make an invitation from the project admin page.
All, thanks for your help. I'm trying my best to setup the issue tracker site. Unfortunately, my main job need all of my effort until end of the month. Meanwhile, please post the bugs or issues, you found here.
ok I am trying to run the alpha version but the instructions are very complicated the way to know how to create a embient.module is by readin the drupal file istself on embient unzip folder.
Anyway I am having trouble installing it this is what i get after placing the embient module which contains:
<?php
require_once("embient/drupal.php");
?>
here is the error:
warning: init(C:\projects\htdocs\smf/Settings.php): failed to open stream: No such file or directory in /home/artverve/public_html/embient/smf.plugin.php on line 133.
Fatal error: init(): Failed opening required 'C:\projects\htdocs\smf/Settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/artverve/public_html/embient/smf.plugin.php on line 133
Any idea why I am getting this? here is the url where my smf is installed:
http://www.artverve.com/Community/index.php
thanks
-danny
There's a bug in the installation script. You might need to edit the smf.plugin.php manually by replace the "C:\Project\htdocs\smf" with the actual directory you place the smf installation (The folder with "Settings.php" inside)
I thought I had everything running fine until I got to the install. :P.
Found drupal in /home/chris/public_html/audiosubculture. Installing Embient for drupal
Warning: fopen(/home/chris/public_html/audiosubculture/modules/embient.module): failed to open stream: Permission denied in /home/chris/public_html/audiosubculture/embient/install.php on line 216
Warning: fwrite(): supplied argument is not a valid stream resource in /home/chris/public_html/audiosubculture/embient/install.php on line 217
Warning: fwrite(): supplied argument is not a valid stream resource in /home/chris/public_html/audiosubculture/embient/install.php on line 218
Warning: fwrite(): supplied argument is not a valid stream resource in /home/chris/public_html/audiosubculture/embient/install.php on line 219
Warning: fclose(): supplied argument is not a valid stream resource in /home/chris/public_html/audiosubculture/embient/install.php on line 220
Found smf in /home/chris/public_html/audiosubculture/forums. Installing Embient for smf
Done!
So what did I forget to do? =/ Any help is appreciated.
Quote from: TruthElixirX on March 18, 2006, 02:50:28 AM
I thought I had everything running fine until I got to the install. :P.
Found drupal in /home/chris/public_html/audiosubculture. Installing Embient for drupal
Warning: fopen(/home/chris/public_html/audiosubculture/modules/embient.module): failed to open stream: Permission denied in /home/chris/public_html/audiosubculture/embient/install.php on line 216
Warning: fwrite(): supplied argument is not a valid stream resource in /home/chris/public_html/audiosubculture/embient/install.php on line 217
...
So what did I forget to do? =/ Any help is appreciated.
I think that is caused by the install script needing to write the "embient.module" file into the drupal modules directory. If so, permissions on the drupal modules directory needs to be set to allow this. Or maybe you can just put the embient.module file into the directory manually. The contents of the file are:
<?php
require_once("/home/sunset/public_html/embient/drupal.php");
?>
Now for my own questions: Initially after doing the above, when I open SMF I got errors displayed on the SMF page, and the following in the embient.error.log file.
15-Mar-2006 21:31:13 - (/home/sunset/public_html/embient/embient.db.php@113)
15-Mar-2006 21:31:13 - (/home/sunset/public_html/embient/embient.util.php@92) cannot initialise drupal
It seemed that SMF did not know how to connect with drupal. After searching, I found the config.xml file. It contains (or apparently should contain) the database information for drupal. My config.xml file had default values which were not correct for my install of drupal. So I specified the correct values in the config.xml file.
After doing that, instead of the errors about SMF not being able to connect with drupal, when I try to open smf I get a page with only the following error message (nothing else is displayed):
: Table '<<my Drupal Table>>.crf_sessions' doesn't exist
/home/sunset/public_html/smf/Sources/Load.php
1867
So it looks like setting up the drupal database info in config.xml caused SMF to try and find an SMF table (crf_sessions) in that database. Which, of course, is not there since it contains drupal tables, not SMF tables.
Now I'm at a loss as to what to do next. It would be helpful if I had some idea about how the embient SMF <-> drupal integration is supposed to work. For example, when someone registers on one system (drupal or smf) is the info automatically inserted into the other systems user tables? If not, do both systems first check their own tables for the account info, and if not found there then check the other systems tables? Or is one systems tables (for example drupal) used as the user table for both systems. I'm not asking for extensive documentation, but at least something (a paragraph or two) would be helpful. Also, instructions for doing a manual installation would be helpful. Perhaps the problems I'm having were caused by the install script failing because of not being able to write embient.module into the drupal directory. Instructions for doing a manual installlation would enable me (and other) to figure out what's missing.
I think this could be a great system if I could just get it working.
In case it helps anyone, here is a description of a problem I had using embient and the solution I found.
The problem: I installed SMF and Drupal in separate databases, but used the same database username and password to connect to them. This caused both systems to fail after calling embient because the connection to the database was automatically set to the other database. Because, (quoting a comment in php.net):
Quote
As has been already commented, opening multiple connection handles with:
<?php
$connection_handle = mysql_connect($hostname_and_port,$user,$password);
?>
causes the connection ID/handle to be REUSED if the exact same parameters are passed in to it.
For example, if logging in to drupal, embient would be called to access the SMF database. This changed the connection to the SMF database, and upon return from the embient code, drupal would fail because it would be trying to access the drupal tables in the SMF database.
The Solution: Use different database users for the two systems. (i.e. have the SMS database user be different than the Drupal database user). This prevents the connection ID/handle from being reused.
Hi
This is great piece of work and certainly the most awaited. Drupal is my favorite CMS and SMF is great forum , this integration will give others run for money.
I have installed this & resolved all issues. Since this is alpha version, is anything working now. Meaning... can I start using it on my test site.
What is the next step after installation, I did enable embient module on Drupal.
I think it's working. What can i do with this "bridge"
I tried creating a account on drupal and couldn't login on the forums
I'm in the same boat as taherk
When you register on one system (Drupal or SMF) an account will automatically be created in both. After that, the two systems are integrated. Signing into one, automatically signs into both. Changing account info on one changes it on both. Logging out of one, logs out of both.
If there is an already existing account on Drupal, but not SMF, embient will fail upon the Drupal login because it expects the SMF account to already exist. I modified my local copy of embient to automatically create the appropriate SMF account when this happens. If anyone wants details, send me an email.
Well it doesn't seem to be working for me
My root is : /home/myaccount/public_html
My Drupal is : /home/myaccount/public_html/drupal
My SMF is : /home/myaccount/public_html/smf
My Embients is: /home/myaccount/public_html/embient
Have i missed something?
I did something different. I've got a watchdog errors when logging into the drupal site
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.cache' doesn't exist\nquery: SELECT data, created, headers, expire FROM cache WHERE cid = 'menu:0:en' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.role' doesn't exist\nquery: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN (1) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.system' doesn't exist\nquery: SELECT * FROM system WHERE type = 'theme' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.system' doesn't exist\nquery: SELECT * FROM system WHERE type = 'theme' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.menu' doesn't exist\nquery: SELECT * FROM menu ORDER BY mid ASC in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.cache' doesn't exist\nquery: LOCK TABLES cache WRITE in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.cache' doesn't exist\nquery: UPDATE cache SET data = 'a:4:{s:10:\\"path index\\";a:99:{s:13:\\"admin/filters\\";i:-1;s:18:\\"admin/filters/list\\";i:-2;s:17:\\"admin/filters/add\\";i:-3;s:20:\\"admin/filters/delete\\";i:-4;s:11:\\"filter/tips\\";i:-5;s:10:\\"admin/node\\";i:-6;s:19:\\"admin/node/overview\\";i:-7;s:19:\\"admin/settings/node\\";i:-8;s:28:\\"admin/settings/content-types\\";i:-9;s:4:\\"node\\";i:-10;s:8:\\"node/add\\";i:-11;s:7:\\"rss.xml\\";i:-12;s:12:\\"system/files\\";i:-13;s:11:\\&q in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Cannot modify header information - headers already sent by (output started at /home/thetr0n/public_html/drupal/includes/database.mysql.inc:120) in /home/thetr0n/public_html/drupal/includes/common.inc on line 139.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.system' doesn't exist\nquery: SELECT * FROM system WHERE type = 'theme' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.watchdog' doesn't exist\nquery: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'access denied', '<em>node</em> denied access.', 1, '<a href=\\"/drupal/?q=node\\" class=\\"active\\">view</a>', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.blocks' doesn't exist\nquery: SELECT * FROM blocks WHERE theme = 'bluemarine' AND status = 1 ORDER BY region, weight, module in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Access denied
* warning: main(/home/thetr0n/public_html/embient\drupal.php): failed to open stream: No such file or directory in /home/thetr0n/public_html/drupal/modules/embient.module on line 2.
* user warning: Table 'thetr0n_lanforums.cache' doesn't exist query: SELECT data, created, headers, expire FROM cache WHERE cid = 'menu:0:en' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.role' doesn't exist query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN (1) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.system' doesn't exist query: SELECT * FROM system WHERE type = 'theme' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.system' doesn't exist query: SELECT * FROM system WHERE type = 'theme' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.menu' doesn't exist query: SELECT * FROM menu ORDER BY mid ASC in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.cache' doesn't exist query: LOCK TABLES cache WRITE in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.cache' doesn't exist query: UPDATE cache SET data = 'a:4:{s:10:\"path index\";a:99:{s:13:\"admin/filters\";i:-1;s:18:\"admin/filters/list\";i:-2;s:17:\"admin/filters/add\";i:-3;s:20:\"admin/filters/delete\";i:-4;s:11:\"filter/tips\";i:-5;s:10:\"admin/node\";i:-6;s:19:\"admin/node/overview\";i:-7;s:19:\"admin/settings/node\";i:-8;s:28:\"admin/settings/content-types\";i:-9;s:4:\"node\";i:-10;s:8:\"node/add\";i:-11;s:7:\"rss.xml\";i:-12;s:12:\"system/files\";i:-13;s:11:\"system/test\";i:-14;s:5:\"admin\";i:-15;s:12:\"admin/themes\";i:-16;s:19:\"admin/themes/select\";i:-17;s:21:\"admin/themes/settings\";i:-18;s:28:\"admin/themes/settings/global\";i:-19;s:14:\"admin/settings\";i:-20;s:13:\"admin/modules\";i:-21;s:4:\"user\";i:-22;s:17:\"u in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* warning: Cannot modify header information - headers already sent by (output started at /home/thetr0n/public_html/drupal/includes/database.mysql.inc:120) in /home/thetr0n/public_html/drupal/includes/common.inc on line 139.
* user warning: Table 'thetr0n_lanforums.system' doesn't exist query: SELECT * FROM system WHERE type = 'theme' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'access denied', '<em>node</em> denied access.', 1, '<a href=\"/drupal/?q=node\" class=\"active\">view</a>', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
* user warning: Table 'thetr0n_lanforums.blocks' doesn't exist query: SELECT * FROM blocks WHERE theme = 'bluemarine' AND status = 1 ORDER BY region, weight, module in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.
You are not authorized to access this page.
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.sessions' doesn't exist\nquery: SELECT sid FROM sessions WHERE sid = 'e8f3463a5838fd1cec6ebb2843185e20' in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Warning: Table 'thetr0n_lanforums.watchdog' doesn't exist query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'thetr0n_lanforums.sessions' doesn't exist\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('e8f3463a5838fd1cec6ebb2843185e20', 0, 0, '220.253.89.138', '', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120.', 2, '', '/drupal/', '', '220.253.89.138', 1143352566) in /home/thetr0n/public_html/drupal/includes/database.mysql.inc on line 120
Embient is installed and working (more or less), and when registering via drupal an account is indeed created in smf and the combined login works. However registering via smf works in so far as creating one smf account, but it doesn't create an account in drupal at the same time and hence logging on to Drupal from SMF doesn't work. Is it supposed to? And if creating an account from Drupal I'm unable to change that account's password from SMF. SMF simply tells me the password is incorrect.
Also, when I log into Drupal I stay logged in but SMF logs me out after a while? '
What should I look into to correct the problems described? Cookie settings? Something else?
If the register/login process is a one-way process, I'd like to know how/where to change the login/register links in SMF so that they point to the Drupal register/login page.
:) Thanks in advance and all that.
Anyone got a fix/solution to fix watchdog errors. I just wanna use the same members account :O
Is ther anyone installed this succesfully mind helping me out and installing it on my site?
http://artverve.com
^site
thanks :-*
Quote from: Zenko on March 28, 2006, 12:56:46 AM
Is ther anyone installed this succesfully mind helping me out and installing it on my site?
http://artverve.com
^site
thanks :-*
I feel your pain!
Nobody seems interested or caring to give support
I got it working after a few tries, and I'll try to whip up a basic description of how I went about it once I get home from work later today. :)
EDIT: Though, I'm still experiencing the problems described in my previous post about login and registration being a one way procedure.
Thanks. Hopefully it's newbie proof too
Unlike "heres the code mate. Install it yourself somehow"
First I installed Drupal in "http://<www_root>" and created the initial admin account.
Then I installed SMF in "http://<www_root>/smf" creating the admin account in the process (naming the accounts in drupal and smf the same, not that it matters to my knowledge).
Then I uploaded and unpacked embient into "http://<www_root>/embient" so that 'install.php' resides in "http://<www_root>/embient".
After that I uploaded and unpacked DOMIT to "http://<www_root>/embient/domit" so that all the domit files reside in "http://<www_root>/embient/domit".
Then, in my browser, I entered "http://<www_root>/embient/install.php" which outputs into the browser two lines relating to embient installation and a third line reading "Done."
After this I opened up "http://<www_root>/embient/config.xml" and changed:
<root>
<type>textfield</type>
<desc>Path to existing SMF installation</desc>
<value>C:\projects\htdocs\smf</value>
</root>
to
<root>
<type>textfield</type>
<desc>Path to existing SMF installation</desc>
<value>/hsphere/local/home/wikkit/<www_root>/smf</value>
</root>
You might have to make sure you have the proper permissions set for config.xml.
After that I created in "http://<www_root>/modules/embient" a file named "embient.module", opened it and added
<?php
require_once('/hsphere/local/home/wikkit/<www_root>/embient/drupal.php');
?>
.
(Obviously you need to substitute the path with your specific path)
Finally I went into Drupal --> administer --> modules and activated the embient module. Now under administer --> settings --> embient you should find different config options for your embient/drupal/smf installation. Such as for example the adress and login information for the SQL database.
Now try creating a new account in drupal and then swing by your SMF main page and you should be logged in.
I'm not sure about permissions for the smf/Settings.php file for example. But I seem to recall that SMF requires write permission to proceed with its installation, so the proper permission should already be set.
Hope this works for you. Now, if you don't mind, I'll have to go down to the basement and take care of the laundry. ;)
Holler if you need further help, and I will, to the best of my ability, try to help. :)
Cheers
Didn't work for me. It's werid cause no errors have been coming up
Install notes for embient alpha. (What I had to do to get it working).
1. Before running install.php, make sure drupal module directory is
writable. The install.php script will be trying to write file "embient.module" into that directory.
2. Run install script. It automatically detects drupal, embient and
smf. Displays message implying that everything is fine. But when starting drupal I got:
Fatal error: main(): Failed opening required '/home/cradmin/public_html/embient\drupal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cradmin/public_html/crdcvs032806/modules/embient.module on line 2
3. To fix this error, I fixed the content of the embient.module file to make sure the correct path to embient was given.
In my install, there was a back slash (windows style) rather than a forward slash (unix style). Fixing this solved that problem. So that when I opened up drupal, I didn't get that error. But when I tried to
enable the embient module in drupal module, I got the following error:
Fatal error: init(): Failed opening required 'C:\projects\htdocs\smf/Settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cradmin/public_html/embient/smf.plugin.php on line 133
4. To get rid of this error, I did two things. First, fixed a line towards the bottom of the smf/Settings.php file giving the path for 'integrate_pre_include'. (Path to file smf.php in embient directory).
I changed it from the wrong value:
'C:\projects\htdocs\smf/Settings.php'
to
'/home/cradmin/public_html/embient/smf.php'.
5. Second change I made was to change the embient/config.xml file to have the correct location for smf. This is specified in the part of the file containing:
<desc>Path to existing SMF installation</desc>
The value had to be changed from:
<value>C:\projects\htdocs\smf</value>
to:
<value>/home/cradmin/public_html/smf</value>
(for my sytem, your path would obviously be different).
6. Watchdog errors. Even after making the above, I had watchdog errors generated in drupal. From the error message it was apparent that the database handle in drupal had somehow been switched to the SMF database. I was able to avoid this problem by using a different database username for the SFM and Drupal databases as described in my previous post.
Another possible way to fix this (which I have not tried) would be to change the line in file embient.db.php which connects to the database, from
$this->connection = mysql_connect($this->_db_host, $this->_db_user, $this->_db_pass);
to
$this->connection = mysql_connect($this->_db_host, $this->_db_user,
$this->_db_pass, true);
(The change is to add a forth argument, true).
According to php documentation, the last argument (true) will force a new connection to be made even if all the arguments were the same as a previous connection
Last note: (Customization).
As I mentioned in a previous post, another problem I had is that if a user already exists in Drupal but not in SMF, the system will fail because when a user logs in to drupal, embient is assuming that the user is already in SMF. To get around this problem, I modified embient files drupal.php and smf.plugin.php so that if a user logs into Drupal and the user is not in SMF, embient creates the user in SMF. Send me an email if you are intersted in these modifications.
It's working
Would i need to change Embient configuration in drupal settings. If so... Do they save to the config.xml file
Cause if the password is saved into that config.xml file. It would be visble in cleartext and thats security issue
Wow not alot of help.
No one answered my security question about the config.xml file
My forum bridge is half working. If a user registered on SMF works without displaying errors
If a new user is registered on Drupal an errors occur
Quote* You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT ID_PM FROM smf_personal_messages (query = DELETE FROM smf_pm_recipients WHERE ID_PM IN (SELECT ID_PM FROM smf_personal_messages WHERE ID_MEMBER_FROM = '3')) in /home/thetr0n/public_html/embient/smf.plugin.php (line #555)
* error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT ID_PM FROM smf_personal_messages (query = DELETE FROM smf_pm_recipients WHERE ID_PM IN (SELECT ID_PM FROM smf_personal_messages WHERE ID_MEMBER_FROM = '3')) in /home/thetr0n/public_html/embient/smf.plugin.php on line 555.
Any developments or improvements?
Mines not exactly "perfect" and dodgy the way it's handled
I have done steps suggested by Jefft (Drupal: 4.7.0, SMF: 1.1rc2). But what I am experiencing is:
1. Almost every time I log into SMF, I will have one more error log in my "Maintanence" Panel in SMF "Admin":
Apply Filter: Only show the error messages of this URL http://www.gisaid.com/forums/index.php?action=featuresettings2;save;sa=basic
2: Cannot modify header information - headers already sent by (output started at /home/rockyl/public_html/dp/embient/domit/xml_domit_parser.php:1377)
File: /home/rockyl/public_html/dp/forums/Sources/Subs.php
Line: 2598
2. When doing operations like reading posts or posting new posts or adding forums in Admin panel, either using admin or registered accounts, I accidentally get the following error messages showing on the top of the output page, but refreshing the page always fix the problem:
Notice: Only variable references should be returned by reference in /home/rockyl/public_html/dp/embient/domit/xml_domit_parser.php on line 1338
Notice: Only variable references should be returned by reference in /home/rockyl/public_html/dp/embient/domit/xml_domit_parser.php on line 1338
Notice: Only variable references should be returned by reference in /home/rockyl/public_html/dp/embient/domit/xml_domit_parser.php on line 1338
(the same message will repeat itself for tens of times)
And at the same time a new error log in SMF reads:
http://www.gisaid.com/forums/index.php?action=login2;sa=check;member=4
Apply Filter: Only show the errors with the same message
2: Cannot modify header information - headers already sent by (output started at /home/rockyl/public_html/dp/embient/domit/xml_domit_parser.php:1338)
File: /home/rockyl/public_html/dp/forums/Sources/Subs.php
Line: 2598
Am I alone to this problem? Anyone knows a solutions to this?
Quote from: jefft on March 30, 2006, 12:37:02 AM
Install notes for embient alpha. (What I had to do to get it working).
1. Before running install.php, make sure drupal module directory is
writable. The install.php script will be trying to write file "embient.module" into that directory.
2. Run install script. It automatically detects drupal, embient and
smf. Displays message implying that everything is fine. But when starting drupal I got:
...
Well ... I have Drupal 4.7.2 and SMF 1.1 RC2 working in the same host and the same database. Now I try to integrate Drupal and SMF but following the steps I get this error:
Quote
Found drupal in D:/Server/WWWRoot/drupal. Installing Embient for drupal
Found smf in D:/Server/WWWRoot/drupal/smf. Installing Embient for smf
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\Server\WWWRoot\drupal\bridge\install.php on line 180
Warning: implode() [function.implode]: Bad arguments. in D:\Server\WWWRoot\drupal\bridge\install.php on line 193
Done!
Can any tell me if this is an error or just a warning? Then how I can know if the module is installed and working fine? Means that I have one user only for both systems or ...
Regards
How can I set a coockie from smf script, or an generic script, that force logon state for an drupal user?
Hi BoogieBug,
very good module for drupal.
I found a little bug: Every registration in my drupal is approved by the administrator. If a new people register, after the registration the new user couldn't login to the drupal, but he could login to the smf!
The embient should set the field 'is_activated' in table smf_member to 0.
Please help me to build this feature to embient in.
Thanks
Hi Boogie,
good idea to make such a bridge!
During the installation I had to manually change smf.plugin.php and drupal.plugin.php ... details below - New -.
What works for me:
- Registering a new user in SMF
- Registering a new user in Drupal
- Login and -out in SMF and the same time in Drupal
- Deleting a user in Drupal automatically deletes the user in SMF
- Deleting a user in SMF automatically deletes the user in Drupal
- Changing the username in SMF automatically changes the user name in Drupal
- Changing the password in SMF automatically changes the password in Drupal
- Changing the password in Drupal automatically changes the password in SMF
What doesn't work for me/Bugs:
- Login and -out in Drupal and the same time in SMF
- On changing the username in SMF you get a new password per eMail from SMF, but in Drupal your old password stays valid (and the new from SMF isn't valid).
No access to drupal -> administer -> settings -> modules (blank page with no source code appears) -> safe mode deactivated -> no problem any more
- I have to enter the database values in smf.plugin.php manually. Otherwise the database connection to SMF won't be possible.
- Some error messages by registering and deleting users (details see below)
I think these issues are resolvable so I'm hoping you'll continue with your good work you've done so far and that you heed the offers jefft made! :)
@wenjinglee: Have the same error messages in the SMF log.
@reynierpm: Had the same error on my xampp-windows-system, so I tried it on a Linux sys.
DetailsFollowing, my experiences with installing the bridge are listed:
Drupal & SMF in the same database, different folders.
Installation- Already known/mentioned here - Error immediately after enabling the module:
Fatal error: main() [function.require]: Failed opening required '/srv/www/web9/html/embient\drupal.php' (include_path='.:') in /srv/www/web9/html/bibliothek/modules/embient.module on line 2
Solution like jefft step 3:
embient.module: changing line 2 to 'your-path/embient
/drupal.php'
Also a known problem:
Fatal error: init() [function.require]: Failed opening required 'C:\projects\htdocs\smf/Settings.php' (include_path='.:') in /srv/www/web9/html/embient/smf.plugin.php on line 133
Solution like jefft step 4/5:
- smf/Settings.php: integrate_pre_include -> change value to your-path-to-smf
- config.xml: changing <value>C:\projects\htdocs\smf</value> to <value>http://your-path-to-smf</value>.
(Hint: If you managed to call the /embient/install.php/ more than once, delete the needless "$integration = array(..." so that the array is only defined once)
- New - Now I got just a blank screen on "drupal/?q=admin/modules"
... due to activated safe mode! ... , so I switched to the main page of drupal where the following errors occured:
* No database selected in /srv/www/web9/html/embient/embient.db.php (line #120)
* error: No database selected in /srv/www/web9/html/embient/embient.db.php on line 120.
* warning: fopen(/srv/www/web9/html/embient/embient.error.log) [function.fopen]: failed to open stream: Permission denied in /srv/www/web9/html/embient/embient.util.php on line 149.
* cannot initialise smf in /srv/www/web9/html/embient/embient.util.php (line #92)
* error: cannot initialise smf in /srv/www/web9/html/embient/embient.util.php on line 92.
* warning: fopen(/srv/www/web9/html/embient/embient.error.log) [function.fopen]: failed to open stream: Permission denied in /srv/www/web9/html/embient/embient.util.php on line 149.
And
Drupal log file:
error php 2006-07-02 20:26 fopen(/srv/www/web9/html/embient/embient.error.log) [ Roi Danton
error php 2006-07-02 20:26 cannot initialise smf in /srv/www/web9/html/embient/embient.util.php on line 92. Roi Danton
error php 2006-07-02 20:26 fopen(/srv/www/web9/html/embient/embient.error.log) [ Roi Danton
error php 2006-07-02 20:26 No database selected in /srv/www/web9/html/embient/embient.db.php on line 120. Roi Danton
Solution to these error messages:
drupal.plugin.php &
smf.plugin.php:
replace the variables of these lines
'db_host' => $this->conf['db_server']['value'],
'db_user' => $this->conf['db_user']['value'],
'db_passwd' => $this->conf['db_passwd']['value'],
'db_name' => $this->conf['db_name']['value'],
'prefix' => $this->conf['db_prefix']['value'],
with your database values. Use the prefix of the respective software.
Example for smf.plugin.php:
$db_params = array(
'db_host' => 'localhost',
'db_user' => 'Your DB Username',
'db_passwd' => 'Your DB Password',
'db_name' => 'Your DB Name',
'prefix' => 'smf_',
);
IMPORTANT: After I'd entered the database values in
administer » settings » embient » Drupal CMS I could replace the lines above in
drupal.plugin.php with their default variables and the bridge worked without any problem. But as I've replaced my values in
smf.plugin.php with the default variables, I've got the same errors in
Drupal again.
So again I replaced the variables in
smf.plugin.php with the values of my database and all worked fine ... well almost ;) ...
Current IssuesBut still I have no access to "drupal/?q=admin/modules" (blank page, but no error in watchdog) and there is also no "embient" on "drupal -> settings".
Maybe the activated safe mode is responsible for the "Permission denied" messages for fopen? (have disabled the safe mode)
Still the following warnings occur (besides the issue with the smf.plugin.php described above):
On registering a new user / On editing user profileIn
Drupal after pressing Button "Create New Account" and on editing his own account:
warning: fopen(/srv/www/web9/html/embient/embient.debug.log) [function.fopen]: failed to open stream: Permission denied in /srv/www/web9/html/embient/embient.util.php on line 149.
[... Repeating 27 times (so 28 at all) ..]
In
Drupal->administer->logs
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 output : user[timeOffset] is not set Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : timezone => timeOffset Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[timezone] = Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [timezone] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 output : user[signature] is not set Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : signature => signature Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[signature] = Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [signature] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : lastname => Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[lastname] = Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [lastname] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : firstname => Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[firstname] = Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [firstname] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 output : user[emailAddress] is set to [email protected] Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : mail => emailAddress Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[mail] = [email protected] Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [mail] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 output : user[passwd] is set to VHCoqDGCw3 Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : passwd => passwd Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[passwd] = VHCoqDGCw3 Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [passwd] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 output : user[memberName] is set to Testuser Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 mapping : name => memberName Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 input : user[name] = Testuser Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Checking [name] ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Input user info is Array ( [name] => Testuser ... Anonymous
error php 2006-07-02 19:00 fopen(/srv/www/web9/html/embient/embient.debug.log) [ Anonymous
embient-debug 2006-07-02 19:00 Mapping is Array ( [name] => memberName ... Anonymous
In
SMF after pressing the "Register" button and after editing your profile a blank page with the following text occurs (text varies, e.g. when you change nothing, only the line "Debug: Roi Danton is changing it's hideEmail to 0" occurs)
Debug: Mapping is Array ( [name] => name [passwd] => pass [mail] => mail [signature] => signature [timezone] => timezone )
Debug: Input user info is Array ( [name] => Testuser2 [passwd] => asdasd [mail] => [email protected] [firstname] => 'Testuser2' [lastname] => [signature] => )
Debug: Checking [name] ...
Debug: input : user[name] = Testuser2
Debug: mapping : name => name
Debug: output : user[name] is set to Testuser2
Debug: Checking [passwd] ...
Debug: input : user[passwd] = asdasd
Debug: mapping : passwd => pass
Debug: output : user[pass] is set to asdasd
Debug: Checking [mail] ...
Debug: input : user[mail] = [email protected]
Debug: mapping : mail => mail
Debug: output : user[mail] is set to [email protected]
Debug: Checking [firstname] ...
Debug: input : user[firstname] = 'Testuser2'
Debug: mapping : firstname =>
Debug: Checking [lastname] ...
Debug: input : user[lastname] =
Debug: mapping : lastname =>
Debug: Checking [signature] ...
Debug: input : user[signature] =
Debug: mapping : signature => signature
Debug: output : user[signature] is not set
Debug: Checking [timezone] ...
Debug: input : user[timezone] =
Debug: mapping : timezone => timezone
Debug: output : user[timezone] is not set
Logged in at SMF, but not logged in at Drupal. I have to Logout and Login again in SMF so that Drupal recognizes the SMF Login.
Though these warnings the account is created in both applications.
On deleting a userIf I delete the account in
SMFDebug: smf request to delete 8
If I delete the account in
Drupal
* Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'find_in_set' (query = SELECT ID_MEMBER, pm_ignore_list, buddy_list FROM smf_members WHERE FIND_IN_SET('9', pm_ignore_list) OR FIND_IN_SET('9', buddy_list)) in /srv/www/web9/html/embient/smf.plugin.php (line #497)
* error: Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'find_in_set' (query = SELECT ID_MEMBER, pm_ignore_list, buddy_list FROM smf_members WHERE FIND_IN_SET('9', pm_ignore_list) OR FIND_IN_SET('9', buddy_list)) in /srv/www/web9/html/embient/smf.plugin.php on line 497.
* warning: fopen(/srv/www/web9/html/embient/embient.error.log) [function.fopen]: failed to open stream: Permission denied in /srv/www/web9/html/embient/embient.util.php on line 149.
* Previous query is failed, cannot fetch result in /srv/www/web9/html/embient/embient.db.php (line #246)
* error: Previous query is failed, cannot fetch result in /srv/www/web9/html/embient/embient.db.php on line 246.
* warning: fopen(/srv/www/web9/html/embient/embient.error.log) [function.fopen]: failed to open stream: Permission denied in /srv/www/web9/html/embient/embient.util.php on line 149.
Though this warning the account is deleted in both applications.
If I logout or login on SMF, I'm also logged out or logged in at Drupal. But if I do the logout and -in at drupal, nothing changes in SMF.
Safe mode deleted, more test trials -> I've updated my previous post heavily.
Hi,
I get a fatal error, with this plugin.
Fatal error: Using $this when not in object context in /var/www/www.mysite.org/embient/smf.plugin.php on line 70
/var/www/www.mysite.org/embient/smf.plugin.php:
function embient_smf_parse_url($local = false, $global = false)
{
// Parse the URL with PHP to make life easier.
$parsed_url = parse_url($this->conf['boardurl']); <- this is the line 70
I don't good in php, please help me anybody to find this fatal error. Thanks.
How is this project going? Would love to see some more releases :P
Birger :)
Like I wrote in some posts above, I still have two errors that prevent embient from being useful ...
Quote from: Roi Danton on June 29, 2006, 02:38:00 PM
What doesn't work for me/Bugs:
- Login and -out in Drupal and the same time in SMF
- On changing the username in SMF you get a new password per eMail from SMF, but in Drupal your old password stays valid (and the new from SMF isn't valid).
Maybe anybody has a workaround for that?
Or maybe you don't have these two problems with your embient-drupal-smf installation?
Hi, I found more two embien bug.
- one is, that the smf log out the user automatically after 60sec, but the drupal don't make it. In this case the user have to have to log out from the drupal, and log return.
- another bug is that the user id between the drupal and the smf is not syncronized correctly. Now if a user register himself the created uid in the drupal will be 120, but in the smf 121.
Are there any new release?
Does anyone have a working copy of Embient that they could send me, or post here for download? I'm getting a blank white page during the install for Embient. I'm running a Unix server. Thanks.
Hi.
I'm using Drupal and joomla + smf. I should loved to use this bridge, but I'm finding it's so confusing. Could someone make a guide for people who is not so familiar whit php and things like that. Then me and many more will be greatful. :D
Yup that guide will be very useful.
Apart from that does anyone have a site with this setup so that we can have a look.
And an update for rc3 too... ;)
Is there something new?
Where are you BoogieBug?
Any good news?
Bump. I am interested in this as well. I did not even know this existed until today. I really do not want to use VB (unless I have no other choice) with some Drupal projects I am working on.
Is there any ideas for 5.0?
Quote from: nickie on January 16, 2007, 06:18:38 PM
Is there any ideas for 5.0?
Well, there is a project which might interest you. DruBB (http://groups.drupal.org/drubb)
URGENT: I'm interested in SMF 1.1.1 and Drupal 5 (starting fresh)... please keep me in the loop... building now!
SMF 1.1.1 and Drupal 5 live demo.
http://veberu.hostfabrica.ru
You can register and try.
Now it is set to work in Russian but you can write english too.
Enjoy.
Thank you, but it would be easier for us in English. ;-) Have you continue to develop embient or this is another solution? Anyway: when and where do you publish the code? :-) thank you. I registered and the integration looks very cool! Please publish this as soon as possible! I even would like to help to test and improve it!
Quote from: MrPrise on January 23, 2007, 02:50:51 PM
Thank you, but it would be easier for us in English. ;-) Have you continue to develop embient or this is another solution? Anyway: when and where do you publish the code? :-) thank you. I registered and the integration looks very cool! Please publish this as soon as possible! I even would like to help to test and improve it!
it would be easier for us in English. ;-) Partly already translated.
It is another solution.
Code will be published next week.
I viewed your Drupal integration demo (calling it from http://www.google.com/translate_t did the trick for this non-Russian reader). It looks very promissing.
Looking forward to getting into the code!
Cheers
he posted the bridge already in another thread. It's titled
smf_api_2.php extension for advanced integration
link (http://www.simplemachines.org/community/index.php?topic=146207.0)
Quote from: shoptalk on January 29, 2007, 11:17:49 AM
I viewed your Drupal integration demo
Looking forward to getting into the code!
Demo and code
http://vgb.org.ru/download
I have been trying to get this to work and doesn't seem to be straight forward as the instruction tell me.
I get as far as going to the "SMFforum settings" and it links to the forum ok but I have errors for the rest as it keeps looking else were for the "smf_api_2.php" file even thou the link to it is correct it won't look there it keeps looking into the forum ?
SMFforum status
Successfully locating SMF installation.
Error locating /home/aussieh/public_html/forum1/smf_api_2.php. Please fix your settings!
Unable to connect to the SMF database. Please fix your settings!
SMFforum root:
/home/user/public_html/forum1/
Path to SMF api file:
/home/modules/smfforum/includes/
SMF api file name:
smf_api_2.php
So were have I gone wrong ???
it can use drupal 5.5 and smf 1.1.4 ?
I want to know that too: Drupal 5.6 and SMF 1.1.4
Will there be an update for Drupal 6.0?
Birger :)
I would Love to know this aswell.
this bridge hasn't been updated since a long time, i believe more he's no more supported... :(
Quote from: GravuTrad on February 26, 2008, 11:46:17 AM
this bridge hasn't been updated since a long time, i believe more he's no more supported... :(
Drupal 5 module smfforum.module rc1 released
Sat, 02/23/2008 - 21:09 — webmaster
http://vgb.org.ru/node/30
Quote from: MindTooth on February 19, 2008, 05:51:39 PMWill there be an update for Drupal 6.0?
This version can work with Drupal6, see the message how to adopt, it is easy.
The module smfforum and smf_api_2 are supported on http://vgb.org.ru and drupal.org http://drupal.org/project/smfforum
Great news. Thank you. ;)
Already RC2 http://vgb.org.ru/node/31
Really nice work.
Birger :)
Can the team have a look into it please?
Anybody have the problem with users trying to change their password within Drupal and all users get the error message "The e-mail address xxx is not valid in SMF". I'm running SMF version 1.1.4 and Drupal version 5.3.
My SMFforum settings are:
Successfully locating SMF installation.
Successfully locating modules/smfforum/includes/smf_api_2.php.
Successfully connected to the SMF database.
Successfully authenticated SMF user: xxx
SMF qookie authentication test: Passed
Using the Drupal Master as the Registration system.
Any help would be much appreciated. Thanks in advance.
1) Try the last 1.0 version of the Drupal 5 module from
http://drupal.org/project/smfforum
2) I'd recommend to download the latest smf_api_2.zip from http://vgb.org.ru but sorry, service is temporally inaccessible. I do not know how to help you with that.
We will hope you have the compatible version.
3) The e-mail address xxx is not valid in SMF
the e-mail address should be not xxx but valid unique email address that SMF considers as valid.
Sorry for inconvenience with smf_api_2.zip
Let me know.
Development of SMF Integration with Drupal is terminated due to claims of Simple Machines LLC.
http://drupal.org/node/248543
So disappointing.
I know one user doesn't matter, but I'm now switching to phpBB3 and informing everyone else that was using this bridge to do so as well... License incompatibilities suck.
Just for the record, this has nothing to do with any incompatibility of licenses. It has to do with the distribution of SMF code without express written permission of Simple Machines LLC. as per the SMF license:
http://www.simplemachines.org/about/license.php
Quote2 c. Any Distribution of a Modified Package or derivative requires express written consent from Simple Machines LLC.
The file smf_api_subs.php in the Drupal bridge package is in violation, as no permission was requested or granted.
Quote from: Orstio on April 21, 2008, 11:06:32 AM
The file smf_api_subs.php in the Drupal bridge package is in violation, as no permission was requested or granted.
So rather than just being okay with it and granting permission, everybody walked with their toys? Who wins here? Anyone? I can tell you who loses -- us. Your end users.
Now checking into other forum options for my little community -- they say phBBB does pretty well.
This really, really reeks.
I apologize for the inconvenience, but I am really surprised at the outrage over our decision to enforce our license. It has been less than 2 weeks since we became aware of this, and we are working hard to ensure that vb can continue with his bridge in a way that will benefit both SMF users and Drupal users.
I hope too cause this recurrent problem of license for bridges is a little tiring and annoying, most for users than other else...
Quote from: Oldiesmann on April 24, 2008, 03:46:46 PM
I apologize for the inconvenience, but I am really surprised at the outrage over our decision to enforce our license. It has been less than 2 weeks since we became aware of this, and we are working hard to ensure that vb can continue with his bridge in a way that will benefit both SMF users and Drupal users.
So why can't you do simple and quick step - just to give vb "written permission"? :) This will show us what you REALLY mean in this case - company that loves its customers or something else.
We are working on a solution that will be preferable for vb and Simple Machines (and thus the end users). Please be patient.
Quote from: Oldiesmann on April 24, 2008, 03:46:46 PM
I am really surprised at the outrage over our decision to enforce our license. It has been less than 2 weeks since we became aware of this, and we are working hard to ensure that vb can continue with his bridge in a way that will benefit both SMF users and Drupal users.
You have asked me to remove, I did this.
But I wish I could continue the development including creation of a new version for SMF 2.0 if the solution, which allows Drupal and other open software users to use this bridge absolutely legally, could be worked out.
vb,
And we appreciate the quick response.
We are interested in the same thing. Some of what you did for the 1.1 series will probably be unecessary for 2.0... and some stuff can be done differently (IMO, better).
As Orstio notes, we are working on a solution that will hopefully work for everyone.
I am glad to announce that distribution of the smf_api_2 package is resumed due to the express permission granted from Simple Machines LLC.
You can download the new package from http://vgb.org.ru/download.
Great news, thanks to all people.
I hope the team'll make a little news at less on the bridge section for this. ;) (or better , on the news section lol)
Fantastic news! :)
SSI.php 2.0 can work under Drupal 6.2.
With the help of some tricks but even unpatched.;)
Glad it got solved!
Birger :)
This is great work - but I have one tinsy winsy problem - :)
I have installed the module and SMF. And now my current user in Drupal - their user ids dont get ported to SMF. But if I were to create an account in Drupal (a new user) then it gets ported over with no issues. So thats great - for all future users. But I do have an issue with the current users so this way we can port their user id and passwords over to SMF. Now I can see SMF from the Drupal page - no problem with that. But it is just the user issue I am having.
Thanks for your assistance!
Simple question, the bridge is always in alpha version?
Let's not forget that the team and the author worked out a solution that would work for all here. I am glad this got resolved and didnt go the way other open source projects have gone in the past.
SMF is not against working with anyone if there is a two-way partnership. I am liking drupal these days I must admit.
Quote from: Defsolutions on June 04, 2008, 02:28:07 PM
I have installed the module and SMF. And now my current user in Drupal - their user ids dont get ported to SMF. But if I were to create an account in Drupal (a new user) then it gets ported over with no issues. So thats great - for all future users. But I do have an issue with the current users so this way we can port their user id and passwords over to SMF. Now I can see SMF from the Drupal page - no problem with that. But it is just the user issue I am having.
Some answers are here:
http://drupal.org/node/248217
http://drupal.org/node/256231
Quote from: GravuTrad on June 05, 2008, 01:08:10 PM
Simple question, the bridge is always in alpha version?
The current version of the module is stable for SMF 1.1.5 line.
But for the SMF 2.0 it is again in the alpha state. ;)
I think we will create new thread when the module for SMF 2.0 will go to beta public or rc state. 8)
I have a question: What is this?
I have a fresh install Drupal 5.10 and a very mature SMF 1.1.6.
I would like my Drupal and my SMF to work together, ie. I would like the user name and passwords from my SMF to work in Drupal.
Is this possible?
Thank you in advance,
BigMike
Hi There,
I'm having the same problem too.. Is this got to do with the license?
I had put in valid email address but it keep on prompt me "The e-mail address [email] is not valid in SMF".
Please help.
Thanks,
Queenie
Quote from: vb on April 15, 2008, 04:11:18 PM
1) Try the last 1.0 version of the Drupal 5 module from
http://drupal.org/project/smfforum
2) I'd recommend to download the latest smf_api_2.zip from http://vgb.org.ru but sorry, service is temporally inaccessible. I do not know how to help you with that.
We will hope you have the compatible version.
3) The e-mail address xxx is not valid in SMF
the e-mail address should be not xxx but valid unique email address that SMF considers as valid.
Sorry for inconvenience with smf_api_2.zip
Let me know.
Hi,
I find myself intellectually retarded when reading this kind of instructions
Quote4) Unpack smf_api_2 archive and copy it to subdirectory
.../modules/smfforum/includes/
5) Follow the instructions in README.txt file.
http://drupal.org/project/smfforum
Now the readme.txt:
Quote2) Move smf_api_2.php, smf_api_2_subs.php to your smf root.
(Move smf_api_2_examples.php if you want to see demo)
3) Include smf_api_2.php in your php code.
We were instructed first to upload the two files to .../includes
then to move them to smf root !?!
Further, what is "my php code"? I didn't write any php code to include smf_api_2.php in it. :(
Please, anyone who has installed this bridge to provide intelligible insructions for dummies like me.
TIA
Is their anyone out there that could help with the bridge??
I am planning on moveing our site from phpbb to smf with drupal and i get this error when useing the bridge
You are not authenticated in SMF now. Please login to SMF and test again. You may refresh settings!
no matter what i have tried i can't get it to work I have seen all the info on drupal and tried that but still no luck??
Keith
Please try taking a look here:
http://drupal.org/project/smfforum
I'm not sure whether the author still reads this thread.
Sorry , i know this topic has been inactive for along time,
but I wanted to know something that maybe someone knows,
I need to install Drupal and I have a Smf forum 1.1.11,
But the last package i see at drupal says 1.1.9 ...
Well Thas all
Thans