Joomla Forum

Joomla Hacks => Joomla-SMF 2.0.x => Topic started by: Cuba_Libre on April 04, 2008, 10:34:29 AM



Title: Parameter question for SMF Bridge 2.0.2.1
Post by: Cuba_Libre on April 04, 2008, 10:34:29 AM
Dear Users,

in an unbridged Version of the SMF-Forum, when a guest click on a for him not readable post he get the standard page with the text defined on the "login.template.php":

"please login or register"....

The Url on the top of the browser looks like this:

http://www.mydomain.de/forum/index.php?topic=566.0

The same case on the bridged version the url looks in each post like this:

http://www.mydomain.de/index.php?option=com_smf&Itemid=26&

How can I get the parameters (topic-id) in the url of the bridged version?

Anyone can help me? Thank you so much for your efforts.


Title: Re: Parameter question for SMF Bridge 2.0.2.1
Post by: locutus on April 07, 2008, 02:13:49 AM
If you turn on SEF in Joomla, you get the topic-id in the URL. What do you want to do with that?


Title: Re: Parameter question for SMF Bridge 2.0.2.1
Post by: Cuba_Libre on April 07, 2008, 01:17:32 PM
Hi Locutus,

thank you very much for your response.

Hmm..to be honest I don't want to turn on the SEF Feature in Joomla...

Is there an other way to get the missing variable on the "error page"  ???


Quote
What do you want to do with that?

I need the topic id in the url to start a small feature on the error page...

Best regards,

Cuba


Title: Re: Parameter question for SMF Bridge 2.0.2.1
Post by: Cuba_Libre on April 11, 2008, 03:20:36 PM
no one can help me?

I only need the missing topic-id on the kick_guest site template ;)


Title: Re: Parameter question for SMF Bridge 2.0.2.1
Post by: Cuba_Libre on April 12, 2008, 12:58:45 PM
Sorry for the tripple post - I think I've found the part in the smf.class.php in the component directory that cuts the topic id...

function integrateExit($param)
{
    global $context, $txt;
    global $jsmfConfig;
    $jsmf =& jsmfFrontend::singleton();
    if (isset($context['login_error'])) {
        if (strcasecmp($context['login_error'], $txt[40]) == 0 ||
            strpos($context['login_error'], 'action=activate;sa=resend;') !== false) {
            $jsmf->doLogin(false);
        }
    }

    if (defined('_VALID_MOS') && isset($context['sub_template']) &&
               (strcasecmp($context['sub_template'], "kick_guest") == 0 ||
                strcasecmp($context['sub_template'], "fatal_error") == 0)) {
        $_SESSION['MH_WARNING'] = ob_get_contents();
        ob_end_clean();
        header('Location: '.str_replace(array('&'), array('&'), $jsmf->fixLink()));
        exit();
    } else {
        return;
    }
}

 ??? ??? Please help me


Title: Re: Parameter question for SMF Bridge 2.0.2.1
Post by: Superdaantje on April 19, 2008, 04:04:01 PM
This is possible with Mambo and the SMF bridge ;)


Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com