• Hello, i am an italian boy so i speak bad english..

    I have a blog and i have a menu..

    1. I would view a part of menu only not registred(login)..and a part of menu only registred(Logout) ..Do you understand?
    How i do that?

    2. How I do to see a page only registred?

    3. Login’s name, Where is that variable? I would insert that name in home page.. How i do that?

    Sorry for my bad english 🙁

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter vicar1992

    (@vicar1992)

    Nothing? 🙁

    Are you looking for these two functions?

    Do you need help using them? Have a look at the default theme under wp-content/themes/default and open the file sidebar.php – you can find an example there.

    Still no luck? Just tell us…

    My guess was that Vicar1992 wants part of the sidebar to be hidden to unregistered users. But I couldn’t find a decent plugin that could do that and I don’t currently have the functioning brain cells to try and write the code for it. 🙁

    If he wanted to do that he could wrap the corresponding part of the sidebar with is_user_logged_in.

    That’s it! See – said the brain wasn’t functioning properly.

    Don’t drink and code 😉

    I wish! I might have enjoyed it. Viruses on the other hand…

    Hope it’s not the swine flu – everybody is afraid of it here in Germany 😉 Anyway, take some rest.

    Man, we’re getting off topic here…

    Thread Starter vicar1992

    (@vicar1992)

    Thnakyou but it doesn0t work 🙁

    <div class="secondmenu">
    		<ul>
    			<li class="first" <?php if (is_page('schedina-serie-a')) { echo " id=\"firstcurrent\""; } ?>>
    <a href="<?php bloginfo('url'); ?>/schedina-serie-a/" title="Gioca la schedina">Gioca la schedina</a>
    			</li>
    			<li class="last" <?php if (is_page('URL')) { echo " id=\"lastcurrent\""; } ?>>
    <a href="<?php bloginfo('url'); ?>/wp-login.php/" title="Login">Log-in</a>
    			</li>
    		</ul>
    	</div>
    <?php
    
    if ( is_user_logged_in() ) {
    			<li class="last" <?php if (is_page('URL')) { echo " id=\"lastcurrent\""; } ?>>
    <a href="<?php bloginfo('url'); ?>/wp-login.php/" title="Login">Log-in</a>
    			</li>
    } else {
    			<li class="last" <?php if (is_page('URL')) { echo " id=\"lastcurrent\""; } ?>>
    <a href="<?php bloginfo('url'); ?>/wp-login.php/" title="LOGOUT">LOGOUT</a>
    			</li>
    };
    ?>

    In up there is a Menu, and down the code.. How do you do? 🙁

    I haven’t default’s theme..
    🙁

    @vicar1992: try replacing is_user_logged_in() with !$user_ID, maybe that’s better. Anyway, it should work as expected and if we knew what you’re really trying to do maybe we can tell you what’s wrong.

    @powerfulsmile: go to wordpress.org/download, grab the latest version of WordPress, unzip it and navigate to the folder wp-content/themes: you’ll find a folder “default” there.

    Thread Starter vicar1992

    (@vicar1992)

    Ok, I would this menu..

    For Registred User
    <img src=”http://i49.tinypic.com/mjq1ab.png&#8221; border=”0″>

    For Visitator
    <img src=”http://i46.tinypic.com/oqj7ty.png&#8221; border=”0″>

    Thread Starter vicar1992

    (@vicar1992)

    Nothing? It is important 🙁 Pleaseeeee 🙂

    Ok thanks for theme but i can’t do the same of Vicar1992

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

The topic ‘Much answer’ is closed to new replies.