I need help - redirection when redirection is not wanted.

markham

  • Finally finished the Slideshow... phew!
  • Posts: 138
I need help - redirection when redirection is not wanted.
« on April 3rd, 2012, 10:59 AM »
I have just installed a quiz mod onto my SMF 2.0.2 site which, incidentally, has a Portal (Adk-Portal). The mod installed perfectly and all the Admin functions work a treat. However, when it comes to participating in a quiz, the (javascript) QuizClient  is being returned the site's home page rather than the XML data it was expecting.

If I mimic the very first call made by the client by entering
Code: [Select]
http://<sitename>.com/forum/Sources/SMFQuizStart.php?id_quiz=1"
into my browser's address bar, the browser navigates to "http://<sitename>.com/forum/" (as shown in the address bar) and the Forum's Portal page is displayed. In other words, something is forcing the Forum's index.php to be executed rather than Sources/SMFQuizStart.php.

Any ideas why this might be happening - and (better :)) how to fix it? Unfortunately the Mod's author has deserted the modification and taken his support site down - on which he did address this very problem, judging from the relevant SMF Community thread.

I'd really appreciate help with this problem :)


Mark

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: I need help - redirection when redirection is not wanted.
« Reply #1, on April 3rd, 2012, 12:30 PM »
I doubt anyone here can help. None of the coders here, AFAIK, have used the quiz mod, and with all honesty, even fewer of us 1) have the time to go through an SMF mod to figure out why it's broken and 2) actually care about SMF mods when we'd rather spend the time creating a Wedge plugin to replace it anyway.

Sorry, but that's how I see it.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

markham

  • Finally finished the Slideshow... phew!
  • Posts: 138
Re: I need help - redirection when redirection is not wanted.
« Reply #2, on April 3rd, 2012, 01:09 PM »
Quote from Arantor on April 3rd, 2012, 12:30 PM
I doubt anyone here can help. None of the coders here, AFAIK, have used the quiz mod, and with all honesty, even fewer of us 1) have the time to go through an SMF mod to figure out why it's broken and 2) actually care about SMF mods when we'd rather spend the time creating a Wedge plugin to replace it anyway.

Sorry, but that's how I see it.
I take your points and understand completely. I simply posted in the off-chance that a similar problem of unwanted redirection had crossed anyone's path here.

A new chap has taken over the Mod and PM'd me a suggestion - a one line fix - which actually did completely cure the problem without having any detrimental effect.

If you're curious ...
(click to show/hide)
The Portal (Adk-Portal) inserts the following two lines into SSI.php immediately after loadPermissions()
Code: [Select]
//Adk Stand Alone mod??? Yeah nose true
adk_standAloneMode(true);
and the fix is quite simply to comment that instruction out.

Mark