News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

insert quote form topic summary with redirect don't work

Started by dafebe, December 10, 2007, 07:06:35 AM

Previous topic - Next topic

dafebe

Hi i have thsi problem
[nofollow]

This inser quote don' work

I have use redirect code

// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false &&
    strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=post2') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=spellcheck') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=splittopics') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=stats') === false)
{
    if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=18&".$_SERVER['QUERY_STRING']); }
}


I usethis [nofollow] code because few other pieces of the forum that also require the change.

Can anyone help me?
How I can fix it?

Best regards

dafebe

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dafebe

tnx but now I don't use JH bridge I use Orstio bridge.

And I came here for support.
this is right?

Tnx for all

Can anyone help me?
How I can fix it?

Best regards

dafebe

Kindred

Well, you did not specify your versions and you quoted code that the JH bridge uses... and that code was intended for use with the joomlahacks bridge.

Mixing and matching is going to cause you errors.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dafebe

sorry I'm n00b  :(
my joomla is 1.1.13
my smf 1.1.4
my bridge 1.1.7
All is on php 4 and mysql 4 on easyphp

but my code is extension of your code?
your code
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false &&
strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']); }
}

my code
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false &&
    strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=post2') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=spellcheck') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=splittopics') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=stats') === false)
{
    if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=18&".$_SERVER['QUERY_STRING']); }
}


my insert quote from topic summary don't work.
TNX for your help
Best Regards

dafebe

Kindred

but why would you need all those other action checks?   I have never had them in place for Orstio's bridge and my SMF has always worked correctly for all those actions.

My first suggestion would be to remove ANY modifications you made base don the Joomlahacks bridge and then retest.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dafebe

Quotebut why would you need all those other action checks?

I have understand that I don't put it on mycode... Ihave put it because I'm e N00b sorry  :'(

ok thanks I try it but I don't have anyone modification.
I make a new install of joomla
best regards

Orstio

Have you previously had the joomlahacks integration installed?

You are aware that integration does make changes to your SMF files that might cause you to have to add the rest of that code, and will certainly cause problems with bridge 1.1.7?


dafebe

Quote from: Orstio on December 10, 2007, 07:12:26 PM
Have you previously had the joomlahacks integration installed?

yes I have :(

Quote from: Orstio on December 10, 2007, 07:12:26 PM
You are aware that integration does make changes to your SMF files that might cause you to have to add the rest of that code, and will certainly cause problems with bridge 1.1.7?

Now I'm aware tnx

Advertisement: