cotonti.com : Redirect to Mobile theme https://www.cotonti.com Son konu mesajları Cotonti en Tue, 23 Dec 2025 05:24:21 -0000 urlkiller Pzt, 04 Tem 2011 14:44:33 -0000 CJ @url cuase we have set up 2-5 skins for GOM before so its easier if it can be changed

]]>
Pzt, 04 Tem 2011 11:42:09 -0000
urlkiller Pzt, 04 Tem 2011 03:28:52 -0000 RaisenBran Paz, 03 Tem 2011 18:38:32 -0000 urlkiller i would like to include a mobile skin in my plugin. so users can use plugin on the fly for any mobile device. (but i dont have the time to convert that into a skin)
as i see it it would be better to convert the jquery mobile solution to a cot skin. the jquery mobile skin works on any major mobile device.

if i include it you can just hit install and its done.. no settings skins...

]]>
Per, 30 Haz 2011 03:17:52 -0000
RaisenBran CJ ,mobilesite_1017.zip. This plugin is more different then urlkiller's though. You have to change the skin name to the one you want as your mobile skin in header.first.tpl. I did you a favor and put: MOBILE SKIN HERE so you could find it easily. Enjoy.

 

Urlkiller, let me get this straight, you want a mobile skin? I'm confused, sorry. I'm working on a mobile skin, I thought it was done but for some reason the css file is not displayed on some mobile browsers properly. I should be done in a week. You want it? 

]]>
Çrş, 29 Haz 2011 17:49:11 -0000
urlkiller if anybody likes to make a skin out of this: http://iwebkit.net/ or even better that: http://jquerymobile.com/ we also had a nice solution for mobile devices that would really makes sense.

if the skin is made i would like to pack that with my plugin and submit it here (so it need to be free! AND support all of the standart COT features).

]]>
Çrş, 29 Haz 2011 02:41:58 -0000
CJ here send it here ill see witch works better for my site

]]>
Sal, 28 Haz 2011 21:32:42 -0000
RaisenBran Nope tested it urlkiller and my regular theme doesn't overwrite the mobile plugin, good job smiley

 

Also I have the old Sedito MobileSite plugin, so if you ever run into problems on this MobileSkin plugin you made, I can give you my plugin to look at.

]]>
Sal, 28 Haz 2011 18:51:52 -0000
CJ well we only have 2 themes the mobile one and the normal one. but im sure there must be a way to make it so when we make more it can set to what u choose

]]>
Sal, 28 Haz 2011 17:48:21 -0000
urlkiller no problem. hope it works for you... (one problem though is that the user is forced to use the skins you enter in settings. all what he choose in his profile will most likely get overwritten !!!)

]]>
Sal, 28 Haz 2011 15:32:36 -0000
CJ @URLKILLER thanks for the link it help !!

]]>
Sal, 28 Haz 2011 11:30:57 -0000
urlkiller http://www.cotonti.com/datas/users/mobileskin_39.rar

Added 43 seconds later:

there it is... fully functional. if choosen skins dont exists it dont changes the skin names. tested with ipad, iphone 3 / 4 and android...]]>
Pzt, 27 Haz 2011 22:27:32 -0000
Sergey This plugin made in 2009 for 6.1 Plugin requires additional testing for version 6.17. Work will be completed no earlier than the beginning of October 2011. This is due to the fact that the test is a new module for the pages of mobile phones. http://www.cotonti.com/datas/users/mobilconfig_205.pdf

]]>
Pzt, 27 Haz 2011 22:10:05 -0000
urlkiller i would indeed like to see a plugin for that too...

]]>
Pzt, 27 Haz 2011 21:47:01 -0000
Kingsley Uhm, noobie here..

In this day and age, maybe wise to make it an official cotonti plugin? I mean, the mobile market will only get bigger, so why not integrate it..

But that's just my 2 cents..

]]>
Pzt, 27 Haz 2011 14:34:20 -0000
urlkiller
$cfg['defaultskin'] = $_SERVER['HTTP_HOST'] == 'm.example.com' ? 'wap_skin' : 'normal_skin';

this code switches the variable that stores the name of the skin the user (guest) will see on your page.
the above expression is more like a "switch" for 2 possible values IF the user enters via m.example.com.
it can be either "wap_skin" or "normal_skin"

with knowing that i would asume it dont works for you because you simply
dont have 2 skins with the names "wap_skin" and "normal_skin".

sooo.. you need to have 2 skins. one that is optimiced for the use with mobile devices and
one that is layouted to fit regular machines. then you would need to setup the correct names replace wap_skin with the name of the skin optimced for the mobile use and normal_skin with the name of the skin you normaly want to use. Dont forget to change m.example.com to your desired adress.

 

hope it helps

 

 

Added 6 minutes later:

ahh yes autodetect. that would need some more work and a list with the browser user-agents (http://de.wikipedia.org/wiki/User_Agent#Mobilfunkger.C3.A4te <= thats german because the list wasnt in the english version!).

but that would be the hard way.

Koradhil's solution was to use that little framework for detecting if its a mobile device or not. with that and a little plugin you could do a simple autodetection.
the plugin would be only a few lines of code and pretty simple since you really only need to have 2 lines for detection and 1 line more for changing the skin variable.
 

Added 8 minutes later:

ok thats so easy stuff... (nice tipp Koradhil)

you can try that (put that at the end of your config.php and make sure the mobile_devices_detect.php is also in that folder ):

require_once('mobile_device_detect.php');
$m = mobile_device_detect(true,true,true,true,true,true,true,false,false);
$cfg['defaultskin'] = $m ? '<MOBILE SKIN NAME>' : '<NORMAL SKIN NAME>';

that code changes the var of the skin (yes like above) but it uses $m (that can be TRUE/FALSE) to select either the first or the sencond argument.

]]>
Pzt, 27 Haz 2011 01:57:31 -0000
CJ ok so i have a Mobile domian.

I added this to my Config file and it didnt work

$cfg['defaultskin'] = $_SERVER['HTTP_HOST'] == 'm.example.com' ? 'wap_skin' : 'normal_skin';

like i have the stuff from http://detectmobilebrowsers.mobi but idk where to put it so that it work. anyone wana explain ???

]]>
Cmt, 04 Haz 2011 14:19:48 -0000
Sergey Have a look at this site: http://www.neocrome.ru/forums.php?m=posts&p=22963#22963

But the operation has identified a number of problems: inconsistency size image text size, inadequate display the UL and LI ....

]]>
Pzt, 16 Mayıs 2011 16:14:59 -0000
GHengeveld Have a look at this site: http://detectmobilebrowsers.mobi

]]>
Paz, 15 Mayıs 2011 21:04:14 -0000
Trustmaster First you need to distinct a user of a mobile device somehow. Either by the URL (i.e. use example.com/mobile or m.example.com for mobile devices) or by User-Agent (which are plenty of I suppose). Then, supposing that you use m.example.com for mobiles, you can write in your config.php:

$cfg['defaultskin'] = $_SERVER['HTTP_HOST'] == 'm.example.com' ? 'wap_skin' : 'normal_skin';

 

]]>
Paz, 15 Mayıs 2011 18:58:39 -0000
CJ How would i make my site redirect to a mobile theme on a mobile device ???

]]>
Cmt, 14 Mayıs 2011 12:39:16 -0000