|
Page 1 of 1
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Bbencode_first_pass In Xs?
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
____________ ? Zuker - EDDB - LPM - Sharefields
|
#1 Tue 21 Nov, 2006 21:56 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: Bbencode_first_pass In Xs?
Hi Zuker,
you can add bbencode_first_pass to bbcode.php
can you show this mod ?
|
#2 Fri 24 Nov, 2006 23:32 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Respuesta: Bbencode_first_pass In Xs?
____________ ? Zuker - EDDB - LPM - Sharefields
|
#3 Sat 25 Nov, 2006 00:09 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 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!!!
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Wed 29 Nov, 2006 01:52 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Bbencode_first_pass In Xs?
Thanks MG, i'll take a look
____________ ? Zuker - EDDB - LPM - Sharefields
|
#5 Wed 29 Nov, 2006 12:01 |
|
Dennisen 
Joined: February 2007
Posts: 42
Location:
|
 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.
|
#6 Tue 13 Feb, 2007 15:38 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Bbencode_first_pass In Xs?
i never install that mod finally...
maybe difus want to add to his package
____________ ? Zuker - EDDB - LPM - Sharefields
|
#7 Tue 13 Feb, 2007 15:44 |
|
charades
Joined: November 2006
Posts: 62
Location:
|
 Re: Bbencode_first_pass In Xs?
i never install that mod finally...
maybe difus want to add to his package 
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...
|
#8 Sat 17 Feb, 2007 03:04 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Bbencode_first_pass In Xs?
when i find time i'll give a try
thanks
____________ ? Zuker - EDDB - LPM - Sharefields
|
#9 Sat 17 Feb, 2007 05:06 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You 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
|
|
|
|