Firefox PHP

Integrating Phorum with MWPSK

Posted by abpmer 
Integrating Phorum with MWPSK
July 01, 2010 07:20AM
Hi all,

I am trying to embed Phorum (fully intact) into a MWPSK (Microsoft (sorry) - free CMS ASP.NET solution). I am trying to offer the user one way into the Phorum environment (uses a simply styled template so it fits nicely inline) via an iframe (with js iframe resizing), and it works fine for normal registration/posting etc.

The headaches occur when email alerts go out (following topics, approving new users, activating account etc). The hyperlinked URL in the email goes to the relevant Phorum URL (e.g. site/phorum/login.php) - and is correct/works, but takes the user outside the preferred CMS forum URL (site/forum.aspx) and the expected main site look and navigation is lost.

Is there any way to mask the email hyperlinks, to get people to go to the main site? Maybe the forum page and params are attached as a variable string (e.g. site/forum.aspx?var=login.php%3F28 or site/forum.aspx?var=register.php%sF2,approve=b68b8ff78), I guess I can then at least strip the querystring out on the ASP.NET page and then dynamically add it to the iframe src element (which would be then something like site/phorum/ + login.php?28).

A bit round the houses I know, so if anyone has any thoughts they would be greatly appreciated - either where best to edit the generated email hyperlinks or suggest a better solution (apart from the obvious don't embed the forum in an iframe answer!)

Many thanks
Chris
Re: Integrating Phorum with MWPSK
July 05, 2010 11:23AM
Just an update, I realised that I didn't want a massive headache trying to 'integrate' Phorum (and have additional upgrade hurdles), so have just skinned it to look like the main website and provided a prominent Back to website link. Simple solutions are just the ticket sometimes!! :)
Chris
Re: Integrating Phorum with MWPSK
July 05, 2010 01:10PM
Thanks for reporting back and good choice for integration. It really is the best way for skin-only integration. I had read your post a few times already, but near to the end, I developed a massive headache as well ;-)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Integrating Phorum with MWPSK
July 06, 2010 03:37AM
May I also just say thanks to the Phorum Team for producing something that works out of the box and is pretty easy to skin (admittedly I have a bit of CSS knowhow ;o) to help things along!). Have used it for years on an intranet, and turning on all the bells and whistles for an external 'proper' forum has been pretty straightforward to do. Only had one issue - .htaccess files and IISPassword - what a kerfuffle that was (caused all sorts of security funnies, I just removed the .htaccess files for my IIS installation of Phorum (they only work if running Apache anyway))!

Thanks again for the good work.
Chris
Re: Integrating Phorum with MWPSK
July 06, 2010 01:52PM
Yes, you may ;-) Thank you for the friendly words of thanks and for the info about IISPassword. We'll keep that in mind.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login