Title: drsim's Replies | WordPress.org

---

# drsim

  [  ](https://wordpress.org/support/users/drsim/)

 *   [Profile](https://wordpress.org/support/users/drsim/)
 *   [Topics Started](https://wordpress.org/support/users/drsim/topics/)
 *   [Replies Created](https://wordpress.org/support/users/drsim/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/drsim/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/drsim/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/drsim/engagements/)
 *   [Favorites](https://wordpress.org/support/users/drsim/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/drsim/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/drsim/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Access Manager] [Plugin: User Access Manager] [Question]Redirect user after login](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/#post-2950731)
 * got it.. 🙂
    i have to use $user_has_groups[0]->grel_group_id not just group_id..
 * thanks anyway ,, good piece of code 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Access Manager] [Plugin: User Access Manager] [Question]Redirect user after login](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/#post-2950730)
 * Yes i did. and i did some further debuging..
 * when i execute in sql …
 * `$user_has_groups = $wpdb->get_results('SELECT grel_group_id FROM '.$wpdb->prefix.'
   ps_group_relationships WHERE grel_user_id = '.$user->ID, OBJECT);`
 * above query return the group id.
    then…
 *     ```
       $rul_users = $wpdb->get_results('SELECT rul_value, rul_url FROM ' . $rul_db_addresses .
              	' WHERE rul_type = \'group\' AND rul_value = '.$user_has_groups[0]->group_id , OBJECT);
       ```
   
 * it returns the rul_value and rul_url..
 * but
 *     ```
       if ($rul_users) {
           		{
              			foreach( $rul_users as $rul_user )
              			{
       				echo $rul_user->rul_url;
                  			$redirect_to = rulRedirectFunctionCollection::rul_replace_variable( $rul_user->rul_url, $user );
                  			return $redirect_to;
              			}
           		}
       		}
       ```
   
 * this part never gets true, it does not enter into loop.. so no redirects.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Access Manager] [Plugin: User Access Manager] [Question]Redirect user after login](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/#post-2950728)
 * i think i have found the problem..
    $user_has_groups = $wpdb->get_results(‘SELECT
   group_id FROM ‘.$wpdb->prefix . ‘uam_accessgroup_to_object WHERE object_type 
   = \’user\’ AND object_id = ‘.$user->ID, OBJECT);
 * above is your query and below is what i have..
 * $user_has_groups = $wpdb->get_results(‘SELECT grel_group_id FROM ‘.$wpdb->prefix.‘
   ps_group_relationships WHERE grel_user_id = ‘.$user->ID, OBJECT);
 * i was assuming that object_id is user id, but it is the page id ,, so in wp member
   plugin , it does not save the page id in groups relationship table..
    how can
   i get around with that??
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Access Manager] [Plugin: User Access Manager] [Question]Redirect user after login](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/#post-2950727)
 * Thanks jlipford and aspero..
    i have changed the DB queries according to wp members
   plugin, everything works , it is even saving the redirects in admin panel, but
   it is not redirecting after login,, i am using /wp-login.php page to test and
   it redirect the user to the profile page instead of the group page. any idea ??
   thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Access Manager] [Plugin: User Access Manager] [Question]Redirect user after login](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-questionredirect-user-after-login/#post-2950723)
 * aspero,
    thanks for your modifications.. i am using wp-members plugins for groups.
   and your changes not showing me groups in admin panel settings of login/logout
   redirects.. Any help would be appreciated. thanks
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can't find visual editor](https://wordpress.org/support/topic/cant-find-visual-editor/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/cant-find-visual-editor/#post-2565834)
 * In my case i can see the admin toolbar and the visual editor in my PC , but in
   my laptop it disappeared. did all the things you mentioned above but no luck,,
   what the heck this issue is?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How can i dynamicaly pass user and pass to wp site](https://wordpress.org/support/topic/how-can-i-dynamicaly-pass-user-and-pass-to-wp-site/)
 *  Thread Starter [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-dynamicaly-pass-user-and-pass-to-wp-site/#post-2625524)
 * Anybody please? any idea?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Ticker] [Plugin: WP-Ticker] Plugin activation error](https://wordpress.org/support/topic/plugin-wp-ticker-plugin-activation-error/)
 *  Thread Starter [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-ticker-plugin-activation-error/#post-2706667)
 * Thanks for the update.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [slider issues with Photoria theme](https://wordpress.org/support/topic/slider-issues-with-photoria-theme/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/slider-issues-with-photoria-theme/#post-2210045)
 * have you changed the homepage from the settings?
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [WordPress install](https://wordpress.org/support/topic/wordpress-install-5/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/wordpress-install-5/#post-2638665)
 * which server are you using?
    i would suggest you to download xampp from apache
   freinds. it is the best server.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Whoa…Did WordPress just implode?](https://wordpress.org/support/topic/whoadid-wordpress-just-implode/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/whoadid-wordpress-just-implode/#post-2638664)
 * do you have the access of FTP?
    easy way is ftp your website and remove the mailchimp
   directory from wp-content->plugins and then try to reinstall it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Comments as bbPress Topics] [Plugin: bbPress Topics for Posts] Parse error: syntax error, unexpected '}' in …/index.](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/#post-2533865)
 * here is the website which i am working on.
    [http://beta.palestinefacts.org/](http://beta.palestinefacts.org/)
   it has very long comments and i want to move all the comments to the forum as
   topic and replies. and on the post page only 5 recent comments will show and 
   rest will go to the topic page. like your plugin works. but currently if i make
   comment on the homepage, all the existing comments got away.. i hope you get 
   what i m trying to accomplish here.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Comments as bbPress Topics] [Plugin: bbPress Topics for Posts] Parse error: syntax error, unexpected '}' in …/index.](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/#post-2533864)
 * David, threaded comments can be printed as normal replies, and i think this is
   acceptable. but it is very important to have existing comments moved to replies,
   other wise we can loose a good amount of discussion data.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Comments as bbPress Topics] [Plugin: bbPress Topics for Posts] Parse error: syntax error, unexpected '}' in …/index.](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/#post-2533790)
 * Thanks David, will have a go in short while.
    One more thing thou. Is there any
   way that already existing posts or pages with comments can be transferred as 
   topics and replies? I already have about 400 posts with a lot of comments. and
   the reason i want bbpress in my blog so that long discussions can be mvoed to
   forum. and right now your plugin only work if you publish a new post. I have 
   tried bbsyn, it doesn’t work. It would be nice if you can put an option of migrate
   of sync in your plugin to convert existing contents to bbpress.
 * Thanks in advacne
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Comments as bbPress Topics] [Plugin: bbPress Topics for Posts] Parse error: syntax error, unexpected '}' in …/index.](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/)
 *  [drsim](https://wordpress.org/support/users/drsim/)
 * (@drsim)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-bbpress-topics-for-posts-parse-error-syntax-error-unexpected-in-indexphp-on-line-137/#post-2533773)
 * It does not let me change the option of
    “Only the [5] [most recent] replies”
   no matter what i enter it always stays 5 in the drop down. and it also triggers
   an error on the post page
 * > Parse error: syntax error, unexpected $end in C:\xampp\htdocs\pf\wp-content\
   > plugins\bbpress-post-topics\templates\comments-bbpress.php on line 30

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/drsim/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/drsim/replies/page/2/?output_format=md)