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


Do humans have needed kno...
Yesterday at 04:49 PM

ركن المتحدثين هايد بارك ل...
by akay
Yesterday at 02:48 PM

Is Iran/Persia going to b...
by zeca
Yesterday at 08:49 AM

Lights on the way
by akay
January 13, 2026, 09:54 AM

What music are you listen...
by zeca
January 12, 2026, 09:15 AM

What's happened to the fo...
January 09, 2026, 12:03 PM

Qur'anic studies today
by zeca
January 06, 2026, 01:26 PM

Excellence and uniqueness
by akay
January 05, 2026, 10:14 AM

New Britain
December 31, 2025, 01:38 PM

Marcion and the introduct...
by zeca
November 05, 2025, 11:34 PM

Ex-Muslims on Mythvision ...
by zeca
November 02, 2025, 07:58 PM

اضواء على الطريق ....... ...
by akay
October 23, 2025, 01:36 PM

Theme Changer

 Topic: Omega Mobile layout

 (Read 3044 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 »