Blitzpilot Posted February 26, 2005 Report Share Posted February 26, 2005 Kann man die Statistik besuchte Artikel zur?cksetzen? Danke f?r eure Hilfe Link to comment Share on other sites More sharing options...
chpohl Posted February 26, 2005 Report Share Posted February 26, 2005 DOC/FAQS Link to comment Share on other sites More sharing options...
paulhase Posted January 21, 2008 Report Share Posted January 21, 2008 Es geht noch einfacher und das sogar mit ein Button. Ihr müßt nur die Daten im admin/stats_products_viewed.php einfügen. Passendem Button in admin/images/icons einfügen. admin/stats_products_viewed.php dies in Zeile ca. 14 einfügen // wozu Begin if ($HTTP_GET_VARS['action']=='reset'){ $reset_query_raw = "update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = '0'"; xtc_db_query($reset_query_raw); xtc_redirect(xtc_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'reset=1')); } if ($HTTP_GET_VARS['reset']) { $messageStack->add(TEXT_VIEWS_RESET, 'success'); } // wozu End und dies in Zeile ca. 94 einfügen <!-- wozu Begin --> <tr> <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="center" colspan="2"><?php echo '<a href="' . xtc_href_link(FILENAME_STATS_PRODUCTS_VIEWED,"action=reset") . '">' . xtc_image(DIR_WS_ICONS.'button_reset.gif', Reset) . '</a>'; ?></td> </tr> </table></td> </tr> <!-- wozu End -->pdfexport052.zip Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.