• Once I get it functioning, I’m sure this plugin will be invaluable. I just need some help getting rid of an error message. So I’m giving it one last try before hanging it up.

    The error is:

    Warning: Cannot modify header information – headers already sent by (output started at /hsphere/local/home/galen5/familywebwatch.com/blog/wp-content/themes/Blix/contact.php:7) in /hsphere/local/home/galen5/familywebwatch.com/blog/wp-last_visit.php on line 55

    I’m not blaming the plugin, but I’m certain it’s related somehow because when I remove the code from my pages, the error no longer appears.

    Please note that I have already scanned the files for extra spaces for the php stuff, which I know is a common reason for this type of message. Still got the same result.

    Can anyone please offer some advice? ??

Viewing 15 replies - 16 through 30 (of 54 total)
  • Hang on .. I’ll phps the files and upload them.

    Plugin:
    https://www.tamba2.org.uk/T2/files/wp-last-visit.phps

    The following 3 files demonstrate where I put the code
    https://www.tamba2.org.uk/T2/files/header.phps
    https://www.tamba2.org.uk/T2/files/index.phps
    https://www.tamba2.org.uk/T2/files/comments.phps

    I separated out the code lines for clarity, but that should not affect how it works.

    cool! you the man podz :0)

    Thread Starter davincim

    (@davincim)

    Yes, thank you podz!!

    I’ll spend some time this evening integrating it and post back my results.

    So, I tried this and had no luck.

    As soon as I put the line you have in your index.phps file (which I’m putting in my main template..right?) then my page stops loading when it hits it.

    Viewing the page source reveals this error:
    <script type=”text/javascript”>slvShowNewIndicator(
    <b>Fatal error</b>: Call to undefined function: mysql2timestamp() in <b>/var/www/html/blog/wp-content/themes/McStars/index.php</b> on line <b>27</b>

    Does this have something to do with my MySQL implemention???

    Thanks!

    Don’t forget that if you get a “Headers already sent” error, it means you have some whitespace after the last
    ?>
    in the plugin.
    Eliminate that and all should be good.

    The plugin is activated ?

    Um..heh…..

    Lemme try again.

    It works much better when the plugin in activated ??

    Thanks podz. This is the first time I’ve had the javascript version running. Hopefully it works better (‘new’ status goes away as intended) than the non-java one.

    Thanks!

    Excellent !
    I’m not sure on the cookie time, but the new tags do go away.

    Is there any documentation anywhere on the wp-last-visit.php file? For example, what is this setting for:

    if (!isset($time_difference)) {
    $time_difference = 0;

    Should I put ‘-5’ in there since I’m 5 hours behind UTC or does this mean something else?

    And what is this for:

    function ak_last_visit($use_session = 1, $hours = 1)

    There’s not much in the readme.

    Thanks!

    Oh … I’ve never looked in there.
    I’d say you are right with the time and the second is the cookie – and therefore the tag – info. At least if you know the tags display then it does actually work.

    See…it’s still weird, or perhaps I just don’t understand how it’s supposed to work.

    Check it out: https://www.theheatsinkbbs.ca/

    What *I* see is 0 new posts and 0 new comments, yet the first entry on my page still has the ‘new’ image.

    Does that makes sense?

    I too see 0 new for both, but as it’s my first time there, I would.
    I see the New tag though.

    Maybe experiment with those settings until you are happy ?

    If you check my blog, you’ll also see I edited the plugin to modify the display – I noticed you have the list across the top.

    In my sidebar, I have this:
    <ul><li>
    <script type="text/javascript">slvBanner();</script>
    </li></ul>

    Thread Starter davincim

    (@davincim)

    Well, the temptation of getting this to work was just too strong for me to wait until this evening. Glad I didn’t wait.

    I’ve almost got it to work. The “new” image shows up next to my post title and the comment bar on the main page. I have just a couple of questions:

    1. If you go to https://familywebwatch.com/blog_test/2005/04/06/one-more-time/ you’ll see the text form of “NEW” next to the comment I added (or if you don’t just add a comment since it may be the first-time/cookie thing).

    Why is it using text instead of the image I told it to use? The path is the same, and it works everywhere else.

    2. I’ve got the banner working in the upper right of the main page. Could you help me edit that please? I want it to say:

    Since your last visit there have been:
    2 new posts
    8 new comments

    Looking at the plugin code I’m guessing that the edit needs to be placed somewhere around line 63+, but I have absolutely no javascript experience.

    podz – THANK YOU SO MUCH for all your trouble in helping me get this thing working. Once I get those few things fixed I will sleep peacefully tonight. ??

Viewing 15 replies - 16 through 30 (of 54 total)
  • The topic ‘Looking for WP-Since Last Visit plugin users’ is closed to new replies.