Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Bbencode_first_pass In Xs? 
 
Hi Zuker,

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




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Respuesta: Bbencode_first_pass In Xs? 
 
http://www.cmxmods.net/quiz.php  
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Bbencode_first_pass In Xs? 
 
Thanks MG, i'll take a look
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
 
DennisenSend private messageSend e-mail to user  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Bbencode_first_pass In Xs? 
 
i never install that mod finally...

maybe difus want to add to his package  
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
charadesSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Bbencode_first_pass In Xs? 
 
when i find time i'll give a try

thanks
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron