Bridge Xoops-SMF 1.1 RC3 Beta 1

Started by Orstio, December 31, 2005, 03:18:57 PM

Previous topic - Next topic

broham

QuoteI can't even begin to specualte why it's redirecting to a 403.  It could be anything from a setting in Xoops to a problem with mod_security, or perhaps something in your .htaccess, or even a PHP setting.

It looks like I was able to resolve the issue??
I placed a .htaccess file in the SMF module folder.
Here is what I have inside it:

<IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
</IfModule>


Do I know what this means?  Nope, but it seems to have made the bridge cooperate the extra mile.  Can you tell me what that code does?
SMF + Xoops dude, yeah!  Good stuff.

broham

Well, can anyone tell me what I did with the mod_security code?  I just want to make sure I did not make the site vulnerable with this fix.
SMF + Xoops dude, yeah!  Good stuff.

broham

#562
I still need to know if I weakened security or if I should be fine.

Also, I have the "fetching preview" problem that I believe is an issue with java script between xoops and smf.  It works in the actual smf forum, but not through the xoops smf bridge.
I supsect there is a fix, perhaps similar to this:
http://www.simplemachines.org/community/index.php?topic=115776.msg741636#msg741636
although it would need to be changed for xoops.

Am I getting warm?  What's the fix?
Thanks...

-EDIT-
SMF error log:
8: Undefined index: xoops_js
File: /home/me/public_html/templates_c/default+cloned1+CLONED-Green_K^%%95^95C^95C0B0B5%%theme.html.php
Line: 39
SMF + Xoops dude, yeah!  Good stuff.

jscorrea

#563
Hello,

Is strange,

With SMF wrapped in the xoops the words appear like:
Corporação Skyline de Pilotos Virtuais

With SMF alone works fine like this:
Corporação Skyline de Pilotos Virtuais


What is the problem?

Sorry for my English.

Regards,
JS


macmend

I am so disappointed after reading this thread that I will have to abandon smf forums, as this bridge doesn\'t really do what I need or appear stable enough, really what we need with Xoops is someone to create an smf module for xoops that fully integrates the smf forums with XOOPS.

Orstio

Quote from: macmend on April 29, 2007, 11:41:28 AM
I am so disappointed after reading this thread that I will have to abandon smf forums, as this bridge doesn\'t really do what I need or appear stable enough, really what we need with Xoops is someone to create an smf module for xoops that fully integrates the smf forums with XOOPS.

What does it not do that you want it to do?

jscorrea


Orstio

Quote from: jscorrea on April 29, 2007, 02:03:55 PM
Help us Orstio, look my post .

JS

It looks to me like SMF is using a UTF8 character set, and Xoops is not.

jscorrea

Quote from: Orstio on April 29, 2007, 02:09:06 PM
Quote from: jscorrea on April 29, 2007, 02:03:55 PM
Help us Orstio, look my post .

JS

It looks to me like SMF is using a UTF8 character set, and Xoops is not.

Ok, thanks. In this case the rigth choice in the installation is not use UTF8?

Regards,
JS

Orstio

Use the same character set for both.

jscorrea

I reinstall SMF without UTF8 caracter set and...no changes inside xoops, out of xoops ok..

How is possible?

Orstio is possible to when te user login in the SMF block login is redirected for home page of xoops, my index page?

JS

Orstio

Can I see a URL?

QuoteOrstio is possible to when te user login in the SMF block login is redirected for home page of xoops, my index page?

If I interpret that correctly, you are asking if a user can be redirected to the index page on login.  I haven't added that yet, but it will be added, yes.

jscorrea

Quote from: Orstio on April 29, 2007, 03:59:07 PM
Can I see a URL?

QuoteOrstio is possible to when te user login in the SMF block login is redirected for home page of xoops, my index page?

If I interpret that correctly, you are asking if a user can be redirected to the index page on login.  I haven't added that yet, but it will be added, yes.

Yes ! After the user decides where go. The Fórum or not.

broham

We lost nearly 10 pages in this thread?

QuoteI am so disappointed after reading this thread that I will have to abandon smf forums, as this bridge doesn\'t really do what I need or appear stable enough, really what we need with Xoops is someone to create an smf module for xoops that fully integrates the smf forums with XOOPS.
The bridge is actually pretty nice once you get it in tune.  Your disappointment may be to your disadvantage if you don't give it a try.  The only features I see that aren't integrated the way I'd like is with the comments users can make in other Xoops modules.  The post numbers of the users are not in sync with SMF posts.

Orstio, can you please tell me how to get my java problem solved with the fetching previews not working in the module.  It works in the standalone.

I am also anxious to get login/logout to direct to the page you are at when logging in/out.  While this is not a current feature, is there some code we can insert for a quick fix?
SMF + Xoops dude, yeah!  Good stuff.

Orstio

QuoteThe only features I see that aren't integrated the way I'd like is with the comments users can make in other Xoops modules.

You mean something like this?

http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=55185&viewmode=flat&order=ASC&start=0

QuoteOrstio, can you please tell me how to get my java problem solved with the fetching previews not working in the module.  It works in the standalone.

Something similar to this needs to be in the header of your Xoops template:

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>


In order to do that, SSI.php will need to be included first, and $scripturl, $settings, and $context variables global.

Then, the header needs to be removed from the SMF theme.  The javascript can't work with two headers in the HTML output.

broham

I cannot get Conjecture installed to see what it offers.  Maybe because I do not have PHP 5?  Dunno.

Thanks for the ideas for the javascript issue.  I am not sure what exactly you are saying though (as to which files and where I find them), and the few things I have tried so far are obviously not what you are instructing me to do based on the results I am getting.  I guess I will have to test this more when I have 2 or 3 days to kill interpreting all that through trial and error.

I may have to just halt everything in favor of just learning php programming so I might have a clue of my own. :-\
SMF + Xoops dude, yeah!  Good stuff.

Orstio

Well, the file you need to remove the code from is your SMF theme's index.template.php, and you need to put it into your Xoops template, between the <head> </head> tags.

broham

I thought I accidentally found a shortcut fix, but javascript didn't work for the arcade afterwards as you might have guessed.

QuoteIn order to do that, SSI.php will need to be included first, and $scripturl, $settings, and $context variables global.
What file do I put the call for SSI.php?  Not in my Xoops theme.html, right, because I would have to make it a php file then?  So where does the SSI code go?  How 'bout the variables global?  That goes in my Xoops theme header right?  Sorry for asking stuff that's probably too obvious to you.  :)
SMF + Xoops dude, yeah!  Good stuff.

broham

Orstio, I tried removing that code from the index.template.php and inserting it into my Xoops theme.html.  I also inserted the code to call SSI.php and set those variables global with this
        <?php
require_once('/home/example/public_html/SMFforum/SSI.php');
global 
$context$settings$scripturl;
?>

   I was not sure where to put that though.  After trying my xoops index file and header file, I tried the mainfile.php.  It actually appears to work, but I get an error on my site that says:
QuoteNotice: Use of undefined constant XOOPS_URL - assumed 'XOOPS_URL' in /home/example/public_html/modules/smf/index.php on line 167
SMF + Xoops dude, yeah!  Good stuff.

Orstio

In that file, find this:

$_SESSION['old_url'] = XOOPS_URL . '/modules/smf/index.php';

Change it to this:

$_SESSION['old_url'] = 'XOOPS_URL' . '/modules/smf/index.php';

Advertisement: