Line breaks in text areas

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
8 years 6 months ago #240259

-- 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!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 6 months ago #240265

Hi,

In the plugin, please replace

	if($width < $w) {
		imagettftext($image, $size, 0, $dx, $dy, $color, $font, $line);
		continue;
	}
By
	if($width < $w) {
		imagettftext($image, $size, 0, $dx, $dy, $color, $font, $line);
		$dx = $x;
		$dy += $ly;
		if($h > 0 && ($dy - $y > $h))
			break;
		continue;
	}
Then try to remove all your extra spaces and just use carriage returns.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
8 years 5 months ago #241514

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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #241519

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
8 years 5 months ago #243404

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #243473

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
8 years 5 months ago #243502

Here are the screenshots from my configuration.
The field I'm having problems with is the "Certificate Terms"

thanks for the help

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #243528

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
8 years 5 months ago #243547

Thank you!!!
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.074 seconds
Powered by Kunena Forum