Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: tkn0spdr on April 05, 2007, 03:41:40 PM

Title: Drupal/SMF bridge question
Post by: tkn0spdr on April 05, 2007, 03:41:40 PM
I've installed the smfforum mod on my Drupal testing site and it works great. There's one small problem that I'd like to overcome though and I was hoping that someone here might have a solution.

What I've done to further integrate SMF with Drupal is to put the forum in an iframe so that you don't loose the look and feel of the Drupal site when you go to the forum. That works fine.

However, the mod comes with blocks that I really find useful for showing latest posts and such, but when you click the links in them they go directly to the SMF forum. I know this is the correct behavior and it's not a bug. But I'd still like to see if it can be altered so that those links somehow redirect to the page within the iframe.

I know that what complicates things is that the URL doesn't change while you're browsing the forum via the iframe, so I'm at a loss on how to tackle the problem.

Any ideas?

Thanks,
David
http://www.FloridaPets.org
Title: Re: Drupal/SMF bridge question
Post by: roxpace on May 02, 2007, 11:10:17 AM
Use SMFforum module for bridging to Drupal, it even have a solution for inline frame as you request.

Even if it has been proven to be very safe for me I suggest you do a complete database backup of your Drupal and SMF database before you starts using this.

Project page:
http://drupal.org/project/smfforum (http://drupal.org/project/smfforum)

Download page:
http://vgb.org.ru/download (http://vgb.org.ru/download)

Do NOT forget to download smf_api_2.zip from that page

SMF inside iframe within Drupal:
http://vgb.org.ru/node/13 (http://vgb.org.ru/node/13)

Example of SMF (standard template) inside iframe within Drupal:
http://vgb.org.ru/smfforum (http://vgb.org.ru/smfforum)