WordPress.org

Ready to get started?Download WordPress

Forums

Is there a plugin for this? (23 posts)

  1. yung_chi_lee
    Member
    Posted 8 years ago #

    Hi, I've seen on some blogs that I've visited where they have a section on their sidebar that says, "Number of posts since you last logged on" and then gives the actual number of new entries. Ditto for comments. Is this done through a plugin or can someone show me how to do this for my site? Thanks.

  2. Kafkaesqui

    Posted 8 years ago #

  3. yung_chi_lee
    Member
    Posted 8 years ago #

    ANyone have this plugin in action where i can see it? Thanks.

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    ? Surely the blogs you talk about above ?

  5. yung_chi_lee
    Member
    Posted 8 years ago #

    but i looked at the plugin and it doesn't seem like what I'm looking for....maybe I'm confused : (. Um... coldforge's site has something I am looking for. Is this the same thing?

  6. Kafkaesqui

    Posted 8 years ago #

    ColdForged uses one of the recent comments plugins (or maybe something of his own making) in the sidebar, which just lists the last # of comments posted on the site. Is that what you mean?

  7. yung_chi_lee
    Member
    Posted 8 years ago #

    Oh, is it just referencing new comments and not actual posts by him?

  8. yung_chi_lee
    Member
    Posted 8 years ago #

    No, i checked..its posts and comments

  9. ColdForged
    Member
    Posted 8 years ago #

    ColdForged is using the plugin referenced above :). At least, that's what he told me.

  10. yung_chi_lee
    Member
    Posted 8 years ago #

    Coldforged, that's funny...talking in the third person..hahahaha... do you have MSN or can you contact me at yung_chi_lee@hotmail.com? I had more questions for you but didn't want to bother your awesomeness. : )

  11. yung_chi_lee
    Member
    Posted 8 years ago #

    Thanks for the guys...btw, stoopid question time... how do i d/l the plugin mentioned above from the link provided? I was on the site but couldn't find a link to click on for the download.

  12. Kafkaesqui

    Posted 8 years ago #

    Download file from Plugin Repository:

    Click on wp-last-visit.php, scroll to the bottom, then click "Original Format".

  13. yung_chi_lee
    Member
    Posted 8 years ago #

    Thanks Kafkaesqui

  14. yung_chi_lee
    Member
    Posted 8 years ago #

    Hey guys,

    So I uploaded the file into my folder as instructed on the link. I have a question about pasting code into some of the files as instructed.

    Question :
    In the readme file, Step 4 says to do this:

    Add some code to show the number of new posts and comments since your last visit

    <script type="text/javascript">slvBanner();</script>

    Which file am I adding this code to (i.e. index.php) and in which section (i.e. <head>)

    Question:

    Step 5 and Step 6 offer which page to paste the code but again, which section.

    Question:

    And what the heck does step #8 mean?

    Thanks for the help.

  15. Mark (podz)
    Support Maven
    Posted 8 years ago #

  16. yung_chi_lee
    Member
    Posted 8 years ago #

    Podz:

    THakns for the help but still having trouble here. The theme I'm using (Landzilla) does not have a header.php file. The header is located in the index.php file.

  17. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Either way, the code that needs to go in <head> is still the same.

  18. ColdForged
    Member
    Posted 8 years ago #

    do you have MSN or can you contact me

    This is as good a place as any, and there's the possibility that others can help here as well.

    The header is located in the index.php file.

    My guess is that you would modify wherever the <head> is then.

    Add some code to show the number of new posts and comments since your last visit

    You would put that wherever you want the "2 new posts and 13 new comments since your last visit" to show up, so it's up to your where to put it based on your design. In the sidebar, at the top of the page, it's your call.

    And what the heck does step #8 mean?

    Step 8 is for displaying an image instead of the text "NEW" next to new comments and posts.

  19. yung_chi_lee
    Member
    Posted 8 years ago #

    Oh man, this is just not working. : (

    Does anyone want to give a crack at this for me???

  20. yung_chi_lee
    Member
    Posted 8 years ago #

    bump

  21. yung_chi_lee
    Member
    Posted 8 years ago #

    anyone? : (

  22. gruv
    Member
    Posted 8 years ago #

    I actually just got this working on my site. I was seeing similar errors that have been reported in other threads, so I decided to try to do things a little differently and I was able to get it to work.

    Now, I don't use the full features of this plugin, I just wanted the "X new posts and X new comments" banner, not any of the images or text next to posts or comments, etc.

    Also, I'm using the default Kubrick theme (though heavily modified).

    In my header.php, I have this:

    <code><?php wp_head(); ?>
    <?php if (function_exists('ak_last_visit')) : ?>
    <?php echo '<script type="text/javascript" src="'; ?><?php bloginfo('siteurl'); ?><?php echo '/wp-content/plugins/wp-last-visit.php?type=js"></script>'; ?>
    <?php endif; ?>
    </head>

    The first and last lines of code above are simply to show the placement of my plugin code.

    In my sidebar.php where I want the information to show up, I have this:

    <code><?php if (function_exists('ak_last_visit')) : ?>
    <li><h2>Welcome Back</h2>
    <ul>
    <script type="text/javascript">slvBanner();</script>
    </ul>
    </li>
    <?php endif; ?>

    The "if (function_exists())" removes the extraneous code (h2, ul, li) from showing on my site if I deactivate the plugin.

    I hope this helps!

  23. gruv
    Member
    Posted 8 years ago #

    Ugh. I fussed with the < code > tags on my post above for so long that I a couple of them stuck. In the above code examples, everything is correct except for the 2 < code >'s, so just omit them.

    Sorry about that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.