- Posts: 298
- Thank you received: 7
Line breaks in text areas
10 years 4 months ago #240259
by a2zcs
Line breaks in text areas was created by a2zcs
-- url of the page with the problem -- :
dollarsaverprograms.com
-- HikaShop version -- : 2.6.3
-- HikaSerial version -- : 1.10.4
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4.26
-- Browser(s) name and version -- : Firefox 45.0.2
I have to include terms and conditions on the generated certificates, and need to insert page breaks between the paragraphs to make them more readable. The only way I found I could do this is to insert a huge number of spaces between each paragraph in the text field to force the next paragraph onto a new line. There must be a better way to achieve what I'm trying to do. Any thoughts? typing in two or more <enter> does not have any affect. Using a WYSIWYG field type only shows the html coding on the certificate.
The attached file shows the entry field on the left and the bottom of the certificate and the terms on the right.
Thanks!
-- HikaShop version -- : 2.6.3
-- HikaSerial version -- : 1.10.4
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4.26
-- Browser(s) name and version -- : Firefox 45.0.2
I have to include terms and conditions on the generated certificates, and need to insert page breaks between the paragraphs to make them more readable. The only way I found I could do this is to insert a huge number of spaces between each paragraph in the text field to force the next paragraph onto a new line. There must be a better way to achieve what I'm trying to do. Any thoughts? typing in two or more <enter> does not have any affect. Using a WYSIWYG field type only shows the html coding on the certificate.
The attached file shows the entry field on the left and the bottom of the certificate and the terms on the right.
Thanks!
Please Log in or Create an account to join the conversation.
10 years 4 months ago #240265
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Line breaks in text areas
Hi,
In the plugin, please replace
By
Then try to remove all your extra spaces and just use carriage returns.
Regards,
In the plugin, please replace
Code:
if($width < $w) {
imagettftext($image, $size, 0, $dx, $dy, $color, $font, $line);
continue;
}
Code:
if($width < $w) {
imagettftext($image, $size, 0, $dx, $dy, $color, $font, $line);
$dx = $x;
$dy += $ly;
if($h > 0 && ($dy - $y > $h))
break;
continue;
}
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
10 years 4 months ago #241514
by a2zcs
Replied by a2zcs on topic Line breaks in text areas
Thank you, but unfortunately it didn't seem to have any effect. Please see attached. Each paragraph should have a blank line in between. The shortest one in overlapped by the one below it.
Please Log in or Create an account to join the conversation.
10 years 4 months ago #241519
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Line breaks in text areas
Hi,
Can you please confirm that you have specified an height and a width in your "attach serial" configuration ?
Regards,
Can you please confirm that you have specified an height and a width in your "attach serial" configuration ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
10 years 3 months ago #243404
by a2zcs
Replied by a2zcs on topic Line breaks in text areas
Sorry it has taken me so long to get back to you. Took a much needed vacation. Yes the the height and width for this is set in the AttachSerial configuration. Any more thoughts on it?
Please Log in or Create an account to join the conversation.
10 years 3 months ago #243473
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Line breaks in text areas
Hi,
Would it be possible to have a (partial) screenshot of your "attach serial" configuration in order to see what you have set ?
So I could see to reproduce your issue.
Regards,
Would it be possible to have a (partial) screenshot of your "attach serial" configuration in order to see what you have set ?
So I could see to reproduce your issue.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
10 years 3 months ago #243502
by a2zcs
Replied by a2zcs on topic Line breaks in text areas
Here are the screenshots from my configuration.
The field I'm having problems with is the "Certificate Terms"
thanks for the help
The field I'm having problems with is the "Certificate Terms"
thanks for the help
Please Log in or Create an account to join the conversation.
10 years 3 months ago #243528
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Line breaks in text areas
Hi,
Thanks.
Can you please re-download HikaSerial 1.10.4 and confirm that the patch fix your issue ?
Regards,
Thanks.
Can you please re-download HikaSerial 1.10.4 and confirm that the patch fix your issue ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
10 years 3 months ago #243547
by a2zcs
Replied by a2zcs on topic Line breaks in text areas
Thank you!!!
That seems to have done it.
Cheers!
That seems to have done it.
Cheers!
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.193 seconds