Mambo MOS + SMF Poll integration

Started by marcnyc, November 19, 2004, 11:29:25 AM

Previous topic - Next topic

marcnyc

Hi I was wondering if there are any news about the integration of polls between SMF and MOS and if they are not integrated yet, which one is best to use?
Thanks

Chris G.

Well, MOS does include it as its own separate module, if I recall correctly, and displays it prominently.

marcnyc

What are you saying?
Is there a way to integrate the polls in SMF with polls in MOS?

Chris G.

I was saying (and I'm sorry for any confusion) that the MOS poll could be better because it is a separate module.

And for your second question, not that I know of.

Orstio

I suggest the Mambo PollsXT module.  It has a lot of great features, and SMF will not interfere with it.

marcnyc

Unless I am wrong SMF will not interfere with the regular MOS polls either (right? or am I mistaken?), but if you ever have time, it would be great if you wanted to develop a bridge to integrate polls between MOS and SMF

hakmed

Not sure if anyone came up for a solution for this, (since my polls weren't working in my MOS/SMF integration) but for anybody w/ the same problem, I came up w/ a couple lines of code to patch the solution.

Issue: SMF names its poll options simpy "option[]".  Unfortunately, this interferes w/ mambo option argument passed in the URL.

Solution: Edit the main index.php file (/www path to mos/index.php) and add these lines between "$acl = new gacl_api();" and "if ($option == '') {":


// mambo smf collision
$patch_qs = preg_replace("/\?/", "", $_SERVER['QUERY_STRING']);
$switch_opt = array();
foreach (explode('&', $patch_qs) as $args) {
        list ($k, $v) = explode('=', $args);
        $switch_opt[$k] = $v;
}
// poll collision
if ($switch_opt['option']=='com_smf' && $switch_opt['action']=='vote;topic')
        $option = 'com_smf';

Orstio

It is fixed in the final release of SMF.  ;)

idigital

Darn hakmed, that is a nice fix though!  :D

I hacked the SMF core instead, with help from Orstio and [Unknown], to get polls working on Reviewgamer ;)

Ah, I likes hacking anyways  8)

Very nice fix!

* idigital wonders when SMF final will be released?

I still have to go through and fix some pages that redirect to SMF errors, they make the forum pop out of the mambo template, nasty.

Cheers,

Damian

[Unknown]

Quote from: idigital on December 22, 2004, 09:34:09 PM
I still have to go through and fix some pages that redirect to SMF errors, they make the forum pop out of the mambo template, nasty.

I can show you how to fix this one too... but it requires modifications to SMF and Mambo.

-[Unknown]

Advertisement: