Text word amount on Image Show

GK User
Mon Sep 17, 2012 10:04 am
Hello, please take a look at this picture :

Image

I configured "text word amount" on 20 and I want to appear ellipsis (...) when the text is longer than the words limit. Is it possible ?

Thanks
User avatar
Fresh Boarder

Konrad M
Mon Sep 17, 2012 10:32 am
Hi,
please edit modules/mod_image_show_gk4/styles/gk_partyfreak/view.php and find:
Code: Select all
for($j = 0; $j < $this->config['config']->gk_partyfreak->gk_partyfreak_text_word_amount; $j++) {
                           if(isset($exploded_text[$j])) {
                              $text .= $exploded_text[$j]." ";
                           }
                        }

change it to:
Code: Select all
for($j = 0; $j < $this->config['config']->gk_partyfreak->gk_partyfreak_text_word_amount; $j++) {
                           if(isset($exploded_text[$j])) {
                              $text .= $exploded_text[$j]." ";
                           }
                        }
                        $text .= "(...)";


Now you should have this elipse.
User avatar

GK User
Mon Sep 17, 2012 12:40 pm
GREAT support. Thank you
User avatar
Fresh Boarder


cron