Skip navigation
Sidebar -

Advanced search options →

Welcome

Welcome to CEMB forum.
Please login or register. Did you miss your activation email?

Donations

Help keep the Forum going!
Click on Kitty to donate:

Kitty is lost

Recent Posts


New Britain
October 16, 2025, 09:55 PM

Qur'anic studies today
by zeca
October 15, 2025, 10:20 AM

Do humans have needed kno...
October 15, 2025, 08:57 AM

اضواء على الطريق ....... ...
by akay
October 14, 2025, 11:52 AM

Lights on the way
by akay
October 11, 2025, 09:57 AM

Random Islamic History Po...
by zeca
October 07, 2025, 09:50 AM

What's happened to the fo...
October 06, 2025, 11:58 AM

Kashmir endgame
October 04, 2025, 10:05 PM

الحبيب من يشبه اكثر؟؟؟
by akay
September 24, 2025, 11:55 AM

Muslim grooming gangs sti...
September 20, 2025, 07:39 PM

Jesus mythicism
by zeca
September 13, 2025, 10:59 PM

Orientalism - Edward Said
by zeca
August 22, 2025, 07:41 AM

Theme Changer

 Topic: Omega Mobile layout

 (Read 3013 times)
  • 1« Previous thread | Next thread »
  • Omega Mobile layout
     OP - December 08, 2010, 12:15 AM

    There a way to make it to where it puts a cookie on my Blackberry to have the mobile layout when I log in, so I don't have to manually change it to mobile layout each time I come back? Thanks

    fuck you
  • Re: Omega Mobile layout
     Reply #1 - December 08, 2010, 05:18 AM

    Can be done but I'd have to custom code it. It's not part of this version of the software. Probably wont get around to it before Christmas TBH.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Omega Mobile layout
     Reply #2 - December 08, 2010, 02:16 PM

    You don't need a cookie for it. You can check from the request headers if the request is coming from mobile, just show omega theme, show the user's default when it is not. Only one if statement will do.

    Admin of following facebook pages and groups:
    Islam's Last Stand (page)
    Islam's Last Stand (group)
    and many others...
  • Re: Omega Mobile layout
     Reply #3 - December 22, 2010, 04:17 AM

    Just write this code down:
     <?
    $ua = $_SERVER['HTTP_USER_AGENT'];
     if (
     stristr($ua, "Windows CE") or
     stristr($ua, "AvantGo") or
     stristr($ua,"Mazingo") or
     stristr($ua, "Mobile") or
     stristr($ua, "T68") or
     stristr($ua,"Syncalot") or
     stristr($ua, "Blazer") ) {
                  //your code to show omega mobile layout......

     }
    else
    {
                 //your code to show the user's default. Infact you don't even need else block.....
    }
    ?>

    I am not a php developer and I don't have test environment set up to test. Just test if it is working or not. You can always remove that code if it is not.

    You can put that code in session start so that it doesn't get executed on each page request.

    Admin of following facebook pages and groups:
    Islam's Last Stand (page)
    Islam's Last Stand (group)
    and many others...
  • 1« Previous thread | Next thread »