<br/> in Image Description.

More
13 years 4 months ago #10437 by ivan.milic
You can try to find some 3rd party component that makes that posibile , I don't know any but it might exist. Also radical solution would be to modify php code.
open modules/mod_hot_image_slider/mod_hot_image_slider.php

find this:

for ($loop = 1; $loop <= 9; $loop += 1) {
$imageDescArray[$loop] = $params->get('image'.$loop.'desc','');
}

and change it like this:


for ($loop = 1; $loop <= 9; $loop += 1) {
$imageDescArray[$loop] = str_replace("NEWLINE", "<br/>", $params->get('image'.$loop.'desc',''));
}

then use word NEWLINE instead of <br/>
The following user(s) said Thank You: chocovo

Please Log in to join the conversation.

  • chocovo
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 4 months ago #10438 by chocovo

ivan.milic wrote: open modules/mod_hot_image_slider/mod_hot_image_slider.php

find this:

for ($loop = 1; $loop <= 9; $loop += 1) {
$imageDescArray[$loop] = $params->get('image'.$loop.'desc','');
}

and change it like this:


for ($loop = 1; $loop <= 9; $loop += 1) {
$imageDescArray[$loop] = str_replace("NEWLINE", "<br/>", $params->get('image'.$loop.'desc',''));
}

then use word NEWLINE instead of <br/>


Thanks a lot Ivan, you are the best. :woohoo:
It work fine.

Best Regards

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum