Forum Replies Created

Viewing 15 replies - 1 through 15 (of 93 total)
  • Thread Starter marke1

    (@marke1)

    Found the answer, it’s easy.

    http://mnm.uib.es/gallir/wp-cache-2/

    Posted here for future reference should others come looking for the solution:

    How do I make certain parts of the page stay dynamic?

    It’s compatible with Staticze Reloaded. From their FAQ:

    There are two ways to do this, you can have functions that say dynamic or include entire other files. To have a dynamic function in the cached PHP page use this syntax around the function:

    <!–mfunc function_name(‘parameter’, ‘another_parameter’) –>
    <?php function_name(‘parameter’, ‘another_parameter’) ?>
    <!–/mfunc–>`

    The HTML comments around the mirrored PHP allow it to be executed in the static page. To include another file try this:

    <!–mclude file.php–>
    <?php include_once(ABSPATH . ‘file.php’); ?>
    <!–/mclude–>`

    That will include file.php under the ABSPATH directory, which is the same as where your wp-config.php file is located.

    Thread Starter marke1

    (@marke1)

    Ya, I know all that.

    I need to refresh it myself because there is some Ajax and other Javascript that needs to work on specific $_SERVER variables when a browser lands on the home page to stuff content into a div. So in that case, using a cached copy of the home page doesn’t work because the home page is built differently for particular visitors. New plugin…

    Not so surprising, about 5 minutes after I posted a comment to Alan Kay’s (aka Alan Who) blog regarding said plugin he removed the post and the plugin. Go figure.

    Looks like Mr. Alan Who, alleged developer of the Protect Content plugin did nothing more than steal the code for the plugin I wrote (HideThis) at least a half year prior and published it under his own name. He didn’t changed anything except line spacing and the generic ‘hidethis’ tag.

    Oh, and he conveniently deleted the glaringly obvious copyright notice. Gee, I think that’s a federal offense these days…

    Next thing ya know the guy is gonna publish a strangely familiar ‘new blogging platform’ called WhoBlogs….

    marke1

    (@marke1)

    wrap the text with “code” tags when posting a message with HTML that you want to appear as HTML

    marke1

    (@marke1)

    Posts are in a datbase so a password protect post should remain protected from view — e.g. Google won’t be able to do any magic to grab the text. If the text leaked then it could be via plugin, RSS feeds, or possibly happened before you posts were set to have passwords. I can’t think of any other way it could happen.

    As for those who were rude, sheesh. Count to 10,000 before you respond here unless you have an answer to a direct question.

    marke1

    (@marke1)

    Q1: Look for CSS tags the references to “a” like these:


    h1, h1 a, h1 a:hover, h1 a:visited, #headerimg .description {
    text-decoration: none;
    color: white;
    }

    h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
    color: #333;
    }

    h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #sidebar h2, #wp-calendar caption, cite {
    text-decoration: none;
    }

    .entry p a:visited {
    color: #b85b5a;
    }

    There are others but hopefully you get the point.

    Q2: Try setting a color here:


    #sidebar {
    font: 1em 'Lucida Grande', Verdana, Arial, Sans-Serif;
    }

    That might work, maybe.

    As for Q3, that’d be harder to do. You’ll probably have to use a new div tag.

    <philosophic>
    Your blog caption, “I’d love to change the world, but they won’t give me the source code” — interesting. What if we live in a non-linear universe? If it’s true, and it sure seems to be in so far as I can tell, then everything you do, or don’t do, makes a change. This is partially why it is said that a butterfly flapping its wings in China can start a hurricane in the Caribbean… Be deliberate πŸ˜‰
    </philosophic>

    .

    marke1

    (@marke1)

    Wow, this is really cool stuff! Thanks for the info, and thanks for posting your own resolutions.

    marke1

    (@marke1)

    If you’re using Windows server make sure the user account for the Web service has read access to the wp-content/themes directory and its subdirectories. I’m not sure if it needs execute access, but if read alone won’t work then add execute.

    Forum: Plugins
    In reply to: PHPlist integration [REQ]
    marke1

    (@marke1)

    I have written a working plugin that works with WP 2.0.x and PHPlist 2.10.x — e.g. latest versions. I’ll be releasing it soon. I’ll post a note here when it’s available.

    I looked at the code for the plugin you mentioned and it was far more complex that it had to be, so adapting it to PHPlist as it changes is tough going. No wonder it won’t work with the latest PHPlist !

    My plugin takes a sort of “don’t care” attitude where it really doesn’t matter what version of PHPlist is running as long as there are two simple tags inside the PHPlist templates (which are there by default in out-of-the-box PHPlist installtions). So in summary, it’s easy to make it work and doesn’t require any modifications to templates in PHPlist or WordPress.

    marke1

    (@marke1)

    Another way would be to use something like this inside the loop:


    <?php
    if (have_posts()) {
    // full post for the first 5 posts
    $i = 1;
    while($i < 6) {
    the_post();
    echo $post->post_title . '<br/>' . the_content();
    $i++;
    }

    // just titles for the next 5
    $i = 1;
    while($i < 6) {
    the_post();
    echo $post->post_title . '<br>';
    $i++;
    }
    }
    ?>

    marke1

    (@marke1)

    You might try deleting all your WP files (not themes or plugins) and then reinstall the new files.

    marke1

    (@marke1)

    Your stylesheet isn’t loading.

    This line in your templates (probably header file, or index file) isn’t right:

    <link rel="stylesheet" href="mykosblog" type="text/css" media="screen" />

    The “href” part should point directly to your *.css file and it doesn’t.

    Try something like this:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    Not certain that’ll work, but it’s worth a try

    marke1

    (@marke1)

    In case anyone wonders, I’m using Adhesive 3.2

    marke1

    (@marke1)

    vkaryl:
    *rolls eyes* Whatever.

    If it’s already been posted then why are you posting it again? *rolls eyes* Whatever.

    I told ya, and everyone else should know this: Adhesive works fine for me on WP 2.0.2. So maybe, just maybe, the problem isn’t with adhesive per se?

Viewing 15 replies - 1 through 15 (of 93 total)