Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-30T01:12:59-05:00 http://www.primothemes.com/forums/feed.php?f=36&t=707 2011-11-30T01:12:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54225#p54225 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by cclambie — November 30th, 2011, 1:12 am


]]>
2011-11-29T16:46:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54210#p54210 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by downeyworksout — November 29th, 2011, 4:46 pm


]]>
2011-11-29T16:32:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54209#p54209 <![CDATA[Re: Changing menu items according to membership level]]> Nav Menus ( hide protected content in menus generated with WordPress® ­> Appearance ­> Menus )

Should do it, if it doesn't then you may need to configure the theme.

Statistics: Posted by Eduan — November 29th, 2011, 4:32 pm


]]>
2011-11-29T16:20:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54208#p54208 <![CDATA[Re: Changing menu items according to membership level]]>
I DO want certain pages to appear on the nav menu only if the member has the required level to see that page, however, Alternative Views Protection does not do that. :( Thanks again for trying though.

Statistics: Posted by downeyworksout — November 29th, 2011, 4:20 pm


]]>
2011-11-29T10:21:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54196#p54196 <![CDATA[Re: Changing menu items according to membership level]]> If so then you can check under WP Admin -> s2Member -> Restriction Options -> Alternative Views Protection and configure everything there.

Hope this helps. :)

Statistics: Posted by Eduan — November 29th, 2011, 10:21 am


]]>
2011-11-29T09:51:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54195#p54195 <![CDATA[Re: Changing menu items according to membership level]]>

Here's the deal, just like Sunny (the post originator), I want to have two nav menu lists. I have two levels of s2Members and want the public members to see one menu and the monthly pay members to see a different nav menu. For example. I run a fitness / modeling website. I want my free subscribers to have a "Training" nav tab with one set of prices, but I want the monthly paid members to have a "Training" tab under the "Members" tab with different prices, but the original tab to not be shown so there is no confusion. You can see how it's set up on my website: http://downeyworksout.com

Statistics: Posted by downeyworksout — November 29th, 2011, 9:51 am


]]>
2011-11-29T09:14:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54194#p54194 <![CDATA[Re: Changing menu items according to membership level]]> http://www.s2member.com/paypal-modifica ... ons-video/

Hope this helps. :)

Statistics: Posted by Eduan — November 29th, 2011, 9:14 am


]]>
2011-11-29T07:36:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54192#p54192 <![CDATA[Re: Changing menu items according to membership level]]> Any other suggestions on how to make certain pages appear for certain member levels?

Statistics: Posted by downeyworksout — November 29th, 2011, 7:36 am


]]>
2011-11-29T01:44:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54161#p54161 <![CDATA[Re: Changing menu items according to membership level]]>
I put the Primo Theme based menus below your current Menu, so I hope it works out for you.
Just changed the attached file extension from.txt to .php

