Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-11T15:48:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16784 2012-01-11T15:48:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60284#p60284 <![CDATA[Re: Adding Membership Levels not working]]>
Eduan wrote:
Did it look like this?:
Code:
<?php define("MEMBERSHIP_LEVELS", 7); 

Or did it look like this?:
Code:
<?php
define
("MEMBERSHIP_LEVELS", 7); 

The first one is incorrect, the second one is correct (because of the positioning of the code after the <?php). Well it's incorrect in large files, or I consider it bad practice.


It looked like the second one.
Thanks.

Statistics: Posted by timmay — January 11th, 2012, 3:48 pm


]]>
2012-01-11T15:30:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60279#p60279 <![CDATA[Re: Adding Membership Levels not working]]>
timmay wrote:
I had previously tried inserting the line at the end of wp-config.php, which appeared to not get read at all by the s2member plugin.


This is what I tried and it works for me:

Code:
<?php
define
("MEMBERSHIP_LEVELS", 7);
/**
 * The base configurations of the WordPress.
 *
....

Statistics: Posted by Raam Dev — January 11th, 2012, 3:30 pm


]]>
2012-01-11T15:29:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60277#p60277 <![CDATA[Re: Adding Membership Levels not working]]>
Code:
<?php define("MEMBERSHIP_LEVELS", 7); 

Or did it look like this?:
Code:
<?php
define
("MEMBERSHIP_LEVELS", 7); 

The first one is incorrect, the second one is correct (because of the positioning of the code after the <?php). Well it's incorrect in large files, or I consider it bad practice.

Statistics: Posted by Eduan — January 11th, 2012, 3:29 pm


]]>
2012-01-11T14:45:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60262#p60262 <![CDATA[Re: Adding Membership Levels not working]]>

right after the <?php tag
That is precisely what didn't work, and why I turned to the forum.
Ironically, as described in my second post, removing it from right after the <?php tag, and moving it farther down the wp-config.php file is what made it finally work....but whatever.

Statistics: Posted by timmay — January 11th, 2012, 2:45 pm


]]>
2012-01-11T14:11:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60247#p60247 <![CDATA[Re: Adding Membership Levels not working]]>
As described in WP Admin -> s2Member -> General Options -> Membership Levels/Labels, the line should be inserted at the top of your /wp-config.php file, right after the <?php tag.

Statistics: Posted by Raam Dev — January 11th, 2012, 2:11 pm


]]>
2012-01-10T11:41:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60143#p60143 <![CDATA[Re: Adding Membership Levels not working]]> On a whim, I tried inserting it at line 37, which makes no sense because that is in the db settings, but it worked. I now have my seven levels in the membership levels section.
timmay

Statistics: Posted by timmay — January 10th, 2012, 11:41 am


]]>
2012-01-10T11:34:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16784&p=60142#p60142 <![CDATA[Adding Membership Levels not working]]> Wordpress 3.3.1 and S2Member Pro 111220

I added define("MEMBERSHIP_LEVELS", 7); to my wp-config.php file, directly below the opening php tag and saved.
Now when I navigate to any S2Member page in the admin interface, I just get a blank white page. no error, nothing.

If I remove the line from wp-config.php, everything works again, but of course I don't have my 7 levels.

Please help as this is the only reason I purchased the Pro version...
Thanks,
timmay

Statistics: Posted by timmay — January 10th, 2012, 11:34 am


]]>