squalyl
Forum Replies Created
-
Forum: Plugins
In reply to: [Page Restrict] [Plugin: Page Restrict] redirect too>>I had a similar problem.
The page restrict form correctly contains an
<input type="hidden" name="redirect_to" value="' . $_SERVER['REQUEST_URI'] . '" />
that redirects the user logging in to the original page, okay.
My problem was registration of new users.
The page restrict form contains this following code to add a “register” link:
if ( get_option('users_can_register') ) $pr_page_content .= ' <a href="' . get_bloginfo ( 'wpurl' ) . '/wp-register.php">'.__('Register','pagerestrict').'</a> | ';
I modified the plugin to add a register_to parameter to the wp-register URL.
The problem is that wp-register does NOT forward this redirection variable after the user has completed the registration dialog, so the following “login” page does not redirect ok.
The solution was to replace the call to wp-register.php by a call to wp-login.php?action=register&redirect_to=…
I don’t know the difference, but it works!
So now the plugin code to generate the register link reads:
if ( get_option('users_can_register') ) { //if the redirect url is not empty, pass this to the register dialog if(strlen(trim($_SERVER['REQUEST_URI']))>0) { $redir="&redirect_to=".$_SERVER['REQUEST_URI']; } else { $redir=""; } $pr_page_content .= ' <a href="' . get_bloginfo ( 'wpurl' ) . '/wp-login.php?action=register'.$redir.'">'.__('Register','pagerestrict').'</a> | '; }
and it works.
It would be nice if the plugin author was ok to integrate this change in the next version of the page restrict plugin… thanks!Also note, that I had problems with Theme My login. I choose to delete this plugin, and use the standard wordpress login/register page instead.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] wp-login.php always in english?Note that for ease of debug, the same problem exists with the english page
english homepage: https://www.inspiredmelodies.com/en/
protected page: https://www.inspiredmelodies.com/en/download/
And the ‘register’ link points to https://www.inspiredmelodies.com/wp-register.php , which also displays… in french!!!Any help would be very greatly appreciated!
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] wp-login.php always in english?I still have the problem with Polylang version 0.9.4.
I would call this problem “severe”, since my site is trilingual (french, english, korean) and users of korean language will run away with a french login / registration form.
Do you have a solution?
Here is the default website home: https://www.inspiredmelodies.com/
Here is the korean page: https://www.inspiredmelodies.com/ko/
Here is a protected page: https://www.inspiredmelodies.com/download-kr/#.UKFynmcnGnB
On this page the link “????” is a link to the registration page.And this registration page is always in french, whatever the page we come from!!!
This is a serious problem, and resolving it would mean a donation to you.
No luck. I will put back the working option now.
Do you want me to mark this thread as resolved (I have a workaroud, after all) ?
We can continue to discuss the issue via email @gmail.com (in french, obviously).
regards
Done ??
yes, this seems to be the default option.
I don’t really know how to help you debug this, but I can try any code change if you have an idea in mind.
Indeed it could be a reason O_o
edit: no its not. I deleted the attachements but it does not work better.
SUCCESS!
I just got my french posts by setting the option:
The language code, for example /en/, is added to all urls when using pretty permalinks.Up to now, the other option was checked:
The language is set from content. Posts, pages, categories and tags urls are not modified.So we have a bug. I could work it around, but still. You may be interested in fixing it. The fact that it is triggered by this option shall direct you to the proper place, I hope.
PS: dev version == trunk but svn update is easier that importing a new zip file ??
the dev version is now activated. It does not change anything. You can have a try right now.
I will install polylang svn trunk, I have shell access to the server. If you change anything I’ll be able to see the result immediately.
edit: ok, now on polylang svn trunk revision 598027.
the video is a widget. I will try the dev version and get back to you in 5 minutes. Thanks.
I just disabled all my plugins with no change. Same behaviour when all plugins except polylang are disabled: no posts on front page for the default language.
Did you have some time to look at the site?
This is not a “custom theme”, the theme *is* twentyeleven. I just copied it with a new name (to avoid wordpress auto updates to this theme, we added some css rules, e.g. to get inline lang flags).
I just saw a ‘function pre_get_posts($query)’ in polylang’s core.php. Could there be a default language homepage related problem here? How can I do some debugging?
I know PHP well, but wordpress seems a very complex framework and I don’t understand how plugins code gets called yet.
If that can help, I’m ok to try any code change and test asap. I’m keeping an eye on this page and my inbox, so I can reply immediately.
edit: I found the edit button
the website is at www inspired melodies dot com.
no spaces between inspired and melodies.
you will find an english and korean test posts. There are some french posts, you can see them in the archives, but the front page won’t display them.
edit: – never mind
here is some additional strangeness: when I switch the language of the should-be-displayed-but-is-not post to something that is not the default language, this post is displayed correctly when I choose the right language in the switcher.
This is driving me crazy! Is polylang not compatible with twentyeleven default front page? I don’t think so.
Where should I look at?