Change I made starting at line 131, addition is at line 160 to 166 (in actual document)
Code:
<div id="navmenu">
<?php
get_template_part('nav',tech_nav_select());
}
if ($tech['nav_menu_type'] != "Disable" && $tech_disable_nav != "checked") {
if ($tech['dashboard_link'] == "On") {
if (is_user_logged_in()) { ?>
<ul id="admin"><li><a href="<?php echo site_url(); ?>/wp-admin" title="<?php _e('Dashboard' ,'techozoic')?>"><?php _e('Dashboard' ,'techozoic')?></a></li>
<li><a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log Out' ,'techozoic')?>"><?php _e('Log Out' ,'techozoic')?></a></li></ul>
<?php
} else { ?>
<ul id="admin"><li>
<?php if ($tech['thickbox'] =="On") {
?>
<a href="#TB_inline?height=120&amp;width=120&amp;inlineId=loginthick" class="thickbox" title="Login"><?php _e('Login' ,'techozoic')?></a>
<?php } else {
?>    <a href="<?php echo wp_login_url();?>" title="<?php _e('Login' ,'techozoic')?>"><?php _e('Login' ,'techozoic')?></a>
<?php }
?>
</li></ul>
<?php
if(!is_user_logged_in()){
    wp_nav_menu (array ("theme_location" => "primary-public"));
} else {
    $level = S2MEMBER_CURRENT_USER_ACCESS_LEVEL;
    wp_nav_menu (array ("theme_location" => "primary-level-".$level));
}
?>
<div id="loginthick" style="display:none">
<div class="aligncenter">
<form action="<?php echo site_url(); ?>/wp-login.php" method="post" id="loginform">
<label><?php _e('Username: ' ,'techozoic')?><br /><input type="text" id="user_login" class="text" name="log"/></label><br />
<label><?php _e('Password: ' ,'techozoic')?><br /><input type="password" id="user_pass" class="text" name="pwd"/></label><br />
<input type="submit" id="wp-submit" value="<?php _e('Log in' ,'techozoic')?>" />
<input type="hidden" name="redirect_to" value="<?php echo "http://".$_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI']; ?>" />
<input type="hidden" name="testcookie" value="1" />
</form>
</div><!--end aligncenter-->
</div><!--end loginthick-->
<?php }
}
?>
</div><!--end navmenu-->

Statistics: Posted by cclambie — November 29th, 2011, 1:44 am


]]>
2011-11-29T00:39:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54152#p54152 <![CDATA[Re: Changing menu items according to membership level]]>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php get_bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
get_tech_options();
global $tech, $cpage;
if ( is_singular() ){
$tech_disable_nav = get_post_meta($post->ID, "Nav_value", $single = true);
} else {
$tech_disable_nav = "unset";
}
if($tech['seo'] == 'On')
{
if(is_single()) {
if ( have_posts() ) {
while ( have_posts() ) {
the_post(); ?>
<meta name="description" content="<?php $excerpt = strip_tags(get_the_excerpt()); echo $excerpt; if ( $cpage < 1 ) {} else { echo (' - comment page '); if ( isset($cpage)) {echo ($cpage);}} ?>" />
<meta name="keywords" content="<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ','; } $posttags = get_the_tags();if ($posttags) {foreach($posttags as $tag) {echo $tag->name . ','; } } ?>" />
<?php }
}
} elseif(is_home()) { ?>
<meta name="description" content="<?php bloginfo('description'); ?>" />
<?php } ?>
<title>
<?php
if (is_day() || is_month() || is_year()) {
_e('Archive for ' ,'techozoic');
}
wp_title(' - ','true','right');
if ( $cpage < 1 ) {}
else {
echo (' - comment page ');
if ( isset($cpage)){
echo $cpage;
}
echo " | ";
}
bloginfo('name');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
if ($paged > 1) {
echo " - Page $paged";
} ?>
</title>
<?
}//End tech_seo
else { ?>
<title><?php wp_title(' - ','true','right') . bloginfo('name'); ?></title>
<?php
} ?>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<?php
if ($tech['static_css'] == "Static" || (isset($_GET['stylesheet']) && $_GET['stylesheet'] = 'techozoic-fluid') ) { ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/style.css" />
<?php
} else { ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo home_url(); ?>/?techozoic_css=css"/>
<?php } ?>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri() ?>/ie6.css" />
<![endif]-->
<!--[if IE]>
<style type="text/css">
#headerimg{ filter:alpha(opacity=80);}
.top img{ filter:alpha(opacity=60);}
.top img:hover{ filter:alpha(opacity=100);}
ul.comment-preview li{ filter:alpha(opacity=70);}
ul.comment-preview li:hover{ filter:alpha(opacity=100);}
</style>
<![endif]-->
<!--[if IE 7]>
<style type="text/css">
#headerimgwrap{ position:absolute;left:20%}
.hleft{position:absolute;}
.hright{position:absolute; right:0;}

