Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: npereira on September 06, 2005, 02:48:42 PM

Title: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 02:48:42 PM
Hi all,

new to all this mambo and SMF, I have a running site already but SMF is not intergrated to Mambo as i've been unable to make this work (the login in mambo login in SMF).

Anyway, i've been looking at this SSI.php and the SHTML and there is a load of stuff I could do with that. Problem is I dont know how to do this. I want to use one of the SSI statement "Top Boards Function: <?php ssi_topBoards(); ?>" and have that information posted in a side user menu of Mambo.

Does anyone know what I need to do? and how to add this to a user menu?

Thanks
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 02:53:34 PM
What was the problem with installing the bridge? Sure you can use SSI within a module, if you just want to show it on Mambo's frontpage, you can use SSI for that. If you unzip mod_smf_RecentTopics and take a look at the file, you can see that you just need to replace the call for recent topics with the call for top boards.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 03:05:42 PM
About the bridge... I dont know, I have tried 4 times to get it working and I had nothing but problems and no one could seem to help me out. I would realy like to get it working though. I can try again if you would be willing to provide a litle support via this thread....? But there seems to be several different ways to install it as what I have seen (instaructions).....

Ok, I see what you mean about the RecentTopics mod, but is there a simpler way to do this? I mean, do I basicaly have to make a MOD myself for the specific SSI I need?  Because another one I was looking for was the show users on-line....Or is there a way to just take the "<?php ssi_topBoards(); ?>" and insert it in a menu or something like that?

tahnks for your replies.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 03:21:58 PM
I'm afraid that is the most simple way, just to create your own module and install it. In fact, try the attached one.

Can you tell me which version of SMF you are running, which version of teh bridge you tried to install and what went wrong? I haven't seen you posting in the Mambo Bridge (http://www.simplemachines.org/community/index.php?board=77.0) board though..
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 03:36:24 PM
most of my posts are located on forums.mamboserver.com

But I used :

MamboSMFForum_1.3.2b1.zip
and
mod_mambo_smf_login_1.3.1a.zip
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 03:40:11 PM
Try this bridge instead:

http://mamboforge.net/projects/mos-smf/

Beware that there are two versions:
for SMF 1.0.5:
http://mamboforge.net/frs/download.php/6472/MOS_SMF_BRIDGEv3.19a_stable.zip

for SMF 1.1 Beta 3 Public:
http://mamboforge.net/frs/download.php/6471/MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 03:43:37 PM
ok, let me try this one.

be back in 15min.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 03:53:18 PM
ok, this one i never had tried it.... but one question, in mamo config panel for SMF, the 3rd option:
SMF Forum integration
What is the difference between the 2 options?  (There should be a litle help icon to explain the differences.....

I want people to register to the mambo and be also registered onto SMF.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 03:57:58 PM
It doesn't matter which one you use. Just use the one you like most. Both ways will register your users in SMF first, and after logging in once they will get added to Mambo's userlist.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 04:06:33 PM
DAMN !  Looks like it's working now !

Although, 1 litle issue, the css the wrapped in forum seems to be using is wrong...?!?
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 04:08:35 PM
Yes, that is always a problem. Compare your mambos template_css.css with your SMF's style.css and comment out all double entries from your SMF's style.css. Start with the linkclass.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 04:17:37 PM
not sure if i understand....

I liked the old css of the SMF.
The css in Mambo (when you go to the forum) seems ALOT bigger....
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 04:21:31 PM
Which mambotemplate are you using? There are some entries that exist in both stylesheets. For example, the link class. If you are not on the forumpage, Mambo will use the linkclass defined in your mambo templates css. If you are on the forumpage, however, it will use SMF's style.css, changing the links, the text, etc. That is why you need to comment out all double entries if you intent to use your forum wrapped.

http://www.xenovanis.nl/Install_Instructions.htm#step7
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 04:23:07 PM
so if I understand right, if I like the css of Mambo, i comment out the doubles in the SMF css?

my site is: www.ott-motorcycles.ca
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 04:26:03 PM
If you want your forum to look really integrated, yes. When visiting the forumpage, SMF's stylesheet will always overrule Mambo's. That is not a bad thing, unless there are entries defined that are also defined in Mambo.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: Kindred on September 06, 2005, 04:29:41 PM
well, I have been experimenting with the CSS files, etc...

since the entire HEAD section of SMF *SHOULD* be removed, when the forum is wrapped (commented out with an IF statement)

SMF SHOULD use the mambo template's CSS and ignore style.css completely...   which requires you to merge the style.css into template_css.css so that SMF has the proper entries.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 04:31:21 PM
That would be of best interest for everyone. It is, however, a heck of a job because you'll need to remove all classes in the template files.

edit: and redefine them
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: Kindred on September 06, 2005, 04:35:17 PM
no, you don't...


take the smf style.css.
Add it to the bottom of the mambo template_css.css
merge/delete duplicate entries.

comment out the <head> information all the way to (and including) </head><body> in the smf theme's index.template.php
(also comment out the </body></html> lines in index.template.php)

now SMF is using the mambo CSS file because it has no information to use anything different.


it only took me about 10 minutes to do it, fix the inevitable typo errors and get it running.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 06, 2005, 04:43:54 PM
hmm.... I haven't thought of that. I need to try that. But, what is the advantage? If the modules are configured to use mambo's stylesheet there is no need to copy/merge SMF's stylesheet with Mambo's, it does function on it's own. You still need to install the theme in SMF and the template in Mambo.
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: Kindred on September 06, 2005, 04:52:20 PM
Yes, you need to install the theme in SMf and the template in mambo, separately...  however, not all themes will be designed to use mambo's stylesheet.

The main advatanges of doing it this way is:

1) no heavy modifications to the SMF theme template files. A few extra lines added to conditionally remove the extra sections (which will prevent XHTML validation and can actually screw up some of the modules/components like FacileForms)

2) If the forum is used in mambo, display one way... if it's accessed directly, display a different way (CSS is powerful like that...)

3) If you have a theme that you like, you can quickly add it to work with a mambo template without redesigning every template file...

Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 06:41:40 PM
Quote from: xenovanis on September 06, 2005, 04:26:03 PM
If you want your forum to look really integrated, yes. When visiting the forumpage, SMF's stylesheet will always overrule Mambo's. That is not a bad thing, unless there are entries defined that are also defined in Mambo.

So what do you think about that post:
http://www.simplemachines.org/community/index.php?topic=48453.0
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 06, 2005, 08:12:11 PM
Quote from: npereira on September 06, 2005, 02:48:42 PM
Hi all,

new to all this mambo and SMF, I have a running site already but SMF is not intergrated to Mambo as i've been unable to make this work (the login in mambo login in SMF).

Anyway, i've been looking at this SSI.php and the SHTML and there is a load of stuff I could do with that. Problem is I dont know how to do this. I want to use one of the SSI statement "Top Boards Function: <?php ssi_topBoards(); ?>" and have that information posted in a side user menu of Mambo.

Does anyone know what I need to do? and how to add this to a user menu?

Thanks


Comming back to this original post, i cant seem to figure out what needs to be in the php file to include whatever SSI I want....
Need some examples...
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: xenovanis on September 08, 2005, 04:21:39 PM
Did you try to install the module I attached on the previous page? It displays the topboards..
Title: Re: SMF using SSI or shtml to output to Mambo site...?
Post by: npereira on September 08, 2005, 08:43:03 PM
yes, but it isnt just the SSI statement, there's a bunch of other php stuff in there that I have no clue about.