Topic: Integrating SMF without modx intergration  (Read 479 times)

Pages: [1]   Go Down

#1: 17-Nov-2009, 11:01 AM


Frank
Posts: 518

WWW
Hi all,

probably no need for this topic, but I thought I d share anyway as the bridging seems to be hard with the newer releases of modx and SMF. So no user sync in this solution, sorry.

  • Install SMF
  • Choose an SMF template and install
  • Download the languages and the packs you need
  • Make copys off your style CSS files and copy them in some other directory. Because you might need to alter the slightly
  • Make a copy of the theme you choose in the SMF theme administration
  • Once ready and sure you are fine with that setup, export your site as static HTML
  • Open from the theme you choose with FTP, the index.template.php
  • Open one of the exported pages (the export is to have the your menu etc. in the forum page too)
  • Copy the paths (you probably need to adapt them) to your CSS files and javascripts etc just above the body tag in the index.template.php file
  • copy the possible wrappers/ containers up to the content div that will hold the forum just below the body tag
  • Copy the closing div s and the footer just above the closing body tag, done

So copy paths and head stuff you need there between

Code:
// ]]></script>';

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo ' HERE YOUR CODE </head>
<body>';

Copy wrappers container and menu stuff between as last there should be the div you want the forum in.

Code:
</head><body>HERE YOUR CODE ';

And all the closing div s or footer here

Code:
echo !empty($settings['forum_width']) ? '
</div>' : '', '

HERE YOUR CODE
 
</body></html>';

Now I know it is not a good solution, because if you change the layout of the forum, you will need to applie this again.
But good thing is if you backup your index.template.php file you can jus copy it over FTP to the folder of the theme you have changed to.
Also if you updated the modx menu, you will need to export static pages again and update the index.template.php file.

Best, Frank.

NB I had "foto's" in my menu and FTP gave an error, changing to fotoos made it all run. Also I had some h2 stuff declared in my css and that clashed with the SMF h2, took m out of my css
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.