</style>
<![endif]-->
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ($tech['favicon_image']) {?>
<link rel="icon" href="<?php echo $tech['favicon_image'];?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $tech['favicon_image'];?>" type="image/x-icon" />
<?php }
if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<a name="top"></a>
<div id="header">
<div id="header_top">
<?php if ( function_exists('dynamic_sidebar') && is_active_sidebar( 'left_header' ) ){
echo '<div class="hleft">'. "\n";
dynamic_sidebar( 'left_header' );
echo '</div>' . "\n";
}
if ( function_exists('dynamic_sidebar') && is_active_sidebar( 'right_header' ) ){
echo '<div class="hright">' . "\n";
dynamic_sidebar( 'right_header' );
echo '</div>' . "\n";
}
?>
<div id="headerimgwrap">
<div id="headerimg">
<?php if(is_single() || is_page()) {
echo "<span class=\"blog_title\">";
} else {
echo "<h1 class=\"blog_title\">";
}
if ( is_single() & $tech['blog_title_text'] == "Single Post Title") { ?>
<a><?php wp_title('',true,''); ?></a><?php
} else { ?>
<a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a>
<?php
}
if(is_single() || is_page()) {
echo "</span>";
} else {
echo "</h1>";
}
if ( is_single() & $tech['blog_title_text'] == "Single Post Title") {
$description = "<a href=\"" . home_url() . "\">" . get_bloginfo('name') . "</a>"; }
else {
$description = get_bloginfo('description');
}
if (!empty ($description)) { ?>
<span class="description"><?php echo $description; ?></span>
<?php
} ?>
</div><!--end headerimg-->
</div><!--end headerimgwrap-->

<div id="headerl">
<div id="headerr">
</div><!--end headerr-->

<?php if ($tech['nav_menu_type'] != "Disable" && $tech_disable_nav != "checked") {
?>
<div id="navmenu">
<?php
get_template_part('nav',tech_nav_select());
}
if ($tech['nav_menu_type'] != "Disable" && $tech_disable_nav != "checked") {
if ($tech['dashboard_link'] == "On") {
if (is_user_logged_in()) { ?>
<ul id="admin"><li><a href="<?php echo site_url(); ?>/wp-admin" title="<?php _e('Dashboard' ,'techozoic')?>"><?php _e('Dashboard' ,'techozoic')?></a></li>
<li><a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log Out' ,'techozoic')?>"><?php _e('Log Out' ,'techozoic')?></a></li></ul>
<?php
} else { ?>
<ul id="admin"><li>
<?php if ($tech['thickbox'] =="On") {
?>
<a href="#TB_inline?height=120&amp;width=120&amp;inlineId=loginthick" class="thickbox" title="Login"><?php _e('Login' ,'techozoic')?></a>
<?php } else {
?><a href="<?php echo wp_login_url();?>" title="<?php _e('Login' ,'techozoic')?>"><?php _e('Login' ,'techozoic')?></a>
<?php }
?>
</li></ul>
<div id="loginthick" style="display:none">
<div class="aligncenter">
<form action="<?php echo site_url(); ?>/wp-login.php" method="post" id="loginform">
<label><?php _e('Username: ' ,'techozoic')?><br /><input type="text" id="user_login" class="text" name="log"/></label><br />
<label><?php _e('Password: ' ,'techozoic')?><br /><input type="password" id="user_pass" class="text" name="pwd"/></label><br />
<input type="submit" id="wp-submit" value="<?php _e('Log in' ,'techozoic')?>" />
<input type="hidden" name="redirect_to" value="<?php echo "http://".$_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI']; ?>" />
<input type="hidden" name="testcookie" value="1" />
</form>
</div><!--end aligncenter-->
</div><!--end loginthick-->
<?php }
}
?>
</div><!--end navmenu-->
<?php }
if ($tech['breadcrumbs'] == "On"){
tech_breadcrumbs();
}?>
</div><!--end headerl-->
</div><!--end header_top-->
</div><!--end header-->


<div id="page">
<div id="pagel">
<div id="pager">
<?php if ($tech['search_box'] == "Yes" && !is_active_sidebar( 'right_header' )) { ?>
<div id="search">
<?php get_search_form(); ?>
</div>
<?php } ?>

Statistics: Posted by downeyworksout — November 29th, 2011, 12:39 am


]]>
2011-11-28T23:00:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54138#p54138 <![CDATA[Re: Changing menu items according to membership level]]> You don't need to replace anything in these steps - just follow them exactly.

You might like to do Step #4 first:
Create 2 Menus (for your 2 access levels)
Call them "primary-public" and "primary-level-0"

Then add this to functions.php
add_theme_support("nav-menus");
register_nav_menu ("primary-public", "Primary Menu ( public )");
register_nav_menu ("primary-level-0", "Primary Menu ( Level #0 )");

