News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Quiz

Started by Diego Andrés, February 18, 2009, 01:08:19 PM

Previous topic - Next topic

mageguild

Quote from: emanuele on June 09, 2012, 11:42:38 AM
@mageguild: I logged in but I can't see where the quizzes are...

@crustybum: as far as I can tell there are several variants of this bug, one should be addressed by the file I uploaded a while ago, but that I realized now I removed and I don't know where I put...

I removed the link from the menu as they are not working.  You can access them here:  http://www.tennis-chat.com/SMFQuiz

emanuele

It seems you are using prettyURL (or equivalent), that could be one of the problems, because I get:
QuoteThe requested file was not found on the server. This could be because it was deleted or it never existed in the first place. Often caused by misspellings of URLs.

Page Not Found
Requested URL: http://www.tennis-chat.com/SMFQuiz&sa=quizleagues&id=1
IIRC you can disable prettyURL by action, I'd suggest you to disable it for SMF Quiz.

ETA: apart from that, I got the error (you have already played...) the first time I accessed the league, but after that I didn't get it any more... :(


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

mageguild

Quote from: emanuele on June 10, 2012, 05:00:14 AM
It seems you are using prettyURL (or equivalent), that could be one of the problems, because I get:
QuoteThe requested file was not found on the server. This could be because it was deleted or it never existed in the first place. Often caused by misspellings of URLs.

Page Not Found
Requested URL: http://www.tennis-chat.com/SMFQuiz&sa=quizleagues&id=1
IIRC you can disable prettyURL by action, I'd suggest you to disable it for SMF Quiz.

ETA: apart from that, I got the error (you have already played...) the first time I accessed the league, but after that I didn't get it any more... :(

