how can i showing "hits" in front end?

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

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

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
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.
11 years 4 months ago #2 by erwinschro

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

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

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

You can just add the 'hits' word just before a hit call codes like this,
...
echo " - hits: ";
echo modMiniFrontPageHelper::showTagFP( $item->hits, null, $show_date, false, null, null );
11 years 4 months ago #4 by erwinschro

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

that's great
thank you so much
:):):):):):):);)
11 years 4 months ago #5 by diacotm

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

Powered by Kunena Forum