Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-02T16:58:29-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10273 2011-09-02T16:58:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=33788#p33788 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> - one page that is a sales pitch, with all the selling blahblah, NO breadcrumbs and NO navigation
- one page with the actual links to the class videos, with the breadcrumbs and navigation

If you go to the section in the navigation, you will go here:
http://scrapbookcampus.com/register-bas ... -with-psp/

But if you are already registered for that course, it will direct you to this page instead:
http://scrapbookcampus.com/welcome-to-t ... ng-course/

It works for me.

Here is the thread that helped me: viewtopic.php?f=4&t=14376&hilit=redirect

Statistics: Posted by cassel — September 2nd, 2011, 4:58 pm


]]>
2011-09-02T16:36:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=33785#p33785 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> StoredIQ? They are an information governance tech group.

Statistics: Posted by presson — September 2nd, 2011, 4:36 pm


]]>
2011-06-26T20:40:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21785#p21785 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> Statistics: Posted by cassel — June 26th, 2011, 8:40 pm


]]>
2011-06-26T20:30:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21782#p21782 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> $homelink =. The line you quoted is where you concatenate your new nav item to the other ones.

I'm not sure about the error, maybe you want to ask your theme's developer in case his theme works differently for this kind of thing.

Statistics: Posted by Cristián Lávaque — June 26th, 2011, 8:30 pm


]]>
2011-06-26T20:11:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21780#p21780 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> add_filter( 'wp_nav_menu_items', 'new_nav_menu_items' );

Was i supposed to edit it too somehow?

Statistics: Posted by cassel — June 26th, 2011, 8:11 pm


]]>
2011-06-26T19:59:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21778#p21778 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]>
$items = $homelink . $items;

In Bob's example, he refers to the home page, is that previous line pointing specifically to the home page? Do i have to change it for another page/tab in the navigation?

Statistics: Posted by cassel — June 26th, 2011, 7:59 pm


]]>
2011-06-26T19:28:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21774#p21774 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> Statistics: Posted by cassel — June 26th, 2011, 7:28 pm


]]>
2011-06-26T19:26:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21772#p21772 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> is_user_logged_in()? You'd change that to current_user_can('access_s2member_ccap_forum'). In the next line you edit the link.

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — June 26th, 2011, 7:26 pm


]]>
2011-06-26T15:02:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21757#p21757 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> Would someone be nice enough to point me to what part needs editing for it (i am a little confused with what all those mean):
- navigation tab to hide: forum
- link to that page: mydomain/forum-2
- ccap: forum
Only those who will have purchased one package including "forum" as part of the ccap should see and access that page.

Statistics: Posted by cassel — June 26th, 2011, 3:02 pm


]]>
2011-06-24T12:46:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21620#p21620 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]>

Statistics: Posted by Cristián Lávaque — June 24th, 2011, 12:46 pm


]]>
2011-06-24T11:10:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21608#p21608 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]>
(1) Open up the functions.php file FOR YOUR GIVEN THEME to edit
(2) Add this function at the very bottom (before the closing ?> ):

Code:

    
// BOB ADDED THIS!  Adds the correct member level member home page!
    
function new_nav_menu_items($items) {
    
        if (
is_user_logged_in())
            
$homelink '<li><a href="/welcome-' S2MEMBER_CURRENT_USER_ACCESS_LEVEL.'">Members Home</a></li>';

        
$items $homelink $items;
        return 
$items;
    }
    
add_filter'wp_nav_menu_items''new_nav_menu_items' );
 


For more information, see:

http://wpfirstaid.com/tag/wp_nav_menu/

Statistics: Posted by BobTabor — June 24th, 2011, 11:10 am


]]>
2011-06-24T10:48:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21606#p21606 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]>
viewtopic.php?f=4&t=10236&p=21366

... I would just add to Jason that, if you could, optionally allow to show / hide individual menu options BY MEMBERSHIP LEVEL. In one case, I want to show the appropriate "Home" link in the menu using S2MEMBER_CURRENT_USER_ACCESS_LEVEL (authorized). In another case, I want to show ALL links in the menu based on whether the user is logged in / (authenticated) or not. Thanks!

Any good resources on modifying menus in themes? I'm off to search for that now.

Statistics: Posted by BobTabor — June 24th, 2011, 10:48 am


]]>
2011-06-24T09:45:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21603#p21603 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> Statistics: Posted by BobTabor — June 24th, 2011, 9:45 am


]]>
2011-06-23T21:50:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21546#p21546 <![CDATA[Re: Welcome Page, Replacement Codes and WordPress Navigation]]> S2MEMBER_CURRENT_USER_ACCESS_LEVEL.

Code:
if (is_user_logged_in())
    echo '<a href="/welcome-', S2MEMBER_CURRENT_USER_ACCESS_LEVEL, '">Members Home</a>';
 

Statistics: Posted by Cristián Lávaque — June 23rd, 2011, 9:50 pm


]]>
2011-06-23T17:17:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10273&p=21527#p21527 <![CDATA[Welcome Page, Replacement Codes and WordPress Navigation]]>
I've created a Welcome page scheme that uses replacement codes. So:

http://members.learnvisualstudio.net/welcome-%%current_user_level%%

Produces:

http://members.learnvisualstudio.net/welcome-0
http://members.learnvisualstudio.net/welcome-1
etc.

I've envisioned the "welcome" page as the "members' home" page, and want to create a link in navigation to get back to this page. However, having tried to create a custom menu option in WordPress' menu using the replacement code, I see that is not possible.

(1) Can you help me determine what my options are?

(2) Am I thinking of the "welcome" page all wrong? I definitely need to display different info to different users after login, but I also need them to be able to get BACK there.

Thanks!
Bob

Statistics: Posted by BobTabor — June 23rd, 2011, 5:17 pm


]]>