Login Form

#188 – Increase the size of the question option fields to 170

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.
Saturday, 05 April 2014 04:24 AEDT
gregg
Joomla! version: (3.2.2)

I need to increase the size of the question option fields from 150 to 170 characters. I can increase the size of the option field in the database but where do I change it in php? Is there a way the php could read the size of the field from the database when it creates the form?

Thanks,

Gregg
 
Saturday, 05 April 2014 08:08 AEDT 10'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Gregg,
You'd need to adjust all the option fileds in phpMyAdmin, for example:

ALTER TABLE `jos_bfquiz_plus` CHANGE `option1` `option1` varchar(170) NOT NULL;

Then you'd need to edit the question form, /administrator/components/com_bfquiz_plus/models/forms/question.xml, and adjust the maxlength on the option fields.

<field name="option1" type="text"
description="COM_BFQUIZPLUS_FIELD_OPTION_DESC"
label="COM_BFQUIZPLUS_FIELD_OPTION1_LABEL"
size="45"
maxlength="170"
/>

regards

Tim
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