Page Index Toggle Pages: 1 2 3 [4] 5 6  Send TopicPrint
Very Hot Topic (More than 25 Replies) Quiz v.96c for SP1.1, 1.2, 1.3 (Read 34305 times)
Leakest_Wink
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 24
Joined: May 14th, 2003
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #45 - Aug 14th, 2003 at 6:52pm
Print Post  
All the quizzes I've added are related to health & medicine but I'm now being asked about having other categories of interest so what's the possibility of having the facility to divide these into separate folders/boards instead of just one long list.

cheers
  
Back to top
 
IP Logged
 
comtrak
Junior Member
**
Offline



Posts: 50
Location: Raynham Center
Joined: Nov 23rd, 2002
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #46 - Aug 15th, 2003 at 10:35am
Print Post  
Quote:
I had Omaro modify it (quirex), to use the YaBB user ID's.  It's a nice little program... I'll post that code later.  You might want to take some of the ideas.  Here is a link to the operating program:
http://www.nukeworker.com/cgi-bin/test/doe/index.cgi


Could you post the version that uses Omario's modification to use the YaBB user ID's?  It would be greatly appreciated.
  
Back to top
 
IP Logged
 
Leakest_Wink
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 24
Joined: May 14th, 2003
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #47 - Aug 26th, 2003 at 1:33pm
Print Post  
Since I stopped doing things manually & installed the quiz mod the popularity of the quizzes have gone through the roof & probably because I now include them on any subject which makes my most wanted improvement now; the facility to divide the listings into category/subject folders.

I just wish I had time to learn Pearl so I could contribute instead of just feeding you all suggestions.

cheers for all you do!!
  
Back to top
 
IP Logged
 
GoCasey
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 40
Location: Tulsa OK
Joined: Mar 6th, 2003
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #48 - Aug 26th, 2003 at 8:01pm
Print Post  
OK, I installed the mod...but I see nothing about quizes anywhere on the board, with the exception of the admin menu...
  
Back to top
WWW  
IP Logged
 
GoCasey
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 40
Location: Tulsa OK
Joined: Mar 6th, 2003
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #49 - Aug 27th, 2003 at 6:29am
Print Post  
Nevermind.  I have the menuitems mod, and never thought to deactivate it and see if it was in the menu...and it is.  AWESOME Work!!
  
Back to top
WWW  
IP Logged
 
Leakest_Wink
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 24
Joined: May 14th, 2003
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #50 - Sep 9th, 2003 at 12:46am
Print Post  
Has anyone noticed that the sort list by date posted doesn't work properly

board=;action=quiz;sort=date

&

board=;action=quiz;sort=date;order=reverse
  
Back to top
 
IP Logged
 
Leakest_Wink
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 24
Joined: May 14th, 2003
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #51 - Sep 9th, 2003 at 8:50pm
Print Post  
Having just studied bits of perl yesterday & today I've realised one or two things, firstly I think I tracked down the sort by 'date posted' routine....

elsif($sortmode eq "date") {@sortlist = map {$_->[0]} sort{($a->[11])<=>($b->[11]) || uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..11] ] } (@tmplist);}

If I'm correct in saying: $quiztxt{'11'} = "Posted"; i.e. the date posted

and [0..11] is the part that sorts by month.

I've now realised the routine does sort correctly by month but then sorts by quiz name, therefore, the dates within a month are all mixed-up.

The bit I don't understand is what's the use of the [2] here?

$quiztxt{'2'} =  "Add a new Quiz";
$quiztxt{'7'} = "Quiz Name";

so where is the routine sorting by quiz name. The full routine seems to be:

     # Sort quizlist

     $sortmode = $INFO{'sort'};

     $sortorder = $INFO{'order'};



     if($sortmode eq "name") {@sortlist = map {$_->[0]} sort{uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..2] ] } (@tmplist);}

     elsif($sortmode eq "creator") {@sortlist = map {$_->[0]} sort{($b->[4])cmp($a->[4]) || uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..4] ] } (@tmplist);}

     elsif($sortmode eq "difficulty") {@sortlist = map {$_->[0]} sort{($b->[9])<=>($a->[9]) || uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..9] ] } (@tmplist);}

     elsif($sortmode eq "num") {@sortlist = map {$_->[0]} sort{($b->[10])<=>($a->[10]) || uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..10] ] } (@tmplist);}

     elsif($sortmode eq "times") {@sortlist = map {$_->[0]} sort{($b->[8])<=>($a->[8]) || uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..8] ] } (@tmplist);}

     elsif($sortmode eq "date") {@sortlist = map {$_->[0]} sort{($a->[11])<=>($b->[11]) || uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..11] ] } (@tmplist);}

     else {@sortlist = map {$_->[0]} sort{uc($a->[2]) cmp uc($b->[2])} map { [ $_, (split /\|/)[0..2] ] } (@tmplist);}



     if ($INFO{'order'} eq "reverse") {

           @sortlist = reverse @sortlist;

     } else {

           if ($sortmode eq "name") {$order_name = ";order=reverse";}

           elsif ($sortmode eq "creator") {$order_creator = ";order=reverse";}

           elsif ($sortmode eq "difficulty") {$order_difficulty = ";order=reverse";}

           elsif ($sortmode eq "num") {$order_num = ";order=reverse";}

           elsif ($sortmode eq "times") {$order_times = ";order=reverse";}

           elsif ($sortmode eq "date") {$order_date = ";order=reverse";}

     }

     

     if ($sortmode ne "") {$sortmode = ";sort=".$INFO{'sort'};}

     if ($sortorder ne "") {$sortorder = ";order=".$INFO{'order'};}
  
