Align date and title news show pro 5

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Jul 11, 2013 10:30 am
Reply with quote
Report this post
Hi,

I want to have the date and title aligned on the same line. Which float / align options do I need to use? Somehow I can't get it one the same line....

http://hrzone.hrdeal.nl.testbyte.nl/

Kind regards,

Joren
User avatar
Expert Boarder

GK User
Thu Jul 11, 2013 3:58 pm
Reply with quote
Report this post
HI, it wont be so easy,
because you have such a code
Code: Select all
<div style="padding:0 0 0 0;" class="nspArt nspCol1">
                        <p class="nspInfo nspInfo1 tleft fnone">09-07-2013</p><h4 class="nspHeader tleft fnull"><a title="Komt een ceo bij de hr-directeur" href="/artikelen/item/454-komt-een-ceo-bij-de-hr-directeur">Komt een ceo bij de hr-directeur</a></h4>   </div>   


The better option will be a modify a little bit this html style which you're using for this view.
What Module mode you're using?

So we have to do this (in result) and add new style for <span> element

Code: Select all
<div style="padding:0 0 0 0;" class="nspArt nspCol1">
                        <h4 class="nspHeader tleft fnull"><span>09-07-2013</span> <a title="Komt een ceo bij de hr-directeur" href="/artikelen/item/454-komt-een-ceo-bij-de-hr-directeur">Komt een ceo bij de hr-directeur</a></h4>   </div>
User avatar
Platinum Boarder

GK User
Thu Jul 11, 2013 3:59 pm
Reply with quote
Report this post
I don't have a clue.. how can I find that out?
User avatar
Expert Boarder

GK User
Thu Jul 11, 2013 4:02 pm
Reply with quote
Report this post
User avatar
Platinum Boarder

GK User
Thu Jul 11, 2013 4:04 pm
Reply with quote
Report this post
News show pro GK5 latest version.
User avatar
Expert Boarder

GK User
Thu Jul 11, 2013 4:57 pm
Reply with quote
Report this post
Yes, I know that.
But ... ok could you tell me which module mode (not module!) your are using ? Probably Standard mode yes?
User avatar
Platinum Boarder

GK User
Thu Jul 11, 2013 4:58 pm
Reply with quote
Report this post
the standard mode
User avatar
Expert Boarder

GK User
Thu Jul 11, 2013 5:06 pm
Reply with quote
Report this post
ok, could you send me full access to backend I could try to make it for you. (PM)
User avatar
Platinum Boarder

GK User
Thu Jul 11, 2013 5:31 pm
Reply with quote
Report this post
Done.
I have changed only one line in this file: modules/mod_news_pro_gk5\tmpl\com_k2\view.php

Line 174 : $news_info = '<p style="color:#aaa;float:left;padding-right:8px;">
date-name.png


p.s.
You can uninstall com_extplorer if you wish.
User avatar
Platinum Boarder

GK User
Thu Jul 11, 2013 5:37 pm
Reply with quote
Report this post
thank you! and just in case. What if I want to change it back?
User avatar
Expert Boarder

GK User
Thu Jul 11, 2013 8:36 pm
Reply with quote
Report this post
Sure,

BEFORE
Code: Select all
    $news_info = '<p class="nspInfo '.$class.'">'.$config['info'.(($num == 2) ? '2' : '').'_format'].'</p>';


AFTER CHANGE
Code: Select all
 $news_info = '<p style="color:#aaa;float:left;padding-right:8px;">'.$config['info'.(($num == 2) ? '2' : '').'_format'].'</p>';


Keep it, because probably soon you will upgrade your module to new version ;)
User avatar
Platinum Boarder


cron