Tiger, Currently switching themes from the same device needs investigating as roller utilises "If-Modified-Since" from HttpServletRequest to reduce traffic. That is why the clicking the link does nothing as its checking the time stamp on the http request and they will be the same. When logged in this check is skipped. See PageServlet & ModDateHeaderUtil.
Ideally the theme switch button should only be visible when logged in until a solution is put in place. The current cookie method also sometimes gets strange null pointer exceptions. Cannot find a reason why. Cheers Greg On 8 February 2012 08:01, Tiger Gui <[email protected]> wrote: > Hi Greg, > > I mean if users use mobile device (such as IPhone) travel in roller > based weblog website, he would like mobile template rather then > standard web template. May be he will click the button to switch to > mobile template, so this button is necessary and must work well. > > Or we can supply user-agent distinguish module for Roller, when users > are using mobile device, IPhone, IPad or Android devices, we supply > mobile device theme as default. Users can jump to standard theme by > clicking some button of link if they like. > > 2012/2/8 Greg Huber <[email protected]>: > > Hello, > > > > The mobile theme is new and still wip. If you use a profile switcher > > rather than the button it works better. > > > > Cheers Greg. > > > > On 8 February 2012 07:15, Tiger Gui <[email protected]> wrote: > > > >> Hi All, > >> > >> I tried Roller mobile device template in trunk source code, but i can > >> only find the "view mobile weblog" button in basic theme, this button > >> does not exist in other themes ? Meanwhile, i found some problems (I > >> use Google Chrome 16 in Windows 7 PC): > >> > >> 1. I click the "view mobile weblog" button, frontpage does not change > >> to mobile device template, i have to refresh current page to enter > >> mobile template. Is it normal ? When i want to come back from mobile > >> template, it works same, click and refresh. > >> > >> 2. In mobile template, we can see blog list, but search button does > >> not work, after i click "search", it told me "error loading page". > >> > >> 3. In mobile template, i click "edit" or "comment", it keep loading, > >> seem net service error. > >> > >> So, are these bugs ? If they are, i would like to fix them, but i want > >> to know, how can i submit source code patch to trunk once i finish > >> these ? Is there a issues system ? I found > >> https://issues.apache.org/roller does not exist yet. So, what is the > >> source code submit process? Thank you > >> > >> -- > >> Best Regards > >> ---------------------------------------------------- > >> Tiger Gui [[email protected]] > >> > > > > -- > Best Regards > ---------------------------------------------------- > Tiger Gui [[email protected]] >
