Documentation

Light-weight, fast, simple and powerful!
Translations of this page?:

Introduction

There are two main levels of integration:

1. You want to integrate purely on a look-and-feel basis. (and get something looking like what we have here)

2. You not only want to integrate look-and-feel, but you also want to integrate the login/logout system and (as such) achieve single sign on.

Integrating PunBB on a look-and-feel basis

  1. Install punBB in a subdirectory: we'll assume you use “forum”
  2. Go to the template directory: forum/include/template
  3. Edit main.tpl
  4. Just below the <body> tag, add the following:
    <!-- forum_include "wolfcms-header.php" -->
  5. Just above the </body> tag, add the following:
    <!-- forum_include "wolfcms-footer.php" -->
  6. Save the file
  7. Go to the user directory: forum/include/user
  8. Create a file called: wolfcms-header.php
  9. Add the following code:
    <?php
        $url = 'http://www.yoursite.here/wikiforumheader.html';
        echo file_get_contents($url);
    ?>
  10. Save the file.
  11. Create a file called: wolfcms-footer.php
  12. Add the following code:
    <?php
        $url = 'http://www.yoursite.here/wikiforumfooter.html';
        echo file_get_contents($url);
    ?>
  13. Save the file.
  14. Go to your Wolf CMS admin area and login as administrator.
  15. Create a new layout: “footer”
  16. Add just your footer code to the footer layout
  17. Create a new layout: “header”
  18. Add just your header code to the footer header
  19. Create a new page “wikiheader”
  20. Set its layout to “header”
  21. Set its status to “hidden” and save
  22. Create a new page “wikifooter”
  23. Set its layout to “footer”
  24. Set its status to “hidden” and save

That should be it… if you now go to http://www.yoursite.here/forum you *should* see your forum with the header and footer from your site… From there, just tweak the forum's CSS code a bit.

 
howto/integrate_other_software_into_wolf_cms.txt · Last modified: 2011-09-12 00:46 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside