-
shaisimchi posted on the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
and what do I put for the $user parameter from within bp-custom.php?
-
shaisimchi posted on the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
same result
-
shaisimchi posted on the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
Made the changes and now it doesnt redirect at all as opposed to before when it did redirect but to the wrong place
-
shaisimchi posted on the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
well yeah – these i know and can fix easily but it still doesnt redirect to the right place for some reason
-
shaisimchi posted on the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
i tried with the new action – same result. here is the function: function bp_location_redirect_to_page() { global $bp,$wpdb; $redirect_url_has_location = ‘http://athleticrash.com’; $city = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=26” , $bp->loggedin_user->id )); $state =…[Read more]
-
shaisimchi posted on the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
I am testing and only sending to the profile in certain cases.
it does seem that the redirection is working when the user logs in but the value is wrong.
according to what you say it should be like this?
add_action(‘login_redirect’,’bp_location_redirect_to_page’,100,0);
?? -
shaisimchi started the forum topic redirecting to user domain using $bp in the group How-To and Troubleshooting: 14 years, 7 months ago
Hi, I create a function in bp-custom.php that does redirection and hooks to the login process. after the function i am adding the action add_action(‘wp_login’,’bp_location_redirect_to_page’,100,0); the function is declaring global $bp and it seem to work fine except for one thing. I am trying to create a redirection as follows: $url =…[Read more]
-
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
ok – i was able to get this to work but encountering another issue. my redirect url is built as follows: $user_domain = $bp->loggedin_user->domain . “profile/edit”; for some reason the redirection is made to the home page url with the addition of “profile/edit” not actually putting the user domain infront of it in the string […]
-
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
i even tried sticking one of the redirects at the beginning of the function but it still takes me to the same (home) page.
how do I make sure this function is actually running during login?
also where should i put it? i put it under bp-custom.php = should it be in a different file? -
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
Hi – doesnt seem to work for me or im doing something wrong: here is kind of what i am doing: function bp_redirect_to_page() { $redirect_url_1 = ‘URL x’; $redirect_url_2 = ‘URL y’; get some DB values from wp_bp_xprofile_data if condition==x bp_core_redirect($redirect_url_1); else bp_core_redirect($redirect_url_2); } /*Add an action to redirec…[Read more]
-
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
ok – i think i got the idea – i will try later today and will let you know.
Thanks! -
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
@techguy
one other question – can you give me examples of where you actually used this action? -
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
Cheers – I will give that a shot.
-
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
What i want to do is something else: for example as soon as someone logs in i want to run a query in the db to check for specific values. if the value is X continue to home page if the value is Y continue to a different page. where would be the best place […]
-
shaisimchi posted on the forum topic put some conditions and redirection upon login in the group How-To and Troubleshooting: 14 years, 7 months ago
bumping – anyone?
-
shaisimchi posted on the forum topic pages not found after server migration in the group How-To and Troubleshooting: 14 years, 7 months ago
It is now resolved. there was no .htaccess in the root.
i created it manualy with the rewrite rules and now everything is working.
Thanks for your help!!!Shai
-
shaisimchi posted on the forum topic pages not found after server migration in the group How-To and Troubleshooting: 14 years, 7 months ago
I was not using the custom structure:
/%year%/%monthnum%/%day%/%postname%/
i did try already changing to default but the result is the same. -
shaisimchi posted on the forum topic pages not found after server migration in the group How-To and Troubleshooting: 14 years, 7 months ago
This is what I am seeing in the Apache error log file:
File does not exist: /home/athcrash/public_html/groups, referer: http://athleticrash.com/ -
shaisimchi posted on the forum topic pages not found after server migration in the group How-To and Troubleshooting: 14 years, 7 months ago
@r-a-y
this didn’t help – i had to reactivate all the plugins but it didnt change anything.
The homepage wasnt a problem as i could access it. the problem is other tabs such as members, groups etc.
Any other ideas?Thanks,
Shai
-
shaisimchi posted on the forum topic pages not found after server migration in the group How-To and Troubleshooting: 14 years, 7 months ago
btw – i did check and my mod_rewrite on apache is enabled. any other place i should look at?
Thanks,
Shai
- Load More
@shaisimchi
Not recently active