Back to top
 
IP Logged
 
Leakest_Wink
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 24
Joined: May 14th, 2003
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #52 - Sep 9th, 2003 at 10:34pm
Print Post  
thanks to BHRA Webmaster for this:

Quote:
If the date is stored as "Aug 8th, 2003, 8:38pm", then that is what it will sort (either alphabetically, or numerically!) If it sorts alphabetically, then "Aug 21st" will come between "Aug 12th" and "Aug 3rd"
 
What you need to do is to convert this date/time into a format which can be easily understood by the server, and is usually represented by the number of seconds elapsed since a fixed datum (usually 1st January 1970).
 
This is what is done by the mod prior to the line of code posted above which sorts this server time numerically (the sort{$a<=>$b} bit)


Although at the moment I've no idea how to do/write this.
  
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #53 - Sep 13th, 2003 at 2:08pm
Print Post  
I've installed the 0.96d version and it works great so far... cool mod!
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Kjetil M. Bergem
Guest


Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #54 - Sep 30th, 2003 at 3:11pm
Print Post  
I cannot get the files uploaded with the Boardmod program! I seem to be getting this error:

Quote:
Step 1 ... failed - ERR(1): Search string could not be found

Step 2 ... ok

Step 3 ... ok

Step 4 ... ok

Step 5 ... ok

Step 6 ... ok

Step 7 ... ok

Step 8 ... ok

Step 9 ... ok



> modifications failed! 1 errors occured. No files will be modified. Please see readme for help on the
error messages.



I do have the right version(SP1.3) and uploaded the right file. Any ideas what might be wrong? I'm using many other mods. Maybe some of the affects this mod?

Thanks.

  
Back to top
 
IP Logged
 
DocRST
God Member
*****
Offline


Dont get use to it!

Posts: 1846
Location: Oklahoma City
Joined: Aug 24th, 2002
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #55 - Sep 30th, 2003 at 3:36pm
Print Post  
Its looking in SubList.pl for:
'usersrecentposts',"Profile.pl&usersrecentposts";

It could have been changed by another mod, search for :
Profile.pl&usersrecentposts

and see what is diff from:
'usersrecentposts',"Profile.pl&usersrecentposts";

Back up your Files, Then You can edit the mod to what has changed in your SubList.pl and run the mod again, or do it all by hand.
  

Doc Cowles
Web Master
YourWebSpace.com  -  Free YaBB hosting
docrst@yahoo.com
Back to top
IP Logged
 
Kjetil M. Bergem
Guest


Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #56 - Sep 30th, 2003 at 7:55pm
Print Post  
I searched the file and found the line. The exactly same line. But look here:

Quote:
'usersrecentposts',"Profile.pl&usersrecentposts");


notice the ) ?

It closes hash. Hmm...I don't think that is wrong and would affect the script. And I checked my Sublist.pl file with the original that comes in the 1.3 zip file. The same file. I think..

I ran the BoardMod one more time, but got the same result.

Thanks for the help anyway.

- Kjetil M. Bergem
  
Back to top
 
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #57 - Nov 1st, 2003 at 4:34pm
Print Post  
Does this mod show the latest quiz taken similar to how the board index shows last post?
  

Back to top
WWW  
IP Logged
 
ms_ukyankee
Senior Member
****
Offline


fka whisper68

Posts: 365
Location: England
Joined: Apr 18th, 2002
Gender: Female
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #58 - Nov 2nd, 2003 at 10:24am
Print Post  
Afraid not. I haven't had the time to work with this mod recently, hopefully I will again after the new year. And of course, if anyone else would like to, feel free. Smiley
  

No longer active on Boardmod, migrated to another forum system.
Back to top
ICQ  
IP Logged
 
xtrasweetgirl
Senior Member
****
Offline



Posts: 496
Joined: Oct 8th, 2002
Gender: Female
Re: Quiz v.96c for SP1.1, 1.2, 1.3
Reply #59 - Nov 2nd, 2003 at 5:30pm
Print Post  
Nothing new with this mod besides all the bugs fixed ???

bordeglobal wrote on Nov 1st, 2003 at 4:34pm:
Does this mod show the latest quiz taken similar to how the board index shows last post?



I am working on somethig like that for my site to show the last five 5 quizzes  taken by a member in the ir profile. I would post the code here when i get it done..
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 6 
Send TopicPrint