latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Donna Bungard

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
PayPal Pro form – No Amount on Checkout

By:  Donna Bungard in: Community Forum

voices: 3
replies: 5

3 years, 4 months ago  Donna Bungard

S2Member + BuddyPress + bbPress

By:  Donna Bungard in: Community Forum

voices: 2
replies: 12

3 years, 5 months ago  Donna Bungard

Custom Capabilities For Read / Write bbPress

By:  Donna Bungard in: Community Forum

voices: 1
replies: 3

3 years, 6 months ago  Donna Bungard

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
PayPal Pro form – No Amount on Checkout

By:  Donna Bungard in: Community Forum

voices: 3
replies: 5

3 years, 4 months ago  Donna Bungard

S2Member + BuddyPress + bbPress

By:  Donna Bungard in: Community Forum

voices: 2
replies: 12

3 years, 5 months ago  Donna Bungard

Custom Capabilities For Read / Write bbPress

By:  Donna Bungard in: Community Forum

voices: 1
replies: 3

3 years, 6 months ago  Donna Bungard

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 14 replies - 1 through 14 (of 14 total)
Author Replies
Author Replies
Posted: Friday Aug 16th, 2013 at 9:48 am #56028

Hi There

That worked!! Thank you

Posted: Thursday Aug 15th, 2013 at 8:59 am #55895

I’m sorry – I wasn’t emailed you had replied.

I had looked through the troubleshooting tips but will look again.

Here is the screen shot.

Thank you – we are anxious to get this wrapped up!!

Posted: Monday Aug 12th, 2013 at 11:13 am #55579

This is my code – generated via s2member but changed to accept the CCs in Paypal but not on the site itself.

[s2Member-Pro-PayPal-Form level="3" ccaps="" desc="Membership" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="URL.org" ta="0" tp="0" tt="D" ra="350" rp="1" rt="Y" rr="1" rrt="" rra="2" accept_via_paypal="paypal,visa,mastercard,amex,discover,maestro,solo" coupon="" accept_coupons="0" default_country_code="" captcha="0" accept="paypal" /]
Posted: Wednesday Jul 17th, 2013 at 3:54 pm #53582

Found a topic that helped a little – here is what I have – not giving an error but not working – still need to refine it.


<?php
$uri = $_SERVER["REQUEST_URI"];
$uri_array = split("/",$uri);
$uri_first = $uri_array[1]; // might need to change this to [1]
?>
<?php if ($uri_first == 'professional-membership-2' && !current_user_can("access_s2member_level4") ){ ?>
<style type="text/css">
	.bbp-reply-form, .bbp-topic-form {display: none;}
</style>';

<?php } ?>
Posted: Tuesday Jul 16th, 2013 at 3:15 pm #53527

Any thoughts?

Posted: Monday Jul 8th, 2013 at 11:57 am #53122

Hi – sorry had my vaca and didn’t get back to that!

So that works for specific posts – now how can I get that to target all of the topics under those posts?
Maybe something based of URL since forums go by URL?

Posted: Friday Jun 28th, 2013 at 10:22 am #52738

I almost have it = except now it’s targeting all levels. this is the code:


 <?php 
 if($post->ID == 2448){
	if (current_user_can("access_s2member_level0")){ 
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} elseif (current_user_can("access_s2member_level1")){
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} elseif (current_user_can("access_s2member_level2")){
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} elseif (current_user_can("access_s2member_level3")){
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} else {
}  
 }  ?>
  

I’ve tested it – the bbPress portion – targeting the posts IS working. Its the s2Member part that’s tricky.
Thank you for any help!

Posted: Friday Jun 28th, 2013 at 10:22 am #52737

I almost have it = except now it’s targeting all levels. this is the code:


 <?php 
 if($post->ID == 2448){
	if (current_user_can("access_s2member_level0")){ 
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} elseif (current_user_can("access_s2member_level1")){
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} elseif (current_user_can("access_s2member_level2")){
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} elseif (current_user_can("access_s2member_level3")){
echo '<style  type="text/css">
.bbp-reply-form{display:none;}
.bbp-topic-form{display:none;}
</style>';
} else {
}  
 }  ?>
  

The reason I”m specifying each level is because if I only say level 3 than levels 0, 1, & 2 would, by that logic, still be able to read it.

I’ve tested it – the bbPress portion – targeting the posts IS working. Its the s2Member part that’s tricky.
Thank you for any help!

Posted: Thursday Jun 27th, 2013 at 1:22 pm #52688

I also tried a version of what i posted above in my header file and that blew up. Thoughts? I’m not versed in this so if you have a better way please let me know / spell it out for me or show me a sample.

Posted: Thursday Jun 27th, 2013 at 10:05 am #52681

Hmmm tried putting the below into the header file instead (seemed to make more sense) but it blew up the page – help?!

<!--- Forum Edits--->
  <?php if (forum("professional-membership-2")){
<?php if (current_user_can("access_s2member_level0")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level1")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level2")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level3")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php }  ?>
<!--- END Forum Edits--->
Posted: Wednesday Jun 26th, 2013 at 11:52 am #52619

could I add soemthing like this to my functions.php file? (not a scripter so this may be a bit poorly written – would love someone to help me clean it up if it would work)

<?php if (forum("professional-membership-2")
<?php if (current_user_can("access_s2member_level0")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level1")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level2")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level3")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php }  ?>
Posted: Wednesday Jun 26th, 2013 at 9:32 am #52608

Ok, that makes sense however I’m not well versed in writing this kind of thing.

Would it be something like:

Level 0
/professional-membership-2/&…something to cut off their ability to edit?? Then copy that to levels 1-3??

OR could I add soemthing like this to my functions.php file? (not a scripter so this may be a bit baraock – would love someone to help me clean it up if it would work)

<?php if (forum("professional-membership-2")
<?php if (current_user_can("access_s2member_level0")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level1")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level2")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php if (current_user_can("access_s2member_level3")){ ?>
<style>
.bbp-reply-form{display:none;}
</style>
<?php }  ?>
<?php }  ?>
Posted: Tuesday Jun 25th, 2013 at 10:58 am #52546

OK I’ve removed BuddyPress from this – I think I should be able to do it with custom api but I am not sure how to do this. Anyone done this before?

Ive also installed the extended capabilities plugin but I think I will deactivate this – I see potential problems with that…

Posted: Wednesday Jun 19th, 2013 at 11:42 am #52218

bump

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

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.