Then work out the logic required in your header.php file - post it here if you are having issues and I can take a look.

Statistics: Posted by cclambie — November 28th, 2011, 11:00 pm


]]>
2011-11-28T21:05:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54130#p54130 <![CDATA[Re: Changing menu items according to membership level]]>

Statistics: Posted by downeyworksout — November 28th, 2011, 9:05 pm


]]>
2011-11-28T21:02:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54129#p54129 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by cclambie — November 28th, 2011, 9:02 pm


]]>
2011-11-28T20:39:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54125#p54125 <![CDATA[Re: Changing menu items according to membership level]]> Where are those posts? Thanks for the reply!

Statistics: Posted by downeyworksout — November 28th, 2011, 8:39 pm


]]>
2011-11-28T18:39:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54115#p54115 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by cclambie — November 28th, 2011, 6:39 pm


]]>
2011-11-28T18:04:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=54109#p54109 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by downeyworksout — November 28th, 2011, 6:04 pm


]]>
2011-10-11T12:55:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=45362#p45362 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by Cristián Lávaque — October 11th, 2011, 12:55 pm


]]>
2011-10-10T19:02:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=45298#p45298 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by cclambie — October 10th, 2011, 7:02 pm


]]>
2011-10-10T03:46:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=45236#p45236 <![CDATA[Re: Changing menu items according to membership level]]> Is that possible?
I am using a plugin called "widgets_on_pages" to put a menu onto the page at present, but would happily use some other method.
I have just implemented a system where people can access just 1 page of 7 protected pages, and a "thanks" page and I would like to limit the menu to this page.
Or if there is some way to know what page they have purchased, I could use CSS to point out that only certain pages in the menu are accessible?
Thoughts?

Statistics: Posted by cclambie — October 10th, 2011, 3:46 am


]]>
2011-09-02T16:32:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=33783#p33783 <![CDATA[Re: Changing menu items according to membership level]]> ediscovery that allows you to keep well organized across multiple sets of data. Let me know guys, we can track our codes, finances, contacts, whatever we need. Kind of like a cloud with closet.

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


]]>
2011-07-10T19:08:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=26402#p26402 <![CDATA[Re: Changing menu items according to membership level]]>
Code:
    register_nav_menu ("primary-public", "Primary Menu ( public )");
    register_nav_menu ("primary-level-0", "Primary Menu ( Level #0 )");
    register_nav_menu ("primary-level-1", "Primary Menu ( Level #1 )");
    register_nav_menu ("primary-level-2", "Primary Menu ( Level #2 )");
    register_nav_menu ("primary-level-3", "Primary Menu ( Level #3 )");
    register_nav_menu ("primary-level-4", "Primary Menu ( Level #4 )");


I suppose you could also change the header.php code to lose the dash, I guess I just think the dash makes things cleaner-looking. ;)

Statistics: Posted by MacilattheWP — July 10th, 2011, 7:08 pm


]]>
2011-03-12T00:47:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=7730#p7730 <![CDATA[Re: Changing menu items according to membership level]]>
Have you got any further with the s2clean / BuddyPress combo?

Thanks

Statistics: Posted by Bendov — March 12th, 2011, 12:47 am


]]>
2010-09-10T01:18:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=3157#p3157 <![CDATA[Re: Changing menu items according to membership level]]>
We're working on an s2Clean/BuddyPress combo.
Actually, we have quite of bit of new stuff being released soon.

Statistics: Posted by Jason Caldwell — September 10th, 2010, 1:18 am


]]>
2010-09-09T12:02:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=3111#p3111 <![CDATA[Re: Changing menu items according to membership level]]> Statistics: Posted by sunny — September 9th, 2010, 12:02 pm


]]>
2010-09-09T11:53:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=707&p=3108#p3108 <![CDATA[Re: Changing menu items according to membership level]]> @TODO :: integrate drop-down option into the WordPress® menu system
This could be made even easier ( perhaps ), if s2Member integrated options of its own.
( this needs further investigation ).

Statistics: Posted by Jason Caldwell — September 9th, 2010, 11:53 am


]]>