drsim
Forum Replies Created
-
got it.. 🙂
i have to use $user_has_groups[0]->grel_group_id not just group_id..thanks anyway ,, good piece of code 😉
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.
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??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 ??
thanksaspero,
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.
thanksForum: Fixing WordPress
In reply to: Can't find visual editorIn 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
In reply to: How can i dynamicaly pass user and pass to wp siteAnybody please? any idea?
Forum: Plugins
In reply to: [WP-Ticker] [Plugin: WP-Ticker] Plugin activation errorThanks for the update.
Forum: Themes and Templates
In reply to: slider issues with Photoria themehave you changed the homepage from the settings?
Forum: Localhost Installs
In reply to: WordPress installwhich server are you using?
i would suggest you to download xampp from apache freinds. it is the best server.Forum: Fixing WordPress
In reply to: Whoa…Did WordPress just implode?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.here is the website which i am working on.
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.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.
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
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 pageParse error: syntax error, unexpected $end in C:\xampp\htdocs\pf\wp-content\plugins\bbpress-post-topics\templates\comments-bbpress.php on line 30