Syntax for Mobile Users

Post Reply
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Syntax for Mobile Users

Post by tubeman »

Hi,
I want to display different banners and popunders for mobile users and desktop users.Whats the correct syntax to do this in SCJ? Thanks.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Syntax for Mobile Users

Post by admin »

if ($GLOBALS['SCJ_VISITOR']['mobile']) {
banner for mobile
} else {
other banner
}
Don't forget to run script update
Post Reply