WordPress.org

Ready to get started?Download WordPress

Forums

Struggling with Since Last Visit (55 posts)

  1. PaulV
    Member
    Posted 9 years ago #

    now we have the last part
    Warning: Cannot modify header information - headers already sent by (output started at /home/vanderwe/public_html/somethin-tropical/wp-content/plugins/wp-last-visit.php:257) in /home/vanderwe/public_html/somethin-tropical/wp-content/plugins/wp-last-visit.php on line 54

    Line 54 starts right after the last fix
    somewhere here
    include("http://somethin-tropical.epaulv.com/wp-blog-header.php");
    header("Content-type: text/javascript");
    ?>
    // var slvIndicator = 'New';

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Excellent !

    I think the headers error is not whitespace.
    I think there is a commenting error in the code, just before the first line you can see, and that is killing the rest of the plugin.
    Stare a lot at the plugin just before "// var slvIndicator = 'New'; var slvIndicator = 'New'; function slvB"

  3. PaulV
    Member
    Posted 9 years ago #

    ok here is what comes after. I dont know what // before the text does... eg // will output ......
    if (isset($wplastvisit_output)) { // will output stuff for the HTML source
    switch ($wplastvisit_output) {
    case "javascript":
    include("http://somethin-tropical.epaulv.com/wp-blog-header.php");
    header("Content-type:text/javascript");
    ?>
    // var slvIndicator = 'New';
    var slvIndicator = '<img src="http://somethin-tropical.epaulv.com/ak-img/new.gif" alt="New" title="New since your last visit." />';
    function slvBanner() {
    var posts = slvGetCookie('wplastvisit_posts');
    var comments = slvGetCookie('wplastvisit_comments');
    if (posts == null || comments == null) {
    return false;
    }
    var banner = '';

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

    I have:

    if (isset($wplastvisit_output)) { // will output stuff for the HTML source
    switch ($wplastvisit_output) {
    case "javascript":
    ?>
    <script type="text/javascript">
    <!--

    // var slvIndicator = 'New';

  5. PaulV
    Member
    Posted 9 years ago #

    The code that you posted to put in the head is in mine now

    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    <?php $wplastvisit_output = "javascript"; require('wp-content/plugins/wp-last-visit.php'); ?>
    </head>

    And the code that Alex has in his txt file is

    Add this line within the <head> tags of your index.php and wp-comments-popup.php pages.

    <?php require(bloginfo('url;').'/wp-content/plugins/wp-last-visit.php?type=js'); ?>

    Perhaps the plugin is calling for the ?type=js and can not find it or is your code saying the same thing just in a different way?

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It's saying the same thing diferently.

    Can you paste your code here:
    http://paste.uni.cc/

  7. PaulV
    Member
    Posted 9 years ago #

    mmmm it seems that this line is the prob

    header("Content-type:text/javascript");

    could it be

    Content-type="text/javascript"

    or something lol

  8. PaulV
    Member
    Posted 9 years ago #

    Which part?

  9. Mark (podz)
    Support Maven
    Posted 9 years ago #

    the plugin - sorry !

  10. PaulV
    Member
    Posted 9 years ago #

    Pasted the entire plugin...

  11. Mark (podz)
    Support Maven
    Posted 9 years ago #

  12. PaulV
    Member
    Posted 9 years ago #

    Done...

    Now we have this

    Parse error: parse error, unexpected T_STRING in /home/vanderwe/public_html/somethin-tropical/wp-content/plugins/wp-last-visit.php on line 254

  13. PaulV
    Member
    Posted 9 years ago #

    I am not using comment_popup if that helps

  14. PaulV
    Member
    Posted 9 years ago #

    And I have not pasted any code for this plugin in comments_popup.php at all

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

    Damn..... I have no clue why that has happened.... all I added was two lines to your plugin so it knew that the text was a script.

    Kill the plugin......any chance of irc ?

  16. Mark (podz)
    Support Maven
    Posted 9 years ago #

  17. PaulV
    Member
    Posted 9 years ago #

    It could be my index or content?

  18. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Doubt it.....

  19. PaulV
    Member
    Posted 9 years ago #

    Done...
    Now we have this
    Parse error: parse error, unexpected T_STRING in /home/vanderwe/public_html/somethin-tropical/wp-content/plugins/wp-last-visit.php on line 269

    mmmmmm
    RE: IRC the only thing I have is msn atm. I would have to download and install chat software....

  20. PaulV
    Member
    Posted 9 years ago #

    I have pasted my index.php
    http://paste.uni.cc/6515

    perhaps there is an error in there???

    lol Ask me a question about crayfish lol

  21. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I would remove all trace of the plugin.
    Get everything working, and then redo very carefully using what you've got so far.

  22. PaulV
    Member
    Posted 9 years ago #

    Ok I have killed the plugin for now. Please if anyone has any clue how this thing works please let me know. I will jump back here every day until we get it sorted.

    "Podz" thank you for you valuable time and effort so far.

    cheers
    Paul V

  23. PaulV
    Member
    Posted 9 years ago #

    Anyone figure this out yet? I am lost

  24. Alex King
    Member
    Posted 9 years ago #

    Y'know, this is all installed and working in the Plugged-In download that I make available... why not look there?

  25. PaulV
    Member
    Posted 9 years ago #

    Hello Alex

    Look at your site? I have done that and followed the instructions to a tee but it still refuses to work.. I will go through your site again but if you could lend a hand when you have time it will be greatly appreciated.

    cheers
    Paul V

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.