Login Form

#15 – Extend size answer field bf quiz plus

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.
Sunday, 13 October 2013 22:42 AEDT
Joomla! version: 2.5.8


I have a bf quiz plus setup with answer fields extended to 400 varchar in the past. However when we want to change the answers now it is not possible to type more then 150 characters in the answer field.

Seems that the field in the Joomla backend needs to be extended also. I have found something here: http://www.tamlynsoftware.com/forum/index.php?topic=80.0
which says: One more thing that needs changing:


//line 196
<input class="text_area" type="text" name="question" id="question" size="60" maxlength="250" value="<?php echo $this->bfsurvey_pro->question;?>"/>

//change to (either remove maxlength completely, or set to your field size eg. 400)
<input class="text_area" type="text" name="question" id="question" size="60" maxlength="400" value="<?php echo $this->bfsurvey_pro->question;?>"/>

This seems to be the thing I need to change also, however the instructions are for the survey module and not for bf quiz.

Can you tell me were to change this for bfquiz?

Many thanks in advance,

Sunday, 13 October 2013 22:58 AEDT 10'
BF Quiz Plus 3 Years
Hi Willemjan,

First you'll need to increase the size of the fields in the database. The question table is jos_bfquiz_plus (where jos_ is your table prefix). For example:

ALTER TABLE `jos_bfquiz_plus` CHANGE `option1` `option1` VARCHAR( 400 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL 

Repeat for all the options.

Then you'll need to edit /administrator/components/com_bfquiz_plus/models/forms/question.xml

around line 133, you'll see the maxlength in the opiton1. You'll need to adjust this for all the options.

		&lt;field name="option1" type="text"

//change the maxlength in above


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