Advertisement
Guest User

bbPress various

a guest
Jun 16th, 2010
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. function next_time_say_please()
  2. {
  3.     global $bb_current_user;
  4.     $rewrite = bb_get_option( 'mod_rewrite' );
  5.  
  6.     if ( $rewrite ) {
  7.         if ( $rewrite === 'slugs' ) {
  8.             $column = 'user_nicename';
  9.         } else {
  10.             $column = 'ID';
  11.         }
  12.  
  13.         return "profile/{$bb_current_user->$column}/edit";
  14.     } else {
  15.         $query = array(
  16.             'id' => $user->ID,
  17.             'tab' => $tab,
  18.             'page' => (1 < $page) ? $page : false
  19.         );
  20.         return "profile.php?id={$bb_current_user->ID}&tab=edit";
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement