Page 1 of 1
Frontendusers/CustomContent Multilanguage
Posted: Wed Oct 11, 2006 8:54 pm
by hawk1982
Hi,
I have been working with CMSMS for a couple of days finding out how to modify everything and it is working out great. I am using the multilanguage modification since I need two or more languages.
I have a small problem that I cannot find out how to solve, also because I have no experience working with smarty.
I have inserted a Frontendusers loginform and this works great but whenever I login I get referred to index.php.
What I want is to change the "action=index.php" of the form to include the language vars like "action=index.php?lan=currentlanguage" etc.
I cannot seem to find the place where the "action=" part is generated/loaded
Any help someone could offer would be nice
I thank you in advance
Re: Frontendusers/CustomContent Multilanguage
Posted: Wed Oct 11, 2006 9:01 pm
by calguy1000
There's a location in the feusers preferences where you can specify what page to redirect to after login, but it looks for a page id or alias. there's no provision for extra parameters at the moment.
I'm not sure how to do this at the moment without a feusers modification.
any mroe ideas, questions, comments?
Re: Frontendusers/CustomContent Multilanguage
Posted: Wed Oct 11, 2006 10:08 pm
by hawk1982
I will definitely check that out, thank you
I seem to have an unrelated problem with the FE users module due to my tinkering since nothing seems to appear in the admin menu.
I will check the permissions on the files en reinstall the module if necessary
I'll post as soon as I am getting closer to an answer regarding using this in multi-language. It may be easier for me to use a simple login form that just directs to a different page instead of using frontenduser/customcontent.
Re: Frontendusers/CustomContent Multilanguage
Posted: Thu Oct 12, 2006 5:11 am
by hawk1982
Hello
I had some trouble reinstalling the module but now it's reinstalled.
After calguy1000 mentioned the feusers preferences login redirection I though this might be a small temp solution.
I was trying to create a download section only accessible for members.
I have setup two feuser groups, one for each language, let's say for example group 1 = downloads_EN (For English language) and group 2 = downloads_NL (For Dutch language)
Then I created pages with the pagealiases downloads_EN and downloads_NL
In feusers preferences login redirection I redirect using the {$group} tag.
Now user1 one who is a member of group downloads_EN gets directed to page alias downloads_EN and user2 who is a member of group downloads_NL gets directed to page alias downloads_NL.
Now to make sure that each person stays in their own language I put a simple Javascript redirect script to on the pages downloads_EN & downloads_NL. This javascript redirects to a page using "index.php?page=dl2&lan=currentlanguage". On this second download page which is now in the correct language I use the customcontent module to display the appropriate content.
So the flow now is FEUsers loginform > pagealias is opened corresponding to the {$group} tag > redirected to another download page in the correct language > customcontent module displays content
I hope I explained the steps I took well enough
Please let me know if there are some things I can do to make it work better
Always appreciate any input,
Thanks