I'm trying to install quiz mod in my xs.
But there is a fille called quiz.php that used bbencode_first_pass several times.
In XS, that it's not used i sow in bbcode.php
Will i have to add that bbencode_first_pass to bbcode.php or it's called different in xs
There is no hurry :mrgreen:
Bbencode_first_pass In Xs?
Subject: Re: Bbencode_first_pass In Xs?
Hi Zuker,
you can add bbencode_first_pass to bbcode.php
can you show this mod ?
you can add bbencode_first_pass to bbcode.php
can you show this mod ?
Subject: Re: Bbencode_first_pass In Xs?
I wouldn't add this to XS...
I would modify the mod to be compatible with XS BBCodes.
If you open bbcode.php you will find some examples on how to use the BBCodes functions in phpBB files.
It is not too difficult... have a try!!!
I would modify the mod to be compatible with XS BBCodes.
If you open bbcode.php you will find some examples on how to use the BBCodes functions in phpBB files.
It is not too difficult... have a try!!!
Subject: Re: Bbencode_first_pass In Xs?
Hello,
i want to this mod, too.
But i don't know much about PHP, and so i don't know, how i can make the quiz Mod working.
May somone can help me?
If someone asks after my language, i'm german, not good in english.
i want to this mod, too.
But i don't know much about PHP, and so i don't know, how i can make the quiz Mod working.
May somone can help me?
If someone asks after my language, i'm german, not good in english.
Subject: Re: Bbencode_first_pass In Xs?
i never install that mod finally...
maybe difus want to add to his package :mricy:
maybe difus want to add to his package :mricy:
Subject: Re: Bbencode_first_pass In Xs?
Hi Zuker....
I have installed this mod and modified 2 files ....You can try it out too....
Open
quiz.php
Find
bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Replace with
bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate1_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate1_$i"]), '');
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate2_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate2_$i"]), '');
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate3_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate3_$i"]), '');
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate4_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate4_$i"]), '');
Find
bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate1_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate2_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate3_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate4_$i"])) . "',
'" . htmlspecialchars($answer[$i]) . "')";
Replace it with
bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate1_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate2_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate3_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate4_$i"])) . "',
'" . htmlspecialchars($answer[$i]) . "')";
Find
bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Replace it with
bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Find all occurances of in total 3....
$quiz_question = smilies_pass(bbencode_second_pass($quiz_data['quiz_question'], ''));
Replace it with
$quiz_question = bbcode_killer_mg($quiz_data['quiz_question'], '');
Find
$question = smilies_pass(bbencode_second_pass($row['quiz_question'], ''));
Replace it with
$question = bbcode_killer_mg($row['quiz_question'], '');
****************
Open quizcp.php
Find all
bbencode_first_pass
Replace all of them with
bbcode_killer_mg
Save the files and upload them
This Mod is working for me fine...Hope it works for you too...
Zuker wrote: [View Post]
Hi Zuker....
I have installed this mod and modified 2 files ....You can try it out too....
Open
quiz.php
Find
bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Replace with
bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate1_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate1_$i"]), '');
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate2_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate2_$i"]), '');
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate3_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate3_$i"]), '');
Find
$answer[$i] = bbencode_first_pass(str_replace("'", "''", $HTTP_POST_VARS["Alternate4_$i"]), '');
Replace it with
$answer[$i] = bbcode_killer_mg(str_replace("'", "''", $HTTP_POST_VARS["Alternate4_$i"]), '');
Find
bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate1_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate2_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate3_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate4_$i"])) . "',
'" . htmlspecialchars($answer[$i]) . "')";
Replace it with
bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate1_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate2_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate3_$i"])) . "!*-.@.-*!" . str_replace("'", "''", htmlspecialchars($HTTP_POST_VARS["Alternate4_$i"])) . "',
'" . htmlspecialchars($answer[$i]) . "')";
Find
bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbencode_first_pass(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Replace it with
bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Question_$i"]), '')) . "',
'" . str_replace("'", "''", bbcode_killer_mg(htmlspecialchars($HTTP_POST_VARS["Correct_Answer_$i"]), '')) . "')";
Find all occurances of in total 3....
$quiz_question = smilies_pass(bbencode_second_pass($quiz_data['quiz_question'], ''));
Replace it with
$quiz_question = bbcode_killer_mg($quiz_data['quiz_question'], '');
Find
$question = smilies_pass(bbencode_second_pass($row['quiz_question'], ''));
Replace it with
$question = bbcode_killer_mg($row['quiz_question'], '');
****************
Open quizcp.php
Find all
bbencode_first_pass
Replace all of them with
bbcode_killer_mg
Save the files and upload them
This Mod is working for me fine...Hope it works for you too...
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.6428s (PHP: 3% SQL: 97%)
SQL queries: 10 - Debug Off - GZIP Enabled