WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-stats.php (5 posts)

  1. Jenniferr
    Member
    Posted 9 years ago #

    I am having a problem with my wp-stats.php page.

    http://www.moodii.com/blog/wp-stats.php

    If you mouse over/go to any of these links found at -
    - 10 recent posts
    - 10 recent comments
    - 10 most commented posts

    You won't go to the page that it's said to be.. you just go to index.php?p=

    How would I fix this problem?

    I am on 1.2 (and I wish not to upgrade but if it's the only way..)

    My code for wp-stats.php is found at -
    http://www.moodii.com/blog/wp-stats.phps

    Much help appreciated!

  2. Cypher
    Member
    Posted 9 years ago #

    Jennifer,

    Search for get_permalink(); calls in that file and change it to get_permalink($post_id);.

    That should hopefully fix it.

    Regards

  3. Jenniferr
    Member
    Posted 9 years ago #

    Parse error: parse error, unexpected '.' in /home/moodii/public_html/blog/wp-stats.php on line 63

    I get this when doing that.

    Line 63 = $recentposts = $wpdb->get_results("SELECT $tableposts.ID as post_id, post_title, post_name,

  4. Cypher
    Member
    Posted 9 years ago #

    That's very strange. Could you grab the latest version from GamerZ site and give that a shot. The version on his site is slightly different and should hopefully work without any modifications.

    Regards

  5. Jenniferr
    Member
    Posted 9 years ago #

    Thanks. I didn't know there was a download there.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.