lloc / Multisite-Language-Switcher

WordPress Plugin: Multisite Language Switcher
http://msls.co
134 stars 41 forks source link

subdir websites not linking good #42

Closed kosolar closed 11 years ago

kosolar commented 11 years ago

Its my first time setting up a network and although I tried follow up carefully the instructions provided, I have a problem with the link from the main to secondary site in my network of sites.

I have an upgraded WP 3.5.1 with the latest MSLS plugin, its a subdirectories setup with just one admin.

At the moment I have the main site and another one in english. I used the widget on the header and I see the two flags. When I click on the english flag, I get the (en) site broken without menu. When I type the /en url directly, the site is showing well as it should be. I notice that the url in the first case becomes like this #!/en and it doesnt look good.

Not sure where the problem comes from. Any ideas will much appreciated!

lloc commented 11 years ago

Please check the configuration in Settings > Permalinks. If there is everything fine check the values in http://lloc.me/wp-admin/network/site-settings.php?id=2 (if 2 is the ID of the /en-blog) ...

_The Multisite-Language-Switcher uses the getpermalink() for getting the URLs.

kosolar commented 11 years ago

I have disabled permalinks to be sure there is no conflict with that now.

The site ID comes (10) like this.. /wp-admin/network/site-info.php?id=10 I need to mention that I tried already making few subdir-sites. In my attempt to fix the problem, I deleted them and rebuilt just this new /en now. Before that I could well see all different flags in all sites. I could only switch between them, when I would type the address of them directly, but not from the main site.

I can provide you with link if you need.. thank you for the quick response!

lloc commented 11 years ago

No problem ;) ... yes, a link would be helpful.

lloc commented 11 years ago

Your theme creates this URLs ... it captures the clicks with JavaScript. Is there something like a documentation how to create a direct link?

kosolar commented 11 years ago

So its probably theme related..? there is no specific doc for direct links as far as I know.

lloc commented 11 years ago

Yes, if have a look how the links are formed and how the URL looks after a click. Can you ask the author of the theme directly?

kosolar commented 11 years ago

I am looking into it further that way and hopefully I can fix it. I will check the files carefully and possibly contact the author, although they support more of the WPML plugin as multi lang option. I wanted get to know the network of sites this way, since can be used for many interesting combinations. It all went quite well for a first time. I guess, If it was not for this theme related issue, it would have worked great all the way to completion for me.

kosolar commented 11 years ago

Many thanx for checking and helping +++

lloc commented 11 years ago

You're welcome. Let me know how it will go.