Logout & home links |
| |||
Hello, I do not know if this bug only happen on my server, but the thing is that when i click the home or logout's links the url that result in my browser look like the following one: [url]http://domainname/jcow/?p=/home/username/public_html/jcow[/url] The home's link only work well when connected. If you can help, for i do not find where is the logout's link function stipulated, apart in the theme folder. As proposed in an other thread for redirection, i have tried with adding in home.php (home's module) under set_menu_path('home') the following code: So the only solution i am using at the moment is to add the following code after line 26 in home.php: Thank-you for your help,
|
| |||
I'm feeling something wrong in your code so try like this !!!
|
| |||
Hello adil, Thank you but i have allready test that code, and page just don't load at all. Gilbert
|
| |||
go for
|
| |||
Hi Adil, Allready tested to, and not working... No, the only solution is to find how to resolved the display of the user path in url, but for that i need to know where is the correspondant function. Gilbert
|
| |||
...well, i found a solution adding a slash at the end of the $uhome's url in my/config.php's file. [code]$uhome = 'http://www.domainname/jcow/';[/code] So that way there is no need to change the home.php file. Just that way it look like that it is necessary to change the line 23, in my/config.php, as follow: Actual one: [code]$ubase = $uhome.'/';[/code] New one: [code]$ubase = $uhome.'';[/code]
|
| |||
http://domainname/jcow/?p=/home/username/public_html/jcow strange link that you have. the part after the p is what get if you do echo $_SERVER['DOCUMENT_ROOT'] on a shared host.
|
| |||
Hi Falcone, First of all (Sorry i forgot yesterday) happy birthday to you! My jcow website is not hosted on a shared server, and the url that i was dealing with is the one that was been displayed after i clicked on logout link, when connected, or on home link when not connected. But now this problem is resolved on my side after changing the way the url works in config.php. Gilbert
|
| |||
thank you, gracias. anyway strange link.
|