Topic: [Module] SMF bridge  (Read 114965 times)

Pages: [1] 2 3 ... 13   Go Down

#1: 22-Mar-2006, 10:33 AM

Foundation

rthrash
Posts: 11,282

WWW
At long last, allows you to sync your SMF user system with the MODx webusers and run the SMF administration system inside the MODx manager.

NOTE: please make sure you are running MODx 0.9.1 or later and SMF 1.1RC2. Earlier versions of SMF will not work and this may need to be updated once SMF 1.1 is released from release candidate state.

You can also download a .zip version here.

* SMF_module.tgz (148.83 KB - downloaded 2098 times.)
« Last Edit: 29-Mar-2006, 10:14 PM by rthrash »
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#2: 22-Mar-2006, 11:17 AM


kickass
Posts: 160

WWW
THANK YOU!!! And you've already been BLOGGED on this.
"I'd love to change the world but I can't find the source code . . ."

Custom ModX Templates

#3: 22-Mar-2006, 02:59 PM

Fellini 8.5
Posts: 25

Hooray!  I was just about to figure out how to properly beg and plead for access to the test version of this so I could start implementing the features my users are grumbling about!   Grin

That said, now I have no excuses for not implementing the features my users are grumbling about...   Cry

#4: 22-Mar-2006, 03:23 PM


OncleBen31
Posts: 283

I believe in MODx!

WWW
Cool, ModX is now more and more powerfull  Grin

Little question to install : HOW TO configure "the forum base path" if ModX and SMF are not on the same sub-domain ?

ex: Modx http://www.mysite.org and SMF http://forum.mysite.org (the directory of SMF is not a subdirectory of http://www.mysite.org)

Edit : I found the solution alone  Tongue. I used the php_info (in the manager) to have the real path.

Remark : In the configuration panel, the password for the administrator of SMF is visible !!! Not very secure  Shocked
« Last Edit: 22-Mar-2006, 03:53 PM by OncleBen31 »

#5: 23-Mar-2006, 09:40 AM


edipo
Posts: 332

Great rthrash ! This is one of the best module!  Cheesy
Sorry for my bad English  Grin

#6: 23-Mar-2006, 10:23 AM

Foundation

rthrash
Posts: 11,282

WWW
Don't thank me, thank Raymond (xwisdom). Smiley
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#7: 24-Mar-2006, 07:27 AM


edipo
Posts: 332

Thanks Raymond Wink
Sorry for my bad English  Grin

#8: 24-Mar-2006, 11:52 AM

LeftHanded
Posts: 40

WWW
Thanks to ALL participated people for this great Module
and especially thanks to UncleBen31 for the tipp to use the php_info for the complete path
Great CMS, great functions...


LeftHanded
I love ModX!

#9: 25-Mar-2006, 09:35 AM

jlarson
Posts: 105

Could someone please tell me what's wrong?  I'm getting the following errors:

Fatal error: Call to undefined function: smf_registermember() in /home/ccwmorg/public_html/assets/modules/smforum/smf.sync.class.inc.php on line 114

and

Fatal error: Call to undefined function: smf_loginbyid() in /home/ccwmorg/public_html/assets/modules/smforum/smf.admin.class.inc.php on line 36

when running the 2 options in the module.   The include smf_api_1.1.php is being read, but apparently not seen properly as code.  For instance, a test "echo" statement in that file shows parse error, unexpected T_ECHO.

#10: 25-Mar-2006, 10:31 AM


kickass
Posts: 160

WWW
My pledge donation has been made via the donations link up top . . . THANKS!

Okay, now what's next on the wishlist that we can get motivated like this . . .
"I'd love to change the world but I can't find the source code . . ."

Custom ModX Templates

#11: 25-Mar-2006, 03:28 PM

Foundation

OpenGeek
MODx Co-Founder
Posts: 6,712

damn accurate caricatures...

WWW
My pledge donation has been made via the donations link up top . . . THANKS!

Okay, now what's next on the wishlist that we can get motivated like this . . .
How about, complete content localization, content revisioning and rollback, a lightweight PHP4/5 compatible object model/API that can be used outside of the MODx site (think a MODx WordPress or other 3rd party system plugin that can call and generate a DropMenu snippet), and even more?  Any one got money for that? LOL
Jason Coward
MODx Co-Founder
xPDO Founder
CTO @ Collabpad
work productively.
work intelligently.
work together.
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
  Frank Zappa

#12: 25-Mar-2006, 03:32 PM


kickass
Posts: 160

WWW
Geez, and I thought my list was gonna be long . . .
"I'd love to change the world but I can't find the source code . . ."

Custom ModX Templates

#13: 25-Mar-2006, 08:31 PM


blackhawk_996
Posts: 9

n00b at w0rk

WWW
In case anyone might need some help, if you are not sure whether your forum base path is correct, you can copy the one you'll find in your forum admin panel -> server settings -> path to smf.

#14: 26-Mar-2006, 02:52 PM


kennylovesyou
Posts: 2

I love MODx!

Hi all,

was hoping that someone might be able to help with this problem.

I have tried to integrate SSI.php into my templates however no success yet. I must confess that my approach of learning is more of a hack-approach..  *stick things together and see if it works, then optimize it as much as possible*.

http://www.simplemachines.org/community/ssi_examples.php

