Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter omorchoe

    (@omorchoe)

    I don’t know. Seems to be gone now. Which is really odd. But I am not complaining, so, never mind.

    Thread Starter omorchoe

    (@omorchoe)

    nobody? 🙁

    Thread Starter omorchoe

    (@omorchoe)

    Yes, I checked the html source several times and it’s just empty where the variable should show up.

    <style type="text/css">
    # { background:url("./images/sprites.png")   no-repeat; height: 30px; width: 100px }
    </style>

    I am trying to style the position of the background-image, so that the menu item looks different when you are on the page that menu item otherwise would lead to (If it should work, I will add some more variables and totally disable the button of the current page).
    The link itself is just a transparent gif, re-sized to the size of the button, which is just the background image, that changes if you hover over it with mouse.

    I am working on xampp and can’t provide a live view.

    This would be an example of how the buttons are styled in the css:

    #menu-icon-01 { background:url("./images/sprites.png") -202px -113px no-repeat; height: 30px; width: 100px }
    #menu-icon-02 { background:url("./images/sprites.png") -303px -113px no-repeat; height: 30px; width: 100px }
    #menu-icon-03 { background:url("./images/sprites.png") -404px -113px no-repeat; height: 30px; width: 100px }
    
    #menu-icon-01 a:hover { background:url("./images/sprites.png") -202px -144px no-repeat; height: 30px; width: 100px }
    #menu-icon-02 a:hover { background:url("./images/sprites.png") -303px -144px no-repeat; height: 30px; width: 100px }
    #menu-icon-03 a:hover { background:url("./images/sprites.png") -404px -144px no-repeat; height: 30px; width: 100px }

    Thread Starter omorchoe

    (@omorchoe)

    I tried to find php hooks I might use in my header, instead of the default WP ones, to use in conditional tags, but couldn’t find any. My coding abilities are sadly not good enough to make my own out of your code. So I won’t be able to use conditionals to show login/register/connect of SFC. Seems like I need to find another FB-connecter that allows a little bit more control where it is added in the theme.

    thanks anyway.

    Thread Starter omorchoe

    (@omorchoe)

    ok, I seem to have found the problem…

    I managed it in the main index, by moving
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>`
    above the info-block.

    But in my archives, its not that easy…

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div class="main_cent">
    
    <div class="co_name_bg">
    
    <div class="boxalign1">
    <div class="datebox"><?php the_time('m jS, Y') ?></div>	</div>
    
    <div class="boxalign2"><div class="titlebox"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div></div>
    
    <div class="boxalign3"><div class="quotebox"><?
    include("/www/htdocs/w009de8a/front/randomquote/randomquote.php");
    ?></div></div>
    
    <div class="boxalign4"><div class="autorbox">Author: <?php the_author(); ?></div></div>
    
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:7px; height:1px"/>
    
    							</div>
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:100px; height:154px"/>
    <div class="zindexlow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/headers/<?php echo(rand(1,66)); ?>.png"
    width="583" height="184" />
    					</div>
    
    <?php if (have_posts()) : ?>
    <?php $warptext = false; ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <?php if($warptext) {?>
    		<div class="wrapit">
    <div class="dateboxA"><?php the_time('m jS, Y') ?></div>	
    
    <div class="titleboxB"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div>
    
    <div class="autorboxC">Author: <?php the_author(); ?></div>
    		</div>
    <?} ?>
    
    <?php $warptext = true; ?>
    
    <div class="content_txt">
    <?php the_content('Read the rest of this entry &raquo;'); ?><br /><br />
    </div>
    
    <div class="buttonbox">
    <a href="<?php comments_link(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/commentbutton.png" border="0" alt="" /></a>
    
    <div class="buttontext"><a href="<?php comments_link(); ?>"><?php comments_number('0', '1', '%', 'number'); ?></a>
    
    </div>
    </div>
    
    <?php endwhile; ?>
    
    <?php else : ?>
    <div class="content_txt" style="padding:13px 10px 10px 3px; line-height:1.31em ">
    <h2>Not Found</h2><br />
    		<p class="center">Sorry, but you are looking for something that isn't here.</p><br />
    
    </div>
    	<?php endif; ?>
    
    <?php previous_post()?> <?php next_post()?>
    	</div>
    
    <div class="right_1"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:51px; height:1px"/></div>
    
    		</div>
    		</div>
    	<div class="footer">
    <div class="footer_txt">
    
    </div></div>
    		</div>
    		</div></div>
    </body>
    </html>

    This is my archive loop.
    There is a special part “warptext” which allows me to have a graphic-heading above every post, except the first one. Works like a charm, except for the author thing.
    The funny part is, that title and post date don’t mind being outsite the
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>`
    part.

    I am confused…

    Thread Starter omorchoe

    (@omorchoe)

    Ok, now I need to take it a little step further…

    In essence its very similar. Its still some graphic between posts, but now there are two different graphics, one after every other post and none at the top…

    Like:

    _____________
       |             |
       | Top Heading |
       |_____________|
        [FIRST POST]
       texttexttexttext
     _______________
    | Post HeadingA |
    |_______________|
     [Second POST]
    texttexttexttext
          _______________
         | Post HeadingB |
         |_______________|
           [Third POST]
          texttexttexttext
     _______________
    | Post HeadingA |
    |_______________|
     [Second POST]
    texttexttexttext
          _______________
         | Post HeadingB |
         |_______________|
           [Third POST]
          texttexttexttext

    etc…

    Maybe you got an idea for that too haochi?

    Thread Starter omorchoe

    (@omorchoe)

    can’t find it anymore…

    maybe someone changed it allready?
    If I happen to stumple over it again, I’ll let you know.

    Thread Starter omorchoe

    (@omorchoe)

    thanks a lot!
    works perfect!

    Here a fast wrap-up for other code-dylsexic like me out there

    <?php if (have_posts()) : ?>
    add <?php $haochi = false; ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php if($haochi){?> 
    
    // insert the CONDITIONAL stuff in here. Like I did with the graphics
    
     <?} ?>
    // here should be the standard loop-thing like:
    
    <?php the_content ('Read the rest of this entry &raquo;'); ?>
    
    <?php $haochi = true; ?>
    <?php endwhile; ?>

    Thanks haochi!

    Thread Starter omorchoe

    (@omorchoe)

    Thanks!

    Seem to work.
    Someone should change the codex accordingly. In the template hirarchy it says, it doesn’t work anymore…

    Thread Starter omorchoe

    (@omorchoe)

    works now, thanks 🙂

    Thread Starter omorchoe

    (@omorchoe)

    I am using Widget which is why i can’t change it in sidebar.php

    but renaming the Category-widget does nothing to it…

    http://wiki.rpg-community.com

    as you can see it still says Categories, althought i changed the title of the widget to “Index”…

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