Guest User

S2M BBPRESS FIX 2

a guest
Jun 8th, 2010
891
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // in *forum*/bb-includes/functions.bb-users.php
  2.    
  3. static $wordpress_userlevel_map = array( // lines 134-138 leave as is
  4.     'administrator' => 10,
  5.     'editor' => 7,
  6.     'author' => 2,
  7.     'contributor' => 1,
  8.     'subscriber' => 0, // line 139 add comma
  9.     's2member_level4'=> 0, // lines 140-143 new
  10.     's2member_level3'=> 0,
  11.     's2member_level2'=> 0,
  12.     's2member_level1'=> 0
  13. );
  14.  
  15. // in *forum*/bb-admin/options-wordpress.php
  16.  
  17. $wpRoles = array( // lines 57-61 leave as is
  18.     'administrator' => __('WordPress Administrator'),
  19.     'editor'        => __('WordPress Editor'),
  20.     'author'        => __('WordPress Author'),
  21.     'contributor'   => __('WordPress Contributor'),
  22.     'subscriber'    => __('WordPress Subscriber'), //line 62 add comma
  23.     's2member_level4'=> __('s2Member Level 4'), // lines 63-66 new
  24.     's2member_level3'=> __('s2Member Level 3'),
  25.     's2member_level2'=> __('s2Member Level 2'),
  26.     's2member_level1'=> __('s2Member Level 1')
  27. );
RAW Paste Data