Not Solved get screen width using php in template
#3
Not Solved
This user has been denied support. This user has been denied support.
yes i can make js screen width resolution but have one problem js only hide display on screen not completely remove all coding around with this script.
and page will be going long loading...
i want make full optimse template with responsive layout using php and remove extra coding completely in mobile resolution to make faster page load.

if its n't available in PHP conditionals so please give me php coding for globle.php and for other .php file to geting screen width using $mybb->['screen.with'] vreb.

i now this vreb not work i want same php coding to get work this vreb and geting sreen width then i will easily do this.

like
<if $mybb->['screen.with'] <= 680 then> You are using mobile device</if>

 <if $mybb->['screen.with'] >= 680 then> You are using computer</if>

like

<if 480 <= 680 then> You are using mobile device</if>

 <if 1020 >= 680 then> You are using computer</if>
Reply


Messages In This Thread
get screen width using php in template - by Ashan - 2017-01-11, 06:17 PM
RE: get screen width using php in template - by Ashan - 2017-01-12, 05:02 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)