Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter Brigitte

    (@brigitte)

    Thanks Moshu . . . that would help me for any regular site, but I don’t want to manually add a tag to each page. I want all of the pages to just automatically show up. The first link you gave me is telling me to link the pages and add some php to it. Like the Blix theme, any and all pages will automatically become listed. This is the code:


    <ul>
    <li<?php if (is_home()) echo " class=\"selected\""; ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php
    $pages = BX_get_pages();
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    if ($page_name == "archives") {
    (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Archives</a></li>n";
    }
    elseif($page_name == "about") {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>n";
    }
    elseif ($page_name == "contact") {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>n";
    }
    elseif ($page_name == "about_short") {/*ignore*/}
    else {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>n";
    }
    }
    }
    ?>
    </ul>

    I’ve made my css so that it will work with ul and li, but what part of this do I need to keep?

    Reversial, some people have custom 404 pages that they like to show. (:

    Hm.. I’m using my own theme and I want to list pages that when selected are a different color, like in the Blix theme. I already coded all the CSS so that’s fine . . . but I don’t know the code so that it’ll do what it’s supposed to. Hm, am I making sense?

    Forum: Fixing WordPress
    In reply to: Upload Error

    My host is Surpasshosting

    Forum: Fixing WordPress
    In reply to: Upload Error

    When I try uploading something I get this error:

    Warning: copy(): open_basedir restriction in effect. File(/home/dakishi/public_html/log/wp-content/images/rail_info2.gif) is not within the allowed path(s): (/home/dakishi/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/dakishi/public_html/log/wp-admin/upload.php on line 170

    Warning: copy(/home/dakishi/public_html/log/wp-content/images/rail_info2.gif): failed to open stream: Operation not permitted in /home2/dakishi/public_html/log/wp-admin/upload.php on line 170
    Couldn’t upload your file to /home/dakishi/public_html/log/wp-content/images/rail_info2.gif.

    does anyone know what the problem is? Sorry if it’s something really simple but I’m confused. Thanks.

    Thread Starter Brigitte

    (@brigitte)

    Thanks!!!

Viewing 6 replies - 16 through 21 (of 21 total)