1 michas Oct 10, 2006 18:20
3 michas Oct 11, 2006 22:25
Thank you for your quick response :D
I did as suggested.
At first I got an error message, easily solved by editing the _main.php of my skin. (The normal function has been user_login_link so I had to change that)
I suggest you'll change the get_user_login_link function to user_login_link so that it'll work with the normal skins.
Afer this change I'm able to view the blog, but the login link doesn't appear.
[url=http://www.partyshock.de/kolumneblog/index.php?blog=5]Viewable here[/url]
4 blueyed Oct 12, 2006 18:06
user_login_link() uses get_user_login_link(). It just echos it out.
So, if you use get_user_login_link() in your skin, add a "echo " in front of it, or use user_login_link() as before.
So, what was the error, which you've tried to solve by changing your _main.php file?
5 michas Oct 15, 2006 15:31
Arr Sorry. I did a editing mistake in the user.func.php. :oops:
Login works fine, thx :D
6 blueyed Oct 15, 2006 22:57
Fine. So I'll apply the url_rel_to_same_host() function to other places also for 1.9.
7 quamper Nov 01, 2006 18:03
I have this same problem with my webhost.
I made the changes like you suggested and it corrected it for Login link like expected.
Can I change the other links myself or should I just wait for an updated version to be available?
It's not a big deal since I'm the only one that uses it, but it'd be great to see it fixed.
8 blueyed Nov 01, 2006 20:33
It's in our repository for 1.9. You would have to manually change the other functions, like e.g. "user_logout_link()" and "user_admin_link()".
9 quamper Nov 01, 2006 20:43
awesome.. the only one I realized that was giving me grief was the email link under posts in the get_msgform_link function so I manually fixed that one for myself until the new version becomes available.
Thanks!
10 storm_law Dec 03, 2006 07:30
I am having the same exact problem with 1.81-rc I do not want to have to modify my code. What should I request that my hosting provider do to correct this issue.
By the way, I am even having the problem when I click the email icon next to my name on post!
Seems to be a webserver problem.
Because, if you remove the value after "redirect_to=" in the URL, it works.
The error gets triggered just by using "redirect_to=http" or any other common protocol like "ftp" or the like.
Probably a mod_security (Apache module) issue, which does not let it through because it might get uses as an injection for a script.
The parameter is used by b2evo to redirect to a certain page, after the user has logged in (in this case).
Try the following:
Add the function to /inc/_misc/_misc.funcs.php:
Then in /inc/MODEL/users/_user.func.php replace the get_user_login_link() function with the following one:
This will then always use a relative URL for the redirect_to param, if it can be used (i.e. your $htsrv_url is on the same host as your blog, which is the case here).
This only fixes the "Login..." link. There are a few others (e.g. "Logout"). I will fix them also, if your feedback is positive and then commit it for 1.8.3.