how can i showing "hits" in front end?
- Posted by diacotm (8) Offline
hello at first i really thanks for this module (mini-frontpage). and i ask something it shows date in front-end but how can i showing article "hits" behind date in front end? i really need this , please help this is an emergency call!
I'll be waiting for the answer
thanks
11 years 4 months ago #1
by diacotm
I'll be waiting for the answer
thanks
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
HEllo
first of all there's no such an emergency call for free extension unless you pay us for it...
So to have a hits, you can try it by adding a line to call article hits inside your choosen theme layout file
i.e for the default theme find this file
/mod_minifrontpage/themes/default/tmpl/bottom.php then look for this line to output date
then add line to call hits like this
just below date line.
11 years 4 months ago #2
by erwinschro
first of all there's no such an emergency call for free extension unless you pay us for it...
So to have a hits, you can try it by adding a line to call article hits inside your choosen theme layout file
i.e for the default theme find this file
/mod_minifrontpage/themes/default/tmpl/bottom.php then look for this line to output date
echo modMiniFrontPageHelper::showTagFP( $item->date, null, $show_date, false, null, null );
then add line to call hits like this
echo modMiniFrontPageHelper::showTagFP( $item->hits, null, $show_date, false, null, null );
just below date line.
Please Log in or Create an account to join the conversation.
- Posted by diacotm (8) Offline
at first forgive me for that. then it is got ok but it had conflict with the date look like this :
27 july 2013 18:491063
how can i fix this?
and how can i add "hits:" at the first of my hits number? like this:
27 july 2013 18:49 - hits:1063
again I'm really sorry for that.
thanks for your attend
11 years 4 months ago #3
by diacotm
27 july 2013 18:491063
how can i fix this?
and how can i add "hits:" at the first of my hits number? like this:
27 july 2013 18:49 - hits:1063
again I'm really sorry for that.
thanks for your attend
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
You can just add the 'hits' word just before a hit call codes like this,
11 years 4 months ago #4
by erwinschro
...
echo " - hits: ";
echo modMiniFrontPageHelper::showTagFP( $item->hits, null, $show_date, false, null, null );
Please Log in or Create an account to join the conversation.
- Posted by diacotm (8) Offline