News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF using SSI or shtml to output to Mambo site...?

Started by npereira, September 06, 2005, 02:48:42 PM

Previous topic - Next topic

npereira

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

xenovanis

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.
"Insanity: doing the same thing over and over again and expecting different results."

npereira

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.

xenovanis

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 board though..
"Insanity: doing the same thing over and over again and expecting different results."

npereira

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

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

npereira


npereira

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.

xenovanis

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.
"Insanity: doing the same thing over and over again and expecting different results."

npereira

DAMN !  Looks like it's working now !

Although, 1 litle issue, the css the wrapped in forum seems to be using is wrong...?!?

xenovanis

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.
"Insanity: doing the same thing over and over again and expecting different results."

npereira

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....

xenovanis

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
"Insanity: doing the same thing over and over again and expecting different results."

npereira

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

xenovanis

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.
"Insanity: doing the same thing over and over again and expecting different results."

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

xenovanis

#16
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
"Insanity: doing the same thing over and over again and expecting different results."

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

xenovanis

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.
"Insanity: doing the same thing over and over again and expecting different results."

Kindred

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...

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: