Adding text prior to date string

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
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
Wed Feb 01, 2012 11:09 pm
Hi,

I would like to add some static text before the date string in my module however Im unsure where to add the code. See the attached example.

Regards
Rowan

newspro.jpg
User avatar
Fresh Boarder

teitbite
Thu Feb 02, 2012 3:37 am
Hi

I'm affraid it wasn;t designed to add a text here, but please try use the mask for Info1 field, maby it will let You present anything more than designed strings.
User avatar
Moderator

GK User
Fri Feb 03, 2012 12:04 am
I know its not part of the standard functionality of the module but I was hoping I might be able to hardcode it somehow, ie in the gk.portal_mode_3.php file?
User avatar
Fresh Boarder

teitbite
Fri Feb 03, 2012 2:58 am
Hi

Sure it's possible, but as long as it's a customization I cannot help with it :(
User avatar
Moderator

GK User
Fri Feb 03, 2012 3:04 am
See this image as it is very easy hack.
Code: Select all
http://img85.imageshack.us/img85/5904/closes.jpg

Using News Pro GK4 v 3.01 J1.7/J2.5
Find File: \modules\mod_news_pro_gk4\gk_classes\portal_modes\gk.portal_mode_3.php
Find Line: 129
Which is :
Code: Select all
         $news_title_content = '<div class="nspTitleTab"><div class="nspDate">' . $news_date . '</div><div class="nspTitle">'.$this->parent->content['title'][$i].'</div></div>';

Replace with below
Code: Select all
         $news_title_content = '<div class="nspTitleTab"><div class="nspDate">Closes ' . $news_date . '</div><div class="nspTitle">'.$this->parent->content['title'][$i].'</div></div>';
User avatar
Platinum Boarder

GK User
Fri Feb 03, 2012 5:28 am
Thanks normanUK, I knew it couldn't be that hard! Now thats what I call service :)
User avatar
Fresh Boarder


cron