Bbencode_first_pass In Xs? »  Show posts from    to     

Icy Phoenix


Old Support Topics - Bbencode_first_pass In Xs?



Zuker [ Tue 21 Nov, 2006 21:56 ]
Post subject: 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


difus [ Fri 24 Nov, 2006 23:32 ]
Post subject: Re: Bbencode_first_pass In Xs?
Hi Zuker,

you can add bbencode_first_pass to bbcode.php
can you show this mod ?


Zuker [ Sat 25 Nov, 2006 00:09 ]
Post subject: Respuesta: Bbencode_first_pass In Xs?
http://www.cmxmods.net/quiz.php


Mighty Gorgon [ Wed 29 Nov, 2006 01:52 ]
Post 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!!!


Zuker [ Wed 29 Nov, 2006 12:01 ]
Post subject: Re: Bbencode_first_pass In Xs?
Thanks MG, i'll take a look


Dennisen [ Tue 13 Feb, 2007 15:38 ]
Post 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.


Zuker [ Tue 13 Feb, 2007 15:44 ]
Post subject: Re: Bbencode_first_pass In Xs?
i never install that mod finally...

maybe difus want to add to his package


charades [ Sat 17 Feb, 2007 03:04 ]
Post subject: Re: Bbencode_first_pass In Xs?
Zuker wrote: [View Post]
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...


Zuker [ Sat 17 Feb, 2007 05:06 ]
Post subject: Re: Bbencode_first_pass In Xs?
when i find time i'll give a try

thanks




Powered by Icy Phoenix