Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Forum: Fixing WordPress
    In reply to: No .htaccess file

    Read this for instructions on viewing hidden files in WS_FTP.

    I tested in IE6 and IE7 and it works for me though a little slow.

    Forum: Fixing WordPress
    In reply to: Big Problem

    Have you tried including the file name e.g. /wp-admin/index.php?

    I would do something like this:

    // in the PHP
    <?php
    if(page_id==14) {
    $rugbyLink="";
    $cricketLink="activeSideBarLink";
    $footballLink="";
    $formula1Link="";
    }
    else if(page_id==15) {
    $rugbyLink="";
    $cricketLink="";
    $footballLink="activeSideBarLink";
    $formula1Link="";
    }
    // include else if statements for all possibilities and end with
    else {
    $rugbyLink="";
    $cricketLink="";
    $footballLink="";
    $formula1Link="";
    }
    ?>
    <!-- in the HTML -->
    <li class="$rugbyLink"><a href="yourLinkHere">Rugby</a></li>
    <li class="$cricketLink"><a href="yourLinkHere">Cricket</a></li>
    <li class="$footballLink"><a href="yourLinkHere">Football</a></li>
    <li class="$formula1Link"><a href="yourLinkHere">Formula 1</a></li>
    <!-- etc -->
    /* in the CSS */
    .activeSideBarLink a, .activeSideBarLink a:link, .activeSideBarLink a:visited, .activeSideBarLink a:hover {
    font-weight: bold !important;
    }

    HTH

    Not showing here – is it still showing for you?

    Somewhere there is a style that is setting your paragraphs margins to zero. Not sure if that’s specific to excerpts though.

    Thread Starter seento

    (@seento)

    Quite a messy workaround but, after adding the inline PHP plugin I can change this:
    <a href="javascript:void(0);" onclick="toggleLayer('OLGinstructions');"><em>Click here for download instructions</em></a>

    to this:

    <exec>
    echo("<a href=\"");
    echo("javas");
    echo("cript");
    echo(":void(0);\"");
    echo("onc");
    echo("lick");
    echo("=\"toggleLayer('OLGinstructions');\">");
    echo("<em>click here for instructions</em>");
    echo("</a>");
    </exec>

    I wanted to set up a list of strings which I included in my pre-header and echo those as needed on the page but it seemed they weren’t picked up by the plugin.

    Not ideal but hey, it works!

    Are you using a ‘reset.css’?

    Sounds as though you are or you are setting your paragraph margins to zero in your styles.

    If you want to add the same margin to all of your paragraphs add the following to your CSS:

    p {
    margin-bottom: 1em !important;
    }

    (Adjust the margin to your own preferences)

    If the style that is overriding your paragraph margins is already declared as important, you should either remove the importance from that definition or add this style after that one in the cascade (closer to the end of your CSS).

    Thread Starter seento

    (@seento)

    Not sure about mod_security – that’s an Apache thing right?

    We’re running on a Sun One box, v7, with PHP running as a fastCGI plugin.

    No errors are being thrown when the page fails.

    Also there’s plenty of other JavaScript and PHP running on the same machine without issue.

    Looks like I’m going to have to change the original page functionality to operate without JavaScript – or maybe a php include to put the line of text I need in place though that sounds a bit convoluted.

    Any more help would be greatly appreciated.

    Thread Starter seento

    (@seento)

    Thanks, but how do you actually make a call to the JavaScript within the post/page without an onclick or similar?

    Oh wait, you said find a plugin that lets you do that, I’ll have a search for that, thanks.

Viewing 10 replies - 1 through 10 (of 10 total)