WordPress.org

Support

Support » Plugins and Hacks » smf integration on a page

smf integration on a page

  • Hi,

    I am using smf forums on my site. I have been succesful in using some of the plug-ins posted here to integrate smf into wordpress. Now I am trying to find out if I can integrate smf front page as a wp page? Right now I am using ‘iframe’ to display forum front page. So basically, the forums should show up as one of the content pages of the site- so the header etc. is preserved.

    Thanks in advance for all your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Yes! I actually just found this code last night, so it’s not “finessed” yet, but it’s up, and it works as intended.

    http://tx-coffee.com/

    Click the “Forums” page.

    The code looks like this:
    <iframe style="width:900px; height:2250px;" frameborder="0" name="content" allowtransparency="true" src="/forum"></iframe>

    You can align it left, right, center, or whatever just using <p align="">.

    Just change the src=”/forum” to whatever directory your forums are in.
    Simple.

    I had edited the index.template.php for SMF so the header was completely missing (and I loved it), but at some point I screwed things up, and had to start from scratch via the SMF Upgrade 1.1.5, but the Database was still intact so it was easy enough.

    Unfortunately, the .php files from the Upgrade package do not line up so neatly when opened in a text editor, and I haven’t taken the time to go through a mess of code again just yet.

    Did you get it to work?

    Thanks Jasonian- How did you add ‘iframe’ to the page ? The editor does not allow me to add ‘iframe’ attribute.

    You have to do it in the HTML editor, and not the wysiwyg editor, and you may have to install a plug-in called QuickPHP.

    http://www.chait.net/download.php?filename=cg-quickphp-08.zip

    (from http://www.chait.net/index.php?p=310 in case that link doesn’t work)

    You shouldn’t have to, but I already had it installed, so it’s a possibility if you tried with the HTML editor and didn’t get it to work.

    The trick is, once you have it entered on the page, you can’t go back to change it, or the code will “vanish”.

    So keep the code copied down somewhere in case you need to edit the page that it’s on later.

    I also edited the existing page template and made a new one specifically for that page so the right hand sidebar is not present (it was interfering with the forum). I may also get rid of the left sidebar to make it even easier to see, but I’m going to try some other things before I do that.

    OK- thanks. I am not able to disable visual editor for some reason- I’ll do some searching on forums to find out why.

    Hi
    Jasonian

    tnx for the iframe is exat wath i search but i have a problem witht the side of wordpress..

    please take a look

    http://www.magentocommerce.com.br/site/?page_id=3

    how i eliminate the side bar only for the SMF forum?

    how you say

    I also edited the existing page template and made a new one specifically for that page so the right hand sidebar is not present (it was interfering with the forum). I may also get rid of the left sidebar to make it even easier to see, but I’m going to try some other things before I do that.

    if is possible any help i apreciate
    Tnx

    Some themes have different page templates already built in, but most do not.

    You might have to do what I’ve done and create a new template for it. (which is easy enough. Just start with the existing page template, and delete the coding for the sidebar, or whatever it is you’d like to remove).

    Directions can be seen here: http://codex.wordpress.org/Pages#Page_Templates

    I was able to accomplish this by simply setting up a page template to display for the forum using iframe.

    I edited my page.php file, removing all of the code that calls and displays page content, and replacing it with the iframe statement. I left the div I used to enclose the text content in place, but changed the it’s id to “forum,” then added the id to my style.css file, with width=100% specified. I then removed the calls for sidebars, so the forum would span the entire content area of the page.

    I also changed the width in the iframe style to 100%, so the iframe would span the whole text area as well.

    It worked perfectly.

    I wanted to keep the user registration separate, because the “blog” portion of the site is used managed as website, and doesn’t allow comments and user registration, anyway.

    So, with my setup, a page template that displays the forum using the iframe tag and a small addition to my style.css file were all that was needed. No plugin’s of any kind required.

    pleuriticus,

    Can we see a link to this forum to see how this works out?

    I think I can imagine it, but I’d rather not screw with the code before seeing it in action first.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘smf integration on a page’ is closed to new replies.