It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have googling this for weeks now and i can't find a nice answer and uique way to do this.
I have a symfony2 application that is using FOSUserBundle. The app is available in different languages.
What i would like is to have an unique way to handle the locale detection. Since it has been moved from the session to the request i don't see a clear way to achieve that.
step a) user is not logged, maybe 1st time we saw it. Take the locale from the request header Accept-Language:en-US,en;q=0.8,fr;q=0.6 (for instance). Serve the user a localized version of login page
step b) user is now loggued in. of course we still serve him is prefered language based on the same header
So far i have done this using ResponseListner but it seems it won't work for the 1st request and have troubles with the FOSuser login page.
Any help with samples would be very appreciated.
LuneticsLocaleBundle is great for that: https://github.com/lunetics/LocaleBundle
It allows you to create a custom Locale Guesser:
https://github.com/lunetics/LocaleBundle/blob/master/Resources/doc/guesser.md
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
just wondering if it is possible to instead of using google analytics on google can you add the graphs to your own custom CMS panel instead of using the google service? Just like the iframe widgets you have with piwik? and if you can, can someone direct to where as i can find out how to do this?
Google does offer an API for retrieving data, but the catch is that the person going to your web page has to be able to login to GA to see the data. There's no official way to write a script to authenticate and retrieve GA data to show to anonymous visitors.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Im a newboy in .net please help ,I am using a Session Variable for storing some values in aspx Page. Actually I want to clear session values when user Leave page to go other page. I know there is PageUnload Event where I can Clear Session but i need to clear session only after the User leaves a Page.
Is there other way to clear Session variables in aspx page.???
On the other pages , where you are going after leaving current page, use..
Session.Remove("Variable_name"); .
Session.Contents.Remove("mysession");
or
Session.Contents.RemoveAll()
Session variable is for storing data that is using for single user in all pages. You don't have to use it in your scenario. Use ViewState or page variables against.
Remember to clear only the values you need to, however if you want to clear the entire session then:
Session.Clear()
Session.Abandon();
or more effective
Session["your_session_name"]="";
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I would like to as how can we have the login similar to the stackoverflow openid using drupal 7? In stackoverflow, we have various login options like facebook, google, etc, the image is show to choose various accounts. But I tried for drupal 7, only the 'Log in using OpenID' is shown beneath the login options. How do I show the multiple account options besides 'Log in using OpenID'.
Use the Janrain/RPX Module.
Create some HTML that shows the OpenID providers that you want to mention explicitly.
Create some JavaScript that fills in the text input field when clicking on the OpenID provider in the HTML.
Wrap it into a Drupal module.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Where to find website that i could do a report on that needs some usability. I have been looking and dont know where to look at.. Thanks
If you are performing usability testing of a website you can probably use most any website. You should probably specify criteria on how the website is supposed to be used and then test to see if those criteria are being met. There are several ways of doing this which may be outlined in your report rubric.
Are you trying to find bad websites?
Perhaps put this into your favorite search engine: best and worst of the web.
You will see "awards" for the worst of the web and also see some sites to help keep your site off the list.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
when and where we will use user control ? actually i want to ask it's best practices.
i have read on msdn about user control there it was written .
At times, you might need functionality in a control that is not provided by the built-in ASP.NET Web server controls. In those cases, you can create your own controls. You have two options. You can create:
"User controls= User controls are containers into which you can put markup and Web server controls. You can then treat the user control as a unit and define properties and methods for it."
i confused from first statement ? what he want to say ?
When we want to reuse code.