Keyword

K2 mod content "days, weeks, months"...

  • mıstık santra
  • mıstık santra's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #95463 by mıstık santra
K2 mod content "days, weeks, months"... was created by mıstık santra
hello,

I have some problems about K2 mod content.

Firstly, there is a "helper" file in the "mod content folder". I want to change thecontents of helper file like this; I want to show contents of the last three days but today doesn't.I tried to change "BETWEEN" function like this; 

case'hits' in line
[code]<span><span>$query</span><span>.=</span><span>" AND i.created &gt; DATE_SUB('{$date}',INTERVAL "</span><span>.</span><span>$params</span><span>-&gt;</span><span>get</span><span>(</span><span>'popularityRange'</span><span>).</span><span>" DAY) "</span><span>;</span></span>
[/code]

 

on;
[code]$query.=" AND i.created &gt; $query.=" AND i.created &gt; BETWEEN
[/code]
[code] DATE_SUB('{$date}',INTERVAL 3 DAY ) AND DATE_SUB('{$date}',INTERVAL
[/code]
[code] 1 DAY ) ";  
[/code]
[code] 
[/code]changed it but I did not get a result.

 

can you help me, please...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum