Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • International
  • Dutch
  • Ondersteuning
  • Modules, Plugins, Snippets & Code
  •  
  • Blog readcount en op de homepage de drie best gelezen posts#

  • 32781
    7

    Xaevo Reply #1, 1 year, 11 months ago

    Reply
    • Link to this post#1
    hoe kan ik op mijn homepage de drie best gelezen posts weergeven (alleen de titel) ?


  • 18373
    1,870
    Mark Hamstra
    Senior Developer, MODX Complete Team
    MODX, LLC

    Email: support@modx.com
    Twitter: @mark_hamstra
    Web: modx.com | Twitter: @modxcms | Facebook: modxcms, MODX.Nederland

    Also visit my Github profile, personal website and MODX Blog for more MODX goodness.

    Mark Hamstra - MODX Complete Team Reply #2, 1 year, 11 months ago

    Reply
    • Link to this post#2
    Dan zal je eerst iets moeten bedenken om je bezoekersaantallen bij te houden.....

    Ik ken zo geen snippets/modules die dat doen. Als ik jou was zou ik in t internationale/engelse gedeelte posten en kijken of iemand een idee heeft.

    (En misschien ook iets meer info geven, zoals bijvoorbeeld welke modx je gebruikt)


  • 32781
    7

    Xaevo Reply #3, 1 year, 10 months ago

    Reply
    • Link to this post#3
    opgelost, iemand intresse in de snippet?

    <?php
    $output = '';
    $result = $modx->db->query( 'SELECT page_id, page_count FROM `nzkj_page_hit_counter` GROUP BY `page_count` ORDER BY page_count DESC LIMIT 3' );
    while( $row = $modx->db->getRow( $result ) ) {
            $input = $modx->getDocument($row["page_id"], 'pagetitle', true);
    	$output .= '<strong><a href="index.php?id=' . $row['page_id'] .'">' . $input['pagetitle']  . ' (' . $row['page_count'] . ' hits)</a></strong><br />';
    }
    return $output;
    ?>
    


  • 18373
    1,870
    Mark Hamstra
    Senior Developer, MODX Complete Team
    MODX, LLC

    Email: support@modx.com
    Twitter: @mark_hamstra
    Web: modx.com | Twitter: @modxcms | Facebook: modxcms, MODX.Nederland

    Also visit my Github profile, personal website and MODX Blog for more MODX goodness.

    Mark Hamstra - MODX Complete Team Reply #4, 1 year, 10 months ago

    Reply
    • Link to this post#4
    Bedankt dat je het resultaat ook nog met ons deelt
    Hoe hou je het aantal hits bij?


  • 32781
    7

    Xaevo Reply #5, 1 year, 10 months ago

    Reply
    • Link to this post#5
    via de plugin PageHitCounter: http://modxcms.com/extras/package/?package=327

    met een aantal modificaties.

    copy-paste dit als module code:

    http://pastebin.com/yT8m6MUu






Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Xaevo, markh

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy