End news with 3 dots possible?

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Mar 23, 2014 4:37 pm
Reply with quote
Report this post
Is it possible to end the news functionality of the Highlighter GK5 with 3 dots (ie "News text here...") for every news displayed?

This would be the general thing to do showing that there is more text.

Any ideas on how to implement this?
User avatar
Gold Boarder

teitbite
Mon Mar 24, 2014 9:48 pm
Reply with quote
Report this post
Hi

Please adit /modules/mod_highlighter_gk5/tmpl/default.php and replace lines 35-37 with this code:

Code: Select all
                   <div class="gkHighlighterItem"><?php echo $nh_content[$i] . '...'; ?></div>
                <?php else : ?>
                   <?php echo $nh_content[$i] . '...'; ?>
User avatar
Moderator

GK User
Mon Mar 24, 2014 9:52 pm
Reply with quote
Report this post
Great! Please let me know if I can use an override CSS for this code? I would like to be able to upgrade without problems in the future ;)

teitbite wrote:Hi

Please adit /modules/mod_highlighter_gk5/tmpl/default.php and replace lines 35-37 with this code:

Code: Select all
                   <div class="gkHighlighterItem"><?php echo $nh_content[$i] . '...'; ?></div>
                <?php else : ?>
                   <?php echo $nh_content[$i] . '...'; ?>
User avatar
Gold Boarder

teitbite
Mon Mar 24, 2014 9:57 pm
Reply with quote
Report this post
Hi

It's not a css, so it cannot be used like that, but please create new folder in template's /html called /mod_highlighter_gk5 and copy the modified default.php file there. This way override will be keept in template in area which does not exists in a clean package, so it will not be lost.
User avatar
Moderator

GK User
Mon Mar 24, 2014 10:15 pm
Reply with quote
Report this post
Thank you did as you said and it worked very nicely!
Thank you for your support ... maybe this should be inside the product itself in the future.
:)
User avatar
Gold Boarder

GK User
Mon Mar 24, 2014 10:54 pm
Reply with quote
Report this post
I just noticed the colon mark in front of each and every news text. Why is it there?
Can I remove it in some way?
User avatar
Gold Boarder

teitbite
Tue Mar 25, 2014 9:43 pm
Reply with quote
Report this post
Hi

"Color mark"? Can You show me Your site ? It may be a setting from module to set a color of the link.
User avatar
Moderator

GK User
Tue Mar 25, 2014 9:51 pm
Reply with quote
Report this post
See the attached image. Let me know if you need to get into my site which (as it is not published yet).

teitbite wrote:Hi

"Color mark"? Can You show me Your site ? It may be a setting from module to set a color of the link.
User avatar
Gold Boarder

teitbite
Wed Mar 26, 2014 11:11 pm
Reply with quote
Report this post
Hi

Haha. I thought You made a typo :)

I think it's not a colon, but a part of something else. Please show me Your site.
User avatar
Moderator

teitbite
Tue Apr 01, 2014 6:53 pm
Reply with quote
Report this post
Hi

Please add this code to css:

Code: Select all
.gkHighlighterWrapper .gkHighlighterItem {
    overflow: hidden;
}

.gkHighlighterWrapper .gkHighlighterItem a {
    margin-left: -5px;
}
User avatar
Moderator


cron