Anyway i was wondering if this is the best way of integrating SMF SSI.php Functions into modx is via templates or should I be using a snippets approach? Which would be generally the better way of doing it?

thanks.
Kenny
« Last Edit: 26-Mar-2006, 02:55 PM by kennylovesyou »

#15: 27-Mar-2006, 09:26 AM


OncleBen31
Posts: 283

I believe in MODx!

WWW
I've install this module with my login and my password (I'm the admin of the forum  Wink)
And I notice that since I've activate this module, I was unable to logout when I'm using the SMF forum.

Is there anything to do (except deactivate the module) to logout ?

EDIT : This bug concerns all the registered member. When the mod is active I'm unable to logout (with the admin login or with a simple member login too) !!!
« Last Edit: 27-Mar-2006, 09:32 AM by OncleBen31 »

#16: 27-Mar-2006, 10:28 AM

Coding Team

bS
Posts: 398

WWW
If i try to run the module i get a blank screen saying:

Hacking attempt...   

Huh

- I installed and configured the module step by step using the smf_readme.doc provided with the download.

edit:

the error is generated by one of the SMF includes:
Code:
if (!defined('SMF'))
   die('Hacking attempt...');

extra information:
I'm using MODx 0.9.1 (+ the logparser file from the smfconnect download). The SMF install i'm using is 1.1 RC2 and the forum directory is physically located on the same level as the modx manager directory. Modx uses www.domain.ext as the virtual root and my SMF configuration will force the usage of forum.domain.ext instead of www.domain.ext/forum but both are usable. Hosting panel used is Direct Admin 1.26.4 (Linux+apache)

Am I the only one with this error? Sad
« Last Edit: 27-Mar-2006, 11:45 AM by bS »
Armand Pondman
MODx Coding Team
:: Jot :: PHx

#17: 27-Mar-2006, 10:36 AM

Fellini 8.5
Posts: 25

Regarding logout, it would appear that you always need to login and logout with MODX.  Which means you need to set the Module's "Login page" and "Logout page" as required.  Using the out-of-the-box test site as an example, that would be document ID#4 for both.  That makes the main SMF toolbar login/logout buttons redirect to the MODX login/logout page.

And do NOT use the "quick login" on the SMF templates!

"Hide Forms" doesn't seem to have any effect.

I've found when playing around that they can get out of sync, especially if you don't set the "Logout page" correctly.  And double-especially if you use the SMF "quick login" form on the standard template.  To get back in sync, you need to log out of MODX, then log back in to MODX as the same user.  Then go to the forum, click logout, and it should be in sync.  Maybe... Smiley  Or, just trying it again now, maybe not.  Sad  

Hmm, I guess when I thought I got it to work before, it was actually just the cookie expiring.  I can switch to a different user using the correct login/logout procedure, but then it just reverts me to the previously-logged in user.  Tongue


I guess the first order of buisness is to get rid of that "quick login"...

#18: 27-Mar-2006, 12:14 PM

jlarson
Posts: 105

Anyway i was wondering if this is the best way of integrating SMF SSI.php Functions into modx is via templates or should I be using a snippets approach? Which would be generally the better way of doing it?
Kenny, you do want to put your code in snippets, and put snippet calls, template variables and placeholders in your templates (or chunks). 

For example, here's a basic snippet that can be used as a simple single-page blog:
Code:
include "forum/SSI.php";
$topicarray = ssi_boardNews($id, 10, null, null, 'array');
$bloglinks="<h3>blog posts</h3>
<ul id='LM_level_1'>";
//print_r($array);
foreach ($topicarray as $blog)
{
      $output.="<a name='".$blog['time']."'></a><div class='ssi_table'><div style='float:right'>".$blog['time']."</div><span class='heading1'>". $blog['subject'] ."</span><br /><br />";
      $output.=$blog['body']."<br /><br />";
              $output.=$blog['link']."  |  ". $blog['new_comment'] ."<br /><br />";
              $output.="</div><br />";
              $bloglinks.="<li><a href='#".$blog['time']."'>".$blog['subject']."</a></li>";
}
$bloglinks.="</ul>";
$modx->setplaceholder('otherlinks',$bloglinks);
return $output;
Note that this sets a placeholder, [+otherlinks+] that you can put in a sidebar in another part of your template.

Note also that this snippet doesn't separate content from presentation.  A pure approach would use a separate chunk, called using  $modx->getChunk('chunkName').

#19: 27-Mar-2006, 03:53 PM


kennylovesyou
Posts: 2

I love MODx!

thank you jlarson,

I kind of suspected that i should have been using snippets, lesson learned i guess Tongue


thanks again.

[edit]
wow, im truly amazed at power of snippets, it makes modx so much better  when compared to other cms i have tried and used.. Cheesy
« Last Edit: 27-Mar-2006, 04:25 PM by kennylovesyou »

#20: 28-Mar-2006, 12:40 AM

Coding Team

sottwell
Posts: 10,439

WWW
wow, im truly amazed at power of snippets, it makes modx so much better  when compared to other cms i have tried and used.. Cheesy

Wait until you start working with TVs.  Like a cross between snippets and chunks, only better.  Very very powerful, and I am barely beginning to understand their uses.
sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Pages: [1] 2 3 ... 13   Go Up
0 Members and 1 Guest are viewing this topic.