Thanks for looking into this.  I am using a premium MOD for the URL structure which might be what is causing the issues.  The URL that you posted, if you change the & to a / it works fine (http://www.tennis-chat.com/SMFQuiz/sa=quizleagues&id=1). 

I will raise this issue with the person who built the mod I am running. 

Thanks again. 

emanuele

Quote from: mageguild on June 10, 2012, 05:37:48 AM
Thanks for looking into this.  I am using a premium MOD for the URL structure which might be what is causing the issues.  The URL that you posted, if you change the & to a / it works fine (http://www.tennis-chat.com/SMFQuiz/sa=quizleagues&id=1).
Yep, I did that to go to the league, but then I got the error the first time I tried to play, but after that I was presented with the quiz screen, but empty.

To all those having the "already played" problem, please try the attached file and let me know if it works.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

crustybum

Cheers Emanuele,  will give this a try tomorrow and let you know how i get on. ;)

Chris

mageguild

Quote from: emanuele on June 10, 2012, 06:53:32 AM
Quote from: mageguild on June 10, 2012, 05:37:48 AM
Thanks for looking into this.  I am using a premium MOD for the URL structure which might be what is causing the issues.  The URL that you posted, if you change the & to a / it works fine (http://www.tennis-chat.com/SMFQuiz/sa=quizleagues&id=1).
Yep, I did that to go to the league, but then I got the error the first time I tried to play, but after that I was presented with the quiz screen, but empty.

To all those having the "already played" problem, please try the attached file and let me know if it works.

I have spoken with the author of the MOD that I use for the Pretty URLs.  They say that the issue being used here is the way URL's are being generated by this MOD.  The problem being that the MOD uses ampersands and not the SMF standard, semicolon.

Arantor

Using &id= will cause a lot of other problems anyway with users who have mod_security installed. Ideally the mod should be reworked to not use id= in any fashion, but yes, it should be converted to using SMF's standard ; instead.

fiesty

having used the smf quiz in an previous forum i had, i downloaded the new version of the quiz, to our current forum,
but when it came to installing it, i got an "error in package installation" which gave this error ,

   1.    Execute Modification    ./Sources/Who.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
*    4.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
*    5.    Execute Modification    ./index.php    Test successful
*    6.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add After    ./Sources/Subs.php    Test failed

      2.    Add After    ./Sources/Subs.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
*    8.    Execute Modification    ./Sources/ScheduledTasks.php    Test successful
*    9.    Execute Modification    ./Themes/default/languages/ManageScheduledTasks.english.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    11.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
*    12.    Execute Modification    ./Themes/default/css/index.css    Test successful


as can be seen from the above, it is something related to  /sources/subs.php
is this an easy fix (bearing in mind that my knowledge of this sort of stuff is minimal, to say the least!) or will it consist of a lot af alteration etc ?


the forum is running smf2.0.2 with simple portal 2.3.4 and around 20 other mods installed (any of which coul be causing a conflict ?)

any help much appreciated with this,

thanks,
fiesty

Dave J

Quote from: fiesty on June 10, 2012, 01:03:07 PM
having used the smf quiz in an previous forum i had, i downloaded the new version of the quiz, to our current forum,
but when it came to installing it, i got an "error in package installation" which gave this error ,

   1.    Execute Modification    ./Sources/Who.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
*    4.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
*    5.    Execute Modification    ./index.php    Test successful
*    6.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add After    ./Sources/Subs.php    Test failed

      2.    Add After    ./Sources/Subs.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
*    8.    Execute Modification    ./Sources/ScheduledTasks.php    Test successful
*    9.    Execute Modification    ./Themes/default/languages/ManageScheduledTasks.english.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    11.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
*    12.    Execute Modification    ./Themes/default/css/index.css    Test successful


as can be seen from the above, it is something related to  /sources/subs.php
is this an easy fix (bearing in mind that my knowledge of this sort of stuff is minimal, to say the least!) or will it consist of a lot af alteration etc ?


the forum is running smf2.0.2 with simple portal 2.3.4 and around 20 other mods installed (any of which coul be causing a conflict ?)

any help much appreciated with this,

thanks,
fiesty

Hi it's possible that one of the other mods you have installed has put code in the same place that this mod needs to.

You will need to edit those files manuallyto install this mod.

fiesty



Hi it's possible that one of the other mods you have installed has put code in the same place that this mod needs to.

You will need to edit those files manuallyto install this mod.
[/quote]

Thanks for the reply,
i thought that might be the case, which is where the difficulties begin for me,
after looking at the sources/subs.php file i cannot even begin to see how and what needs changing there ?
what should i be looking for in that file that needs changing, and to change it to what ?

as i said my knowledge in this area is not at all good ::)

Fiesty

emanuele

Quote from: Arantor on June 10, 2012, 12:43:39 PM
Using &id= will cause a lot of other problems anyway with users who have mod_security installed. Ideally the mod should be reworked to not use id= in any fashion, but yes, it should be converted to using SMF's standard ; instead.
It's in the todo list (or at least I think it is)...though it's a bit long... :P

Quote from: fiesty on June 10, 2012, 02:52:20 PM
after looking at the sources/subs.php file i cannot even begin to see how and what needs changing there ?
what should i be looking for in that file that needs changing, and to change it to what ?
If you click on the small icon on the right next to the line where it says "test failed", SMF will show you the modification that fails.
Most likely you will have to search a shorter piece of text and than apply the change/s.

Otherwise try attach the file to a post here and someone will do the edits for sure. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

lttung

I have so many question from Word file (.doc), how to convert to XLM an import toQuiz ?

crustybum

Quote from: crustybum on June 10, 2012, 11:54:15 AM
Cheers Emanuele,  will give this a try tomorrow and let you know how i get on. ;)

Chris

Still didnt work....

emanuele

Could you provide an account? (user is enough)

@lttung unfortunately as far as I know there is no easy way...just the long one of typing all the questions.
The alternative would be to try to import the questions directly into the db.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

fiesty

quiz now up and running thanks to the help from davejo & emanuele
the tip from emanuele being very helpfull re the small icon providing the clue as to which bit to edit  :D

which after a couple of small bloopers on my part (adding the extra code after () characters instead of before :-[) did the trick,

so many thanks to both for taking the time to put me on the right track,
its much appreciated  :D

fiesty.

Dave J

glad to hear you got it working ok   :)

GlitchPC

Anyone???


xxxx://xxxxxxxx.xxx/index.php?action=profile
8: Undefined index: SMFQuiz_Common
File: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/Who.php
Line: 389

Here's that line of code...
$data[$k] = $txt['SMFQuiz_Common']['InThe'] . ' <a href="' . $scripturl . '?action=SMFQuiz;">' . $txt['SMFQuiz_Common']['Quiz'] . '</a>';

emanuele

Most likely nobody ever looked at the credits... :P

In Who.php you can find:
// SMFQuiz start
global $settings, $scripturl;
// SMFQuiz end


change it to:
// SMFQuiz start
global $settings, $scripturl;
loadLanguage('SMFQuizCommon');
// SMFQuiz end


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

GlitchPC


lifeguard81

Somebody has the dutch language?
www.doenwenu.nl
Excuse me for my english. i am from holland :)

Advertisement: