Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: wing on September 16, 2007, 12:04:07 AM

Title: Using SMF to comment on Mambo Topics
Post by: wing on September 16, 2007, 12:04:07 AM
Just as the title suggests?

If I use the Mambo - SMF bridge (I am in the process of getting this working....) could it be done so that if content is posted in Mambo and some comment module was added (not sure what I'm new to this).  Could SMF be used as the comment engine for the Mambo content?

Any info you have on this would be great!  Thanks!
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on September 16, 2007, 12:20:07 AM
Yes.

I have modified the discussbot to work with Mambo 4.6.x.

You can see it in action here:

http://www.everything-science.com/content/view/215/98/en/
Title: Re: Using SMF to comment on Mambo Topics
Post by: wing on September 16, 2007, 09:07:18 AM
Awesome, where do I download it?

Thanks!
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on September 16, 2007, 10:19:13 AM
Try this.
Title: Re: Using SMF to comment on Mambo Topics
Post by: wing on September 16, 2007, 11:18:54 AM
Thanks!  :D

While I'm at it, can you use SSI.php from SMF in Mambo as well for content?
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on September 16, 2007, 11:42:29 AM
No.

If you want to do that, you probably want a portal, rather than a CMS.  You should look at TinyPortal instead of Mambo.
Title: Re: Using SMF to comment on Mambo Topics
Post by: Kindred on September 16, 2007, 12:36:35 PM
While I agree with Orstio, there is a round-about way to get SMF posts into Mambo content...

get fetchRSS or some other RSS importer for Mambo, and run the RSS importer on the SMF RSS feed.
Title: Re: Using SMF to comment on Mambo Topics
Post by: wing on September 16, 2007, 03:53:40 PM
It's not an absolute requirement but it would be a nice to have and only for select threads, I can probably write a mambot or something for what I need to do.

I need UHP2 (user homepages) so Mambo is pretty much a requirement unless I can do something similar with tiniportal.
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 11, 2009, 05:18:31 PM
Can I use it with SMF 1.1.9?

My question is because with this SMF version and Mambo 4.6.5, using multiple databases (alrady configured at discussbot page), i get an error from SSI.php and other from Load.php (both SMF files):

Table 'db_sitebd.smf_messages' doesn't exist
File: /home/site/public_html/forum/SSI.php
Linha: 267

Table 'db_sitebd.smf_sessions' doesn't exist
Arquivo: /home/site/public_html/forum/Sources/Load.php
Linha: 2017

As we can see, the discussbot is trying to access my Mambo Database (not the SMF database, named db_forum).

Can anynone help me?

Thanks!
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 11, 2009, 09:19:49 PM
Bridge version?
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 13, 2009, 03:27:47 PM
I'm sorry.

The bridge is the last: SMF 1.1 Mambo 4.6 bridge 1.1.2.

Thanks for the interest in my issue.
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 13, 2009, 06:11:46 PM
And you're sure that your SMF database user has access to your Mambo database, and that your Mambo database user has access to your SMF database?
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 13, 2009, 06:48:11 PM
Yes, I'm sure. I'm using the same user to both databases, with all privileges.

If you look at error message, an attempt to access the worng database is made. The tables smf_sessions and smf_messages really don't exist on sitedb database because it's not the SMF database. The SMF database name is db_forum (already configured).

The most strange is that SSI.php is a SMF page, not a component page. Can be a SMF bug? I don't know but I have inserted the PHP command mysql_select_db("db_forum") before the line that this error occur and voilĂ , the erro was bypassed. With some adjusts (using forum numbers instead names and other small things), the component works but the layout on frontpage was destroyed. If I unpublish the component and repuslish the Login Form module, the layout back to normal state.

Thanks!

Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 13, 2009, 07:08:40 PM
What sort of control panel does your host use?
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 13, 2009, 08:20:58 PM
cPanel 11.24.4-STABLE Build 36281
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 13, 2009, 08:36:37 PM
Do you also have the SMF_header_include mambot published?
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 13, 2009, 08:43:08 PM
No. What is the correct?
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 13, 2009, 09:16:10 PM
You can't really expect anything bridge-related to work correctly without it.
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 13, 2009, 09:24:19 PM
Ok, but publishing it had no effects. The layout still is bad.

The SMF_header_include does automatically what I do editing the template index?

All other SMF mambots are unpublished.
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 13, 2009, 09:29:31 PM
Why are you editing the template index?
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 13, 2009, 10:45:39 PM
To put the follow code:

<?php 
ob_start
('output');
$buffer ob_get_contents();
ob_end_clean();
$buffer str_replace('<input type="hidden" name="sc" value="" />'
,'<input type=hidden name="sc" value="'.$sc.'">'$buffer);
echo 
$buffer;
?>


Anyway, the template bug persist, with or without it.
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on June 13, 2009, 10:48:51 PM
What template bug?
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on June 14, 2009, 12:42:57 AM
With SMF_discussbot mambot published and the line "mysql_select_db("bd_forum");" inserted on SSI.php, the front-end layout/template is affected, like I said earlier. It loses the margins and orientation. So, we're talking about two things:

1. Warnings (my initial post) - solved with mysql_select_db PHP command in SSI.php but needs atention.
2. Layout problems - after bypass the warnings issue above, I'm having layout inconsistences when I publish the discussbot mambot: my menu margin grows right and the content on frontpage is supressed by left menu.

Thanks again!
Title: Re: Using SMF to comment on Mambo Topics
Post by: fernandop on July 04, 2009, 11:32:00 AM
Please, guys, don't forget my topic. =)

I don't know the solution yet... :-[
Title: Re: Using SMF to comment on Mambo Topics
Post by: Orstio on July 04, 2009, 11:41:54 AM
What is your URL?