My test topic
Moderator: CricketMX Forum Moderators
1.saint_mite, 2. dsg, 3. launie, 4. hd, 5.saintsational, 6. james rose, 7. skilledsaint, 8. HSV, 9. the craw, 10. Halo_9, 11. st fid
- Attachments
-
- avatar.PNG (280 Bytes) Viewed 11071 times
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Code: Select all
##############################################################
## MOD Title: Ultimate Quiz MOD
## MOD Author: battye < cricketmx@hotmail.com > (N/A) http://www.online-scrabble.com
## MOD Description: A fully customisable quiz addition to your forum, some of the features include full
## categorization of quizzes, statistics, multiple quiz types (Multiple Choice, True / False, Input Answers) and
## an administration suite where many aspects of the quiz can be altered and edited. Cash MOD support included.
## For a list of all features, visit http://www.cmxmods.net/quiz.php?mode=quiz_features
##
## MOD Version: 1.2.0
##
## Installation Level: Easy
## Installation Time: 10 Minutes
##
## Files To Edit: admin/index.php
## includes/constants.php
## includes/page_header.php
## templates/subSilver/overall_header.tpl
## viewonline.php
##
## Included Files: 31
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: What can I say? My finest piece of coding :-)
## Thanks to Robin (www.viane.net) for writing the lang_quiz.php in Belgian, and for his invaluable help when testing!
##############################################################
## MOD History:
##
## 2005-10-23 - Version 1.1.0
## - More to come, including Statistics and the Moderation Panel. The bulk of it is done however.
##
## 2005-11-12 - Version 1.1.1
## - In a nutshell, this version was dedicated to permissions. Moderative permissions, category permissions etc..
##
## 2005-11-25 - Version 1.1.2
## - Enter: Statistics.
##
## 2005-11-25 - Version 1.1.2a
## - Bug fixes and edits to the *.mod file.
##
## 2005-12-11 - Version 1.1.3
## - Cash
##
## 2006-01-07 - Version 1.2.0
## - Second 1.2.0 release, very minor changes to quiz.php, quiz_cp.php, quiz_stats.php, functions_quiz.php.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Run quiz_install.php (found in the install/ folder of this package) to execute the SQL. Run quiz_install.php from the root folder of your forum.
Make file changes first, before running the file.
#
#-----[ COPY ]------------------------------------------
#
copy quiz.php to quiz.php
copy quiz_cp.php to quiz_cp.php
copy quiz_stats.php to quiz_stats.php
copy admin/admin_quiz.php to admin/admin_quiz.php
copy includes/functions_quiz.php to includes/functions_quiz.php
copy install/quiz_install.php to quiz_install.php
copy language/lang_english/lang_quiz.php to language/lang_english/lang_quiz.php
copy templates/subSilver/quiz_add_initial_body.tpl to templates/subSilver/quiz_add_initial_body.tpl
copy templates/subSilver/quiz_add_input_body.tpl to templates/subSilver/quiz_add_input_body.tpl
copy templates/subSilver/quiz_add_multiple_choice_body.tpl to templates/subSilver/quiz_add_multiple_choice_body.tpl
copy templates/subSilver/quiz_add_true_false_body.tpl to templates/subSilver/quiz_add_true_false_body.tpl
copy templates/subSilver/quiz_category_body.tpl to templates/subSilver/quiz_category_body.tpl
copy templates/subSilver/quiz_category_password_body.tpl to templates/subSilver/quiz_category_password_body.tpl
copy templates/subSilver/quiz_cp_delete_body.tpl to templates/subSilver/quiz_cp_delete_body.tpl
copy templates/subSilver/quiz_cp_input_answer_edit_body.tpl to templates/subSilver/quiz_cp_input_answer_edit_body.tpl
copy templates/subSilver/quiz_cp_move_body.tpl to templates/subSilver/quiz_cp_move_body.tpl
copy templates/subSilver/quiz_cp_multiple_choice_edit_body.tpl to templates/subSilver/quiz_cp_multiple_choice_body.tpl
copy templates/subSilver/quiz_cp_true_false_edit_body.tpl to templates/subSilver/quiz_cp_true_false_body.tpl
copy templates/subSilver/quiz_index_body.tpl to templates/subSilver/quiz_index_body.tpl
copy templates/subSilver/quiz_installation_body.tpl to templates/subSilver/quiz_installation_body.tpl
copy templates/subSilver/quiz_play_input_answer_body.tpl to templates/subSilver/quiz_play_input_answer_body.tpl
copy templates/subSilver/quiz_play_multiple_choice_body.tpl to templates/subSilver/quiz_play_multiple_choice_body.tpl
copy templates/subSilver/quiz_play_true_false_body.tpl to templates/subSilver/quiz_play_true_false_body.tpl
copy templates/subSilver/quiz_result_body.tpl to templates/subSilver/quiz_result_body.tpl
copy templates/subSilver/quiz_statistics_body.tpl to templates/subSilver/quiz_statistics_body.tpl
copy templates/subSilver/quiz_statistics_particular_body.tpl to templates/subSilver/quiz_statistics_particular_body.tpl
copy templates/subSilver/admin/quiz_add_category_body.tpl to templates/subSilver/admin/quiz_add_category_body.tpl
copy templates/subSilver/admin/quiz_edit_category_body.tpl to templates/subSilver/admin/quiz_edit_category_body.tpl
copy templates/subSilver/admin/quiz_move_category_body.tpl to templates/subSilver/admin/quiz_move_category_body.tpl
copy templates/subSilver/admin/quiz_settings_body.tpl to templates/subSilver/admin/quiz_settings_body.tpl
copy templates/subSilver/images/icon_mini_quiz.gif to templates/subSilver/images/icon_mini_quiz.gif
#
#-----[ OPEN ]-----------------------------
#
admin/index.php
#
#-----[ FIND ]-----------------------------
#
require('./pagestart.' . $phpEx);
#
#-----[ AFTER, ADD ]-------------------
#
$language = $board_config['default_lang'];
if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx))
{
$language = 'english';
}
include($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx);
#
#-----[ FIND ]-----------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]-------------------
#
case PAGE_QUIZ:
$location = $lang['Quiz'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('DEBUG', 1); // Debugging off
#
#-----[ AFTER, ADD ]------------------------------------------
#
// !- Start Ultimate Quiz MOD v1.2 -!
define('ON', 1);
define('OFF', 2);
define('POST_QUIZ_URL', 'q');
define('TRUE_FALSE', 'true_false');
define('INPUT_ANSWER', 'input_answer');
define('MULTIPLE_CHOICE', 'multiple_choice');
define('QUIZ_CATEGORY_TABLE', $table_prefix.'quiz_categories');
define('QUIZ_MULTIPLE_CHOICE_TABLE', $table_prefix.'quiz_multiple_choice_data');
define('QUIZ_GENERAL_TABLE', $table_prefix.'quiz');
define('QUIZ_INPUT_TABLE', $table_prefix.'quiz_input_data');
define('QUIZ_TRUE_FALSE_TABLE', $table_prefix.'quiz_true_false_data');
define('QUIZ_STATISTICS_TABLE', $table_prefix.'quiz_statistics');
// !- End Ultimate Quiz MOD v1.2 -!
#
#-----[ FIND ]------------------------------------------
#
define('PAGE_FAQ', -8);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('PAGE_QUIZ', -1142);
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
$language = $board_config['default_lang'];
if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx))
{
$language = 'english';
}
include($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx);
#
#-----[ FIND ]------------------------------------------
#
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_QUIZ' => $lang['Quiz_quizzes'],
'U_QUIZ' => append_sid("quiz.$phpEx"),
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<span class="mainmenu"> <a href="{U_QUIZ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_quiz.gif" width="12" height="13" border="0" alt="{L_QUIZ}" hspace="3" />{L_QUIZ}</a></span>
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$language = $board_config['default_lang'];
if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx))
{
$language = 'english';
}
include($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx);
#
#-----[ FIND ]-----------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]-------------------
#
case PAGE_QUIZ:
$location = $lang['Quiz'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Code: Select all
##############################################################
## MOD Title: Ultimate Quiz MOD
## MOD Author: battye < cricketmx@hotmail.com > (N/A) http://www.online-scrabble.com
## MOD Description: A fully customisable quiz addition to your forum, some of the features include fullcategorization of quizzes, statistics, multiple quiz types (Multiple Choice, True / False, Input Answers) andan administration suite where many aspects of the quiz can be altered and edited. Cash MOD support included.For a list of all features, visit http://www.cmxmods.net/quiz.php?mode=quiz_features
## MOD Version: 1.2.0
##
## Installation Level: Easy
## Installation Time: 600 Minutes
## Files To Edit:
## admin/index.php,
## includes/constants.php,
## includes/page_header.php,
## templates/subSilver/overall_header.tpl,
## viewonline.php
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## What can I say? My finest piece of coding :-)Thanks to Robin (www.viane.net) for writing the lang_quiz.php in Belgian, and for his invaluable help when testing!
##############################################################
## MOD History:
##
## 2005-10-23 - Version 1.1.0
## - More to come, including Statistics and the Moderation Panel. The bulk of it is done however.
##
## 2005-11-12 - Version 1.1.1
## - In a nutshell, this version was dedicated to permissions. Moderative permissions, category permissions etc..
##
## 2005-11-25 - Version 1.1.2
## - Enter: Statistics.
##
## 2005-11-25 - Version 1.1.2
## - Bug fixes and edits to the *.mod file.
##
## 2005-12-11 - Version 1.1.3
## - Cash
##
## 2006-01-07 - Version 1.2.0
## - Second 1.2.0 release, very minor changes to quiz.php, quiz_cp.php, quiz_stats.php, functions_quiz.php.
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy quiz.php to quiz.php
copy quiz_cp.php to quiz_cp.php
copy quiz_stats.php to quiz_stats.php
copy admin/admin_quiz.php to admin/admin_quiz.php
copy includes/functions_quiz.php to includes/functions_quiz.php
copy install/quiz_install.php to quiz_install.php
copy language/lang_english/lang_quiz.php to language/lang_english/lang_quiz.php
copy templates/subSilver/quiz_add_initial_body.tpl to templates/subSilver/quiz_add_initial_body.tpl
copy templates/subSilver/quiz_add_input_body.tpl to templates/subSilver/quiz_add_input_body.tpl
copy templates/subSilver/quiz_add_multiple_choice_body.tpl to templates/subSilver/quiz_add_multiple_choice_body.tpl
copy templates/subSilver/quiz_add_true_false_body.tpl to templates/subSilver/quiz_add_true_false_body.tpl
copy templates/subSilver/quiz_category_body.tpl to templates/subSilver/quiz_category_body.tpl
copy templates/subSilver/quiz_category_password_body.tpl to templates/subSilver/quiz_category_password_body.tpl
copy templates/subSilver/quiz_cp_delete_body.tpl to templates/subSilver/quiz_cp_delete_body.tpl
copy templates/subSilver/quiz_cp_input_answer_edit_body.tpl to templates/subSilver/quiz_cp_input_answer_edit_body.tpl
copy templates/subSilver/quiz_cp_move_body.tpl to templates/subSilver/quiz_cp_move_body.tpl
copy templates/subSilver/quiz_cp_multiple_choice_edit_body.tpl to templates/subSilver/quiz_cp_multiple_choice_body.tpl
copy templates/subSilver/quiz_cp_true_false_edit_body.tpl to templates/subSilver/quiz_cp_true_false_body.tpl
copy templates/subSilver/quiz_index_body.tpl to templates/subSilver/quiz_index_body.tpl
copy templates/subSilver/quiz_installation_body.tpl to templates/subSilver/quiz_installation_body.tpl
copy templates/subSilver/quiz_play_input_answer_body.tpl to templates/subSilver/quiz_play_input_answer_body.tpl
copy templates/subSilver/quiz_play_multiple_choice_body.tpl to templates/subSilver/quiz_play_multiple_choice_body.tpl
copy templates/subSilver/quiz_play_true_false_body.tpl to templates/subSilver/quiz_play_true_false_body.tpl
copy templates/subSilver/quiz_result_body.tpl to templates/subSilver/quiz_result_body.tpl
copy templates/subSilver/quiz_statistics_body.tpl to templates/subSilver/quiz_statistics_body.tpl
copy templates/subSilver/quiz_statistics_particular_body.tpl to templates/subSilver/quiz_statistics_particular_body.tpl
copy templates/subSilver/admin/quiz_add_category_body.tpl to templates/subSilver/admin/quiz_add_category_body.tpl
copy templates/subSilver/admin/quiz_edit_category_body.tpl to templates/subSilver/admin/quiz_edit_category_body.tpl
copy templates/subSilver/admin/quiz_move_category_body.tpl to templates/subSilver/admin/quiz_move_category_body.tpl
copy templates/subSilver/admin/quiz_settings_body.tpl to templates/subSilver/admin/quiz_settings_body.tpl
copy templates/subSilver/images/icon_mini_quiz.gif to templates/subSilver/images/icon_mini_quiz.gif
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
require('./pagestart.' . $phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$language = $board_config['default_lang']; if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx)) { $language = 'english'; } include($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx);
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_QUIZ: $location = $lang['Quiz']; $location_url = "index.$phpEx?pane=right"; break;
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('DEBUG', 1); // Debugging off
#
#-----[ AFTER, ADD ]------------------------------------------
#
// !- Start Ultimate Quiz MOD v1.2 -!define('ON', 1);define('OFF', 2); define('POST_QUIZ_URL', 'q'); define('TRUE_FALSE', 'true_false');define('INPUT_ANSWER', 'input_answer'); define('MULTIPLE_CHOICE', 'multiple_choice'); define('QUIZ_CATEGORY_TABLE', $table_prefix.'quiz_categories'); define('QUIZ_MULTIPLE_CHOICE_TABLE', $table_prefix.'quiz_multiple_choice_data'); define('QUIZ_GENERAL_TABLE', $table_prefix.'quiz');define('QUIZ_INPUT_TABLE', $table_prefix.'quiz_input_data');define('QUIZ_TRUE_FALSE_TABLE', $table_prefix.'quiz_true_false_data');define('QUIZ_STATISTICS_TABLE', $table_prefix.'quiz_statistics');// !- End Ultimate Quiz MOD v1.2 -!
#
#-----[ FIND ]------------------------------------------
#
define('PAGE_FAQ', -8);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('PAGE_QUIZ', -1142);
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); }
#
#-----[ AFTER, ADD ]------------------------------------------
#
$language = $board_config['default_lang']; if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx)) { $language = 'english'; } include($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx);
#
#-----[ FIND ]------------------------------------------
#
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_QUIZ' => $lang['Quiz_quizzes'], 'U_QUIZ' => append_sid("quiz.$phpEx"),
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<span class="mainmenu"> <a href="{U_QUIZ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_quiz.gif" width="12" height="13" border="0" alt="{L_QUIZ}" hspace="3" />{L_QUIZ}</a></span>
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$language = $board_config['default_lang']; if (!file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx)) { $language = 'english'; } include($phpbb_root_path . 'language/lang_' . $language . '/lang_quiz.' . $phpEx);
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "faq.$phpEx"; break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_QUIZ: $location = $lang['Quiz']; $location_url = "index.$phpEx?pane=right"; break;
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
AV.
- Attachments
-
- zim4.gif (877.29 KiB) Viewed 10807 times
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
- p2p-sharing-rules
- Moderator
- Posts: 8462
- Joined: Mon Mar 29, 2004 6:55 pm
- Location: Canada
YAY home run or whatever you it in cricket!!