It is currently Fri Sep 03, 2010 12:49
  • View your posts
  • FAQ
  • Register
  • Login

  • All times are UTC + 1 hour [ DST ]



    Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next
    Author Message
     Post subject: [Howto] SMF Forums as killboard page (no longer as a mod)
    PostPosted: Fri Jul 11, 2008 04:37 
    Offline
     E-mail  Profile

    Joined: Thu Jul 10, 2008 08:39
    Posts: 15
    Ok so, if you read the old version of this page you either laughed then or will laugh now. I learned a little php and somehow seemed to forget everything I knew about html. Or at least the hypertext part of it, heh... so here is a method to insert SMF as a page.. Its not terribly pretty but it works.. Also you might note I'm using SMF 2.0 beta, so where in the index.php might be different. Just make sure all the loadXXX(); statements are done and pray if you older version is different :)

    Change directories as you see fit....

    1) Install eve dev to /kb
    2) Install smf forums to /forums
    3) Configure KB to your style, since we aren't using a mod the forum page wont dynamically change but there will be some accidental cross styling; play with it.
    5) Using your browser, open your killboards main site, and 'View Source' on your browser
    6) Copy everything above the </table> that ends <table class="navigation" width="100%" height="25" border="0" cellspacing="1"> (including obviously the </table> line) and paste it into your favorite text editor.
    7) Search and replace all " with ' (double quotes need to be single for php). Then add echo " before it all, and "; after it all.
    8) In SMF's index.php, paste the contents into the source after the section reading:

    Code:
    // Check if compressed output is enabled, supported, and not already being done.
    if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
    {
       // If zlib is being used, turn off output compression.
       if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION, '4.2.0') == -1)
          $modSettings['enableCompressedOutput'] = '0';
       else
          ob_start('ob_gzhandler');
    }


    9) Change all the ?a=site refferences to ../kb/index.php?a=site in the smf index.php so the links work

    You now have visually integrated forums! Haven't tested much, but at least we dont have to deal with slow arse iframes now...

    Styling is a bit of a headache you'll find, as SMF's style overrides EDK's, As an experiment I pasted the contents from the EDK file to the end of the SMF style.css, and its an improvement but still very flawed. If you use this method and get a nice style, be a pal and post it for the masses (and me!).. Any problems feel free to ask..

    Thanks pdawg81 for re-enforcing the iframes suck and are slow line of reasoning... as for inserting eve-dev into smf, your on your own, because I think this looks nicer this way and I dont know jack about xml, heh

    - Mugen

    P.S. Don't read the following line: :roll:


    Last edited by Mugen on Tue Aug 05, 2008 13:57, edited 7 times in total.

    Top
     
     Post subject: Re: [MOD][Beta] Forums or page as killboard page using iframes
    PostPosted: Fri Jul 11, 2008 18:50 
    Offline
     Profile

    Joined: Sat Jun 14, 2008 20:24
    Posts: 167
    nice idea..

    i tried something with iframes.. but in the end, decided not to use it because it will load pages a lil slower... (used a cms)

    http://3rd-echelon.com/


    Top
     
     Post subject: Re: [MOD][Beta] Forums or page as killboard page using iframes
    PostPosted: Mon Jul 14, 2008 00:05 
    Offline
     E-mail  Profile

    Joined: Thu Jul 10, 2008 08:39
    Posts: 15
    Heh you know if it didnt feel so much like quitting I'd do it your way.. its certainly easier to insert the KB into something else the something into the KB... Is that the cms thats called just CMS? I looked into e107 once and didnt like what I saw, heh...


    Top
     
     Post subject: Re: [MOD][Beta] Forums or page as killboard page using iframes
    PostPosted: Mon Jul 14, 2008 01:59 
    Offline
     Profile

    Joined: Sat Jun 14, 2008 20:24
    Posts: 167
    im using joomla.

    a friend of mine, has his own CMS that he created, its called Ananta: http://www.anantasoft.com/ I was going to use his, and asked him to create an iframe mod for it. He did, but i havent had time to test it out yet....


    Top
     
     Post subject: Re: [MOD][Beta] Forums or page as killboard page using iframes
    PostPosted: Sun Jul 27, 2008 06:00 
    Offline
     E-mail  Profile

    Joined: Sat Jun 14, 2008 20:24
    Posts: 40
    interested in seeing were this is going seems like a nice idea....though i was wondering if any of you awesome coders would know how to do it the other way.....as in taking a SMF board for instance and creating a hack for that that would be like an eve dev killboard hack/mod what ever you call it so that you could just click a link on the top named killboard and your killboard was nested below, with out the normal eve dev killboard header of course, but instead just the info below it from the navigation on down.

    any takers on that one.

    though keep up the work on this project you got going id like to try it out if you can find a way to make it a bit cleaner and possibly without the iframes......


    Top
     
     Post subject: Re: [MOD][Beta] Forums or page as killboard page using iframes
    PostPosted: Wed Jul 30, 2008 06:13 
    Offline
     E-mail  Profile

    Joined: Sat Jun 14, 2008 20:24
    Posts: 40
    using it now did a few changes, to make it a bit cleaner especially with the forum temp i used, though very easy to costumize to fit your page with all those added commented out settings you had.....one thing i use firefox, but viewing it in IE the login register table is showing and stretching the whole page......wondering if anyone knew how to disable the login appearing on the right side of the page if your accesing that mod.

    http://modro.110mb.com/?a=forum view in both firefox and IE to see what i mean thanks


    Top
     
     Post subject: Re: [MOD][Beta] Forums or page as killboard page using iframes
    PostPosted: Sat Aug 02, 2008 13:00 
    Offline
     E-mail  Profile

    Joined: Thu Jul 10, 2008 08:39
    Posts: 15
    I'm still pretty new to php and agree, the iframes have to go. I just cant figure out how. I've thought about having SMF be the parent and edk be the child, either way looks like I'm going to have to learn how the hell both are abstracting away the html. Which means ajax I guess.. Recently I've been looking into how themes for SMF are put together, and I'd like to know which your using on that site. I'm currently thinking that if I can strip down the theme enough (or use CSS overides) I could simply 'include' smf, which would be great.

    If anyone with php experience is reading this thread and laughing their behinds off at the idiocy of my method, please, for the love of god(s), point me in the right direction!

    Mugen :)


    Top
     
     Post subject: Re: [MOD][Howto] Forums or page as killboard page or mod.....
    PostPosted: Tue Aug 05, 2008 02:43 
    Offline
     E-mail  Profile

    Joined: Thu Jul 10, 2008 08:39
    Posts: 15
    <bump> forget the iframes, figured out a better way... having a refresh problem (it doesnt sometimes) but I'm working on it... (see original message)


    Top
     
     Post subject: Fixed!
    PostPosted: Tue Aug 05, 2008 13:50 
    Offline
     E-mail  Profile

    Joined: Thu Jul 10, 2008 08:39
    Posts: 15
    Fixed it! Edited original post to reflect change. Style still looks like crap, but its working well now.


    Top
     
     Post subject: Re: [Howto] SMF Forums as killboard page (no longer as a mod)
    PostPosted: Wed Aug 13, 2008 06:01 
    Offline
    User avatar
     WWW  Profile

    Joined: Sat Jun 14, 2008 20:24
    Posts: 32
    Location: Melbourne, Australia
    Can I ask what the exact results you are trying to get with a Killboard/SMF intergration?

    Is you want the Killboard to be the 'holder' of the style and SMF forum or the SMF forum to be the holder and have the killboard inside that forum.

    Also are you looking to bridge the user accounts across the two, so would have a single login?


    Top
     
    Display posts from previous:  Sort by  
    Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next

    All times are UTC + 1 hour [ DST ]


    Who is online

    Users browsing this forum: underwoodr and 1 guest


    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum

    Search for:
    Jump to:  
    Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
    Style Designed By phpBBegypt