Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Line Break in Description text file

More
17 years 2 months ago #5320 by Kevin Hyland
Replied by Kevin Hyland on topic Re: Line Break in Description text file
Thanks very much for your support George - excellent service!!

;D

Cheers

Kevin

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 2 months ago #5321 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Line Break in Description text file
Happy to help!  :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
16 years 7 months ago #5322 by neworange
Replied by neworange on topic Re: Line Break in Description text file
hello,
is there any way to show only the first line in the thumb?
thank you

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

More
16 years 7 months ago #5323 by Dan G#ran Lunde
Replied by Dan G#ran Lunde on topic Re: Line Break in Description text file
If you patch the file as above, you should have:

$final_caption = $labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])];

Here $final_caption probably contains something like "some text on first line <br> and another line". Then you could probably just split the line and keep as many lines as you would like:

// split final caption on each occurence of <br>, keep 1 line
$final_caption = split('<br>', $final_caption, 1)

NB: Totally untested code. Try it and see if it works.

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

More
16 years 7 months ago #5324 by neworange
Replied by neworange on topic Re: Line Break in Description text file
hi danglung,

it almost works  :)
when oppening the image, I can show the lines I want,
but in the thumb instead of the text before <br>, it shows the word Array

any idea?

thank you very much for your help

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

More
16 years 6 months ago #5325 by Jill Clarke
Replied by Jill Clarke on topic Re: Line Break in Description text file
Dear George

worked like a charm when I worked out the difference between

[color=red/]plugins/content/jwsigpro/sigpro_engine.php      - wrong one[/color]

and the one I needed to change

/plugins/content/jwsigpro.php

This is for Joomla 1.5 users!

So thank you very muchly

J

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

More
16 years 6 months ago #5326 by Jill Clarke
Replied by Jill Clarke on topic Line Break - HELP - different fonts
Hi George and other experts

I have implemented the code change to enable the <br> to be used in the labels.txt file.

I now have the problem that some labels are in the css font specified (Arial) and some have changed to Times New Roman.

Checked out the labels.txt, some have spaces around the <br> and some not, but it does not correlate to the problem (I have found correct font displayed with spaces around the <br> and removing the spaces does not change the font back to the correct one)

So is it obvious to anyone what altered thing could change this?

Could it be a UTF-8 issue?

Any help will be much appreciated.

J

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


Powered by Kunena Forum