Forum Replies Created
-
Really thanks Henry, I’ll do this and I’ll let you know…
I put it into my code file and also into functions.php but always empty.
I changed it to:
if ( isset( $_GET['var1'] ) ) { echo $_GET['var1']; exit(); }
In my code file it return empty, into functions.php it return test
However I notice this: when I put the following code into the functions.php file, it return OK.
if ($_GET['var1']) { echo "OK"; }
When I call the page using the BPress EDIT page URL
http://www.mysite.com/index.php/members/userxxx/profile/edit/?var1=TEST
it seems to do a double page request because it says: Notice: Undefined index: var1 in functions.phpI also tried to add an EXIT and it show me the OK
if ($_GET['var1']) { echo "OK"; exit(); }
Hi @henrywright, did you take a look to the code ?
Hello Henry, take a look here http://pastebin.com/LB0E98hB
Yes, I’m calling in to the public function edit_field_html
I’m sure it’s fired because I write the else condition and it goes into it.The url is called with /index.php/members/userXX/profile/edit/?var1=aaaa
Hello Shane,
I called manually the URL in the browser with the ?var1=TEST to be sure that it’s called properly but nothing change.I’m calling it from the buddypress-xprofile-custom-fields-type plugin, do you think could be some filter that intercept querystring and reset it ?
I danpd, the problem was related to link path with permalink settings
This doesn’t work
http://www.city4run.com/members/user47/profile/edit/group/1/This work
http://www.city4run.com/members/user47/profile/edit/I don’t know the cause (maybe it try to edit a group ?) however now it’s fixed.
Hi danpb,
sorry for late answer, I’ve been in vacation…In the profile edit page I’ve this simple link:
When I click on it, it open a Runkeeper page with 2 buttons: ALLOW and DENY, if I click on ALLOW it redirect to http://www.city4run.com/members/user47/profile/edit/group/1/?code=a8476b4901f543f2b8bed78317ea6589
but instead of showing profile edit page, it show home page.After playing around, it seems related to permalinks settings, I didn’t find a solution but I understood I need to get deeper on this
Thanks Dan, unfortunately I tried changing bp_core_redirect function hardcoding $location variable but it doesn’t change. Any other idea ?
Anyone can help me ?