speedyp
Forum Replies Created
-
Forum: Networking WordPress
In reply to: opening links in same window?Just give them the same target. Call it anything apart from “blank”.
DOH!
Forum: Networking WordPress
In reply to: Hide pages in nav if not logged in?Resolved – I’m on a roll today 🙂
Forum: Networking WordPress
In reply to: Hide pages in nav if not logged in?Thanks Mika – just found another method that seems to work. It adds a “members only” nav menu option to the wp menus page 🙂
I’ll show it here just incase anyone wants to do the same:
Add to functions.php
register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'twentyten' ), 'members' => __( 'Members Only Navigation', 'twentyten' ), ) );In header.php
Replace
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>With…
<?php //if the user is logged in, members only menu appears, if not, global menu appears if ( is_user_logged_in() ) :?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'members' ) ); ?> <?php else :?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> <?php endif;?>Forum: Networking WordPress
In reply to: Link from admin area to index/home page???Resolved 🙂
Forum: Networking WordPress
In reply to: Link from admin area to index/home page???🙂 The more I learn, the more questions I seem to have.
Going to wrap this up on a very positive note. For anyone crazy enough to want to create their own alternative to the ugly? default dashboard:
1. Create your own page with any links and info you want your users to see.2. Download this fantastic little plugin and put it in your mu-plugins folder (if you don’t have that folder already then just create it in wp-content). Plugin on this thread:http://wordpress.org/support/topic/automatic-redirection-to-child-site-from-main?replies=15
3. The plugin will do 2 cool things for you – if a user logs in on the main site, it will take them straight to their own site. The default landing page will be their admin page, but if you’ve created your own dashboard page you can modify the plugin and replace the “wp-admin” bit with your new page eg. “welcome”.
And that’s all there is to it!
Forum: Networking WordPress
In reply to: Link from admin area to index/home page???Talking to myself again :O
It appears you CAN redirect any user to their own site if they login at the main site – thanks to David Sader’s magic little plugin:
http://wordpress.org/support/topic/automatic-redirection-to-child-site-from-main?replies=15So all that’s left to do, is to redirect them once they get there to my welcome help page instead of their dashboard & voila!
Why do I make things so difficult for myself??
Forum: Networking WordPress
In reply to: Link from admin area to index/home page???OK, on a different tack….
Unless someone tells me otherwise, php is not possible within dashboard widgets.
So… Suppose I created a new dashboard page. I could add anything I wanted to that, infact it would be a lot easier.
Then I can arrange so that when a user logs in, they go to the new page instead of the dashboard.
OK so far, but what happens if they login on the main site instead of their own subsite… how can I still take them to the “dashboard” page I’ve created on their own site?????
Forum: Networking WordPress
In reply to: Link from admin area to index/home page???LOL – yeah, I had spotted that 🙂
I’m trying to create a user-friendly version of basic functions on the dashboard. Got everything there now, except the elusive link to your home page!It seems fairly easy to create your own custom dashboard widget, but all the tuts I’ve seen only add html content. I wonder how to add the get blog info function in there???
Forum: Networking WordPress
In reply to: Link from admin area to index/home page???Thanks Mika, need a wee bit more help with this though..
how would you incorporate this as html? Like this?
<a href="get_bloginfo('url')">Site Home</a>I’m using a plugin called “custom dashboard widget” but it only lets you add html, not sure about php??
Forum: Networking WordPress
In reply to: Default role for new site owners?Thanks Mika.
Almost there now, I think…
I’ve never put this much effort or dedication into anything before. Hope it’s worth it.
Forum: Networking WordPress
In reply to: Linking to an admin menu function?Thanks – that’s all it was as you suggested – I’d been putting /wp-admin
instead of just wp-admin !Forum: Networking WordPress
In reply to: Linking to an admin menu function?sorted
Forum: Themes and Templates
In reply to: Adding a logo image to header?http://www.studiopress.com/ 🙂 their hallmark theme is called Gensis.
I know that, Mika.
Well, so much for the best support from the themes crowd… 🙂
Happy ending though, a nice guy on the wpmu Dev boards steered me towards this excellent tut: http://wp.tutsplus.com/tutorials/creative-coding/how-to-integrate-the-wordpress-media-uploader-in-theme-and-plugin-options/
I now have a shiny new “upload your logo” button in the wp appearance menu! Seems to work perfectly and does exactly what I was after.
See you when the next problem crops up
CheersForum: Themes and Templates
In reply to: Adding a logo image to header?“Genesis are an English rock band that formed in 1967. The band currently consists of its three longest-tenured members – Tony Banks (keyboards) and Mike Rutherford (bass, guitar), who were founding members; and Phil Collins (vocals, drums), who first joined in 1970. Past members Peter Gabriel (vocals, flute), Steve Hackett (guitar) and Anthony Phillips (guitar), also played major roles in the band in its early years. Genesis are among the top 30 highest-selling recording artists of all time, with approximately 150 million albums sold worldwide.[1]”
🙂
Forum: Themes and Templates
In reply to: Adding a logo image to header?…………….. busy looking up Genesis & DevPress……………….