| Re: Talk of JQuery Mobile Framework For Xoops |
| by timgno on 2013/3/18 14:36:01 @irmtfan Thanks for the tip to your method I find it useful @blackrx I think at this point we should wait for the arrival of xoops 2.6.0, because to create a framework in jquery mobile is not a short time. The problem is that you have to go find all the html tags, and not just because there are ids and classes for these tags. To replace them I using three basic functions in jquery: ReplaceWith, ReplaceAll and html, as you can see from the documentation of jquery. The scripts I have tested and worked fine, but when I inserted the modules, starting from the contact module, the script does not work anymore because we probably are not static pages and this may affect, but I'm not sure. I hope that with bootstrap included in xoops 2.6.0 we can agglomerating also a framework with jquery mobile in a simpler way. The biggest problem is that I did not have time to go into that, as you can see on my website, redirection works with that code I posted, but framenwork does not work as it should. If anyone has any ideas can send them here if you like. |
| Re: Talk of JQuery Mobile Framework For Xoops |
| by blackrx on 2013/3/18 13:42:51 @timgno Thank you for the answer but i have decided to use another method to build a mobile version of my xoops site https://xoops.org/modules/newbb/viewtopic.php?post_id=352322 i don't want all modules to be display in my mobile website so what i did was to make custom php page ..will display only important info and some news title and summary (query db from news module etc) i also made a custom mobile theme and use defacer to redirect theme for desktop/mobile I got my redirect and View Full Site Link script here |
| Re: Talk of JQuery Mobile Framework For Xoops |
| by irmtfan on 2013/3/15 2:53:56 @timgno: I think you can use preloads to redirect mobile users. It would be better than hacking mainfile.php use eventCoreIncludeCommonStart like this: le="color: #000000"><?php function eventCoreIncludeCommonStart($args) { if($mobile == 1) { // add your header } } |
| Re: Talk of JQuery Mobile Framework For Xoops |
| by timgno on 2013/3/14 20:21:11 Quote: but when i set the theme to mtheme both smartphone browser emulator and normal pc display mtheme It is normal, because you set this theme in admin/preferences Quote: In mainfile i use this use this if($mobile == 1) header('Location: http://localhost/xoops255/'); Quote: 1. How do we setup our mobile site so when we use our mobile we will be redirected to mtheme and when we use normal PC we are redirected to our normal theme. it is necessary that you fill also serves to redirect https://xoops.org/modules/newbb/viewtopic.php?post_id=350064#forumpost350064 Quote: how to setup the mobile site example here http://mobile.txmodxoops.org/ you have to create another script that can do both, with xoops 2.6.0 you will not have these problems Quote: 2. Is it possible when in mobile, a link to display the full site (normal theme) is displayed not now with this version I suggest you try locally with two different installations of xoops 2.5.5 |
| Re: Talk of JQuery Mobile Framework For Xoops |
| by blackrx on 2013/3/14 13:31:10 tq timgno im testing in localhost and using opera browser smartphone emulator... but when i set the theme to mtheme both smartphone browser emulator and normal pc display mtheme In mainfile i use this if($mobile === true) header('Location: http://localhost/xoops255/'); 1. How do we setup our mobile site so when we use our mobile we will be redirected to mtheme and when we use normal PC we are redirected to our normal theme. how to setup the mobile site example here http://mobile.txmodxoops.org/ do we need to install another xoops ? and set the theme to mtheme ? 2. Is it possible when in mobile, a link to display the full site (normal theme) is displayed |