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: Ed Mesa

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


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Fatal Error with S2Member. Website down!

By:  Ed Mesa in: Community Forum

voices: 4
replies: 3

3 years, 10 months ago  Jason (Lead Developer)

Removing Admin Meta Box – Old Fixes Broken

By:  Tony Beaumont in: Community Forum

voices: 3
replies: 14

4 years, 6 months ago  Cristián Lávaque

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

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Fatal Error with S2Member. Website down!

By:  Ed Mesa in: Community Forum

voices: 4
replies: 3

3 years, 10 months ago  Jason (Lead Developer)

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Saturday Jul 7th, 2012 at 10:49 pm #18594

I copied just your code and pasted it into Notepad. It worked! I clicked on add new post as an Author and the restriction box was no longer there. It also wasn’t there when I checked the screen options which is great. As an Admin the s2 member restriction box by default wasn’t there either but if needed, a simple click on screen options and i could always bring it back on a per post basis for setting restriction levels. Thank you very much for such a quick turnaround and all of your help.

Posted: Saturday Jul 7th, 2012 at 10:17 pm #18589

I was trying to say that I tried it with and without the code tags. Thank you for your help. I took the code exactly as it is presented from earlier in this post.

Posted: Saturday Jul 7th, 2012 at 10:16 pm #18588

I created a new php file in Dreamweaver. I tried it with and without <code>. Thank you for your help.

Here is the entire contents of the file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>

<?php
add_action ('plugins_loaded', 'remove_s2_meta_box');
function remove_s2_meta_box()
{
    if (!current_user_is('administrator'))
        remove_action ('add_meta_boxes', 'c_ws_plugin__s2member_meta_boxes::add_meta_boxes');
}
  • This reply was modified 4 years, 6 months ago by  Cristián Lávaque. Reason: Fix the code tags
Posted: Saturday Jul 7th, 2012 at 4:53 pm #18577

Cristian,
I tried using this code that you provided to remove the s2member restriction box on the “add new post” page. However, it did not work. I created the necessary mu-plugins directory under wp-content and named the file s2hacks.php

The error I receive is: Parse error: syntax error, unexpected ‘< ' wp-content/mu-plugins/s2hacks.php on line 18

The only thing on line 18 is

Please help as we are launching our website by the latest Monday morning.

Viewing 4 replies - 1 through 4 (of 4 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.