Login Form

#92 – Special character is not showing by quiz

Posted in ‘BF Quiz’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 10 January 2014 15:24 AEDT
Joomla! version: (3.2)

Hello sir,

I am facing the issue that some special character are not shown by quiz which is availaale in my quiz option

Ans will not show the text after some special character

problem discription images:

For special character not showing:

Problem image1
Problem image2

You can check last question in my link :my site link

For After special character text not shown:

Problem image3
Problem image4

So help me to how to face this problem and i can display the special character in quiz
so hope you will help me soon
Sunday, 12 January 2014 22:20 AEDT 30'
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Kriru,
There are actually two separate issues here. Firstly, the backslash \ character is used as a delimiter, so if you want to actually put a backslash character you need to put a double backslash \\
If you want a double backslash, you probably need four backslashes \\\\

With regards to the numbers being cut off, it's due to the fact that the options are passed through the JText function, which I've now found out has been recently changed to "improve security". Apparently the JText function now helps to sanitize the text to prevent SQL injections etc, and it will not let a string end in a comma followed by numbers. So your value of $33,501 gets sanitized and becomes $33. One work around is to add one or more alphabetic characters at the end of the string, for example $33,501 per annum
Another option is to remove the comma, and just put $33501
A third option would be to edit the view and remove the JText from the radio options. Assuming you want this third option and you are using the default multipage view, you'd need to edit /components/com_bfquiz_plus/views/bfquizplus/tmpl/default.php
Around line 945 and 950, change the value of the input field from:
value="<?php echo JText::_($row->$tempvalue); ?>"
change to
value="<?php echo $row->$tempvalue; ?>"

I hope this helps.


Follow us on twitter http://twitter.com/tamlynsoftware
Monday, 13 January 2014 18:05 AEDT
Hello tim,

i done as you said but the problem is main that validation problem

edited as you said:
edited image

output after edit :

Real problem:
problem image

As you can see in image that my real answer is
String regex = “\\.\\s*”;
but in database it store the answer
String regex = “\\\\.\\\\s*”;
as i updated in option so it shows me that my answer is wrong so how can i override this problem

please help me...
Monday, 13 January 2014 18:30 AEDT
And for the omitting text i apply your third solution
applied solution

But still it omit the text in validation
input quiz options: options on front page

output after submit problem image

You can check my quiz question number 28:quiz link
please help me...
Monday, 13 January 2014 21:35 AEDT 10'
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Kriru,
Sounds like you will need to also modify the showIncorrect function in /components/com_bfquiz_plus/controller.php

I'd start by looking at line 1167 and seeing what value is being compared
//was answer correct? if(trim(strtoupper($answer))==trim(strtoupper($correctanswer)) | $row->suppressQuestion == 1 | $row->question_type == 10){


Follow us on twitter http://twitter.com/tamlynsoftware
Monday, 13 January 2014 23:24 AEDT
hello tim,
thanks for reply but actually which variable or functiion i have to change for correct answer or To fullfill the requirement for the correct answer
And what is the requirement for checking correct and incorrect answer
Monday, 13 January 2014 23:37 AEDT
Hello Tim,
Thank you for reply,
i get your point but need Your help to correct the incorrect answer, could you please advice me which code shall I add in my controller.php to solve below problem

Can you give me example of code for solve the above problem
Tuesday, 14 January 2014 00:24 AEDT 5'
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Kriru,
While I'm happy to point you in the right direction, including double backslash in an option was not really how the software was designed to work, and what you are trying to achieve does require some modifications to the code.

Unfortunately I don't currently have the resources to offer a custom development service, but there are many freelancing websites that you may be able to utilise if you need to make any other customisations and do not have PHP skills yourself.

Please get in touch if you want to contribute back any improvements to the software.


Follow us on twitter http://twitter.com/tamlynsoftware
Thursday, 16 January 2014 17:20 AEDT
Ideally the plugin should support this. I do not see why I am required to shell out for custom development for this. I am on shoe string budget & can not afford this.

But I am in no rush, you can do this in future at your leisure. Just want a tentaive timeframe
Thursday, 16 January 2014 17:23 AEDT
Also this works in your component for Joomla 1.5 http://www.guru99.com/sql-quiz.html
Thursday, 16 January 2014 19:08 AEDT 5'
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Kriru,
Outsourcing can be a good option for those without any coding skills that need a quick solution. If you can wait, there is a good chance I will fix this in a future version.


Follow us on twitter http://twitter.com/tamlynsoftware
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top