Forum Replies Created

Viewing 15 replies - 16 through 30 (of 44 total)
  • Forum: Fixing WordPress
    In reply to: Custom Nav Bar
    Thread Starter strikedamic

    (@strikedamic)

    (continued in a new reply for easier viewing)

    And here’s the new and the old CSS:

    #navrest {
     color:#ff0000;
     margin: 20px 0 0 10px ; padding:10px 0 0 0 ;
     font: 18px Arial, Helvetica, sans-serif;
     text-transform:uppercase;
     height: 21px;
    }
    #navrest ul {
     margin: 0; padding: 0;
    }
    #navrest ul ul {
    	display:none;
    }
    #navrest li.page_item a:link, #navrest li.page_item a:visited {
     color: #000000;
     background: #00FF00;
    }
    #navrest li a {
     padding: 4px 10px 0px 10px;
     text-decoration: none;
    }
    #navrest li {
     display: inline;
    }
    #navrest li a:hover, #navrest li.current_page_item a:link, #navrest li.current_page_item a:visited {
     color: #ffffff !important;
     text-decoration: none;
    }
    #nav {
     text-align:left;
     color:#ff0000;
     margin: 20px 0 0 10px ; padding:10px 0 0 0 ;
     font: 18px Arial, Helvetica, sans-serif;
     text-transform:uppercase;
     height: 21px;
    }
    
    #nav ul {
     list-style: none;
     margin: 0; padding: 0;
    }
    #nav ul ul {
    	display:none;
    }
    #nav li {
     display: inline;
    }
    #nav li.page_item a:link, #nav li.page_item a:visited {
     color: #000000;
     background: #B30000;
    }
    #nav li a {
     padding: 4px 10px 0px 10px;
     text-decoration: none;
    }
    #nav li a:hover, #nav li.current_page_item a:link, #nav li.current_page_item a:visited {
     background: url(images/bg_nav.gif) no-repeat top center;
     color: #ffffff !important;
     text-decoration: none;
    }

    What am I missing? Please help!

    Best, Thomas

    Hey, I just figured out.

    Open the file with the code of the page you want the date in in an editor and copy this code where the date shall be shown:

    <?php the_post;
          the_time('j. F y');
    ?>

    Remember to adjust the date format to your needs, though. Find more info about that in this wordpress article.

    Thread Starter strikedamic

    (@strikedamic)

    Whew. I fixed my stats.php homebrew statistics file and it’s back to work now.

    The question remains though, how can I make pages visible to logged in users only??

    Yeah, I’d like to know that too, please, does anyone know?

    Thread Starter strikedamic

    (@strikedamic)

    Let me give you an example.
    I used the <br> tag for a line break. If I use </br> or <br_/>, IE doesn’t even do a line break. Swapping it for <br> resulted in both Opera and IE understanding it and doing a line break. But the validator tells me that I opened a tag with <br> that’s not closed! Do you understand? The only thing that the validator does right now is confuse me even more.
    :frustrated:

    Thread Starter strikedamic

    (@strikedamic)

    Okay … I tried but … my problem is, I simply don’t understand why the validator is moaning! It sees errors where there, in my eyes, aren’t any errors. I know, I know, the validator is omnipotent when it comes to validating (nomen est omen), but … can anyone please help me with this? ?? All I want is IE to show my posts properly. ??

    Thread Starter strikedamic

    (@strikedamic)

    I changed it all and … well it didn’t change anything.
    Could this be because I used a table for the title? (I did this to put the avatar, author name and etc information in the right place.

    <div class="title">
        <div class="left">
        <table CLASS="" BORDER="0">
    <tr>
    <td CLASS="" width="80" align="center" valign="top"><?php if(function_exists('cmd_show_avatar')){ cmd_show_avatar(); } ?></br><div class="details">
    
    <?php the_author_posts_link(); ?></div></td>
    <td CLASS="" align="left" valign="top"  width=150%>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
        <div class="details"><font color=#ffffff><?php echo c2c_get_custom('subtitle'); ?></font><br><br><font color=#ffffff><?php the_category(', ') ?>&nbsp;||
    	<?php the_time('j. F y') ?><div class="right"><?php comments_number('No Comments', '1 Comment', '% Comments' ); ?></div></font><?php if (function_exists('has_rating')){ if(has_rating()){ get_rating(); } } ?></div>
        </div><br /></td>
    
       </tr></table></br>

    It’s ugly code. But I need help ??

    Thread Starter strikedamic

    (@strikedamic)

    Ok, wow, thanks!
    Another question:
    I’d like to include the number of comments to the right side of the post title (see https://hot.sinister.ch for how this gotta look like). In Opera, it looks fine with <div class=”right”>, in IE, however, it’s not being displayed in the right place. In both browsers, it’s not completely aligned to the right.
    Please see the page and tell me what I have to do to fix this misplacement (in IE and Opera).

    Thread Starter strikedamic

    (@strikedamic)

    Hm, okay. Thank you. I’ll run the page through the validator and debug it.

    Thread Starter strikedamic

    (@strikedamic)

    Thank you.
    I just read through the errors it gives me, and it all seems to be unnecessary stuff that doesn’t have to do anything with my problem. Opera and Firefox work perfectly with the setup I have now, isn’t there any easy way to tell IE to force the document length (or height) to the post’s length?

    Thread Starter strikedamic

    (@strikedamic)

    please? ??

    Thread Starter strikedamic

    (@strikedamic)

    I got IE 7.
    What can I do??

    Thread Starter strikedamic

    (@strikedamic)

    Okay, thank you for the information. I d/l’ed all the pics and put ’em on my server, intralinking them. It all works perfectly now. Thanks again!

    Thread Starter strikedamic

    (@strikedamic)

    OK the code you provided actually fixed the problem to a certain extent, thank you.
    Now, in IE, images that are NOT on my server (found via google, for example) are being shown as “one-liners”. all Images that are on my server are being shown properly. Opera still displays all of them.
    What now? ??

    Thread Starter strikedamic

    (@strikedamic)

    I just checked the resulting code in IE:

    <img src="
    https://sinister.ch/hot/wp/wp-content/uploads/2007/12/1519_xxl.jpg" alt="
    Hostel 2 Cover" align="left" border="3" height="
    
    <br />
    <b>Warning</b>:  getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: URL file-access is disabled in the server configuration in <b>/home/sinister/public_html/hot/wp/wp-content/themes/dark-city-10/single.php</b> on line <b>39</b><br />
    <br />
    <b>Warning</b>:  getimagesize(https://sinister.ch/hot/wp/wp-content/uploads/2007/12/1519_xxl.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/sinister/public_html/hot/wp/wp-content/themes/dark-city-10/single.php</b> on line <b>39</b><br />
    <br />
    <b>Warning</b>:  Division by zero in <b>/home/sinister/public_html/hot/wp/wp-content/themes/dark-city-10/single.php</b> on line <b>41</b><br />
    " hspace="3" vspace="3" width="150" />

    What do I have to change??

Viewing 15 replies - 16 through 30 (of 44 total)