Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 get screen width using php in template
prince Offline
Junior Member
**
Posts: 2
Joined: Jan 2017
Post: #1
get screen width using php in template
hello master of mybb and spacial php masters..

i am already use Template Conditionals mybb plugin and try to make
<if content usign screen width but its'nt work properly.

PHP Code:
<if window.screen.width <= 680 then> You are using mobile device</if>

 <if window.screen.width >= 680 then> You are using computer</if>


but itsn't work please fix this issue.

01-12-2017 04:16 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
get screen width using php in template - prince - 01-12-2017 04:16 AM

 Standard Tools
Forum Jump: