[Solved] ask you little bit about the code  

  RSS

vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 24, 2018 5:21 am  

hello, i want to ask about code in php, i want it to show only when running on mobile, and on pc it does not show anymore, in php there is such code?


ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
November 25, 2018 10:01 pm  
Posted by: vntube

hello, i want to ask about code in php, i want it to show only when running on mobile, and on pc it does not show anymore, in php there is such code?

Yes there is an open source class for mobile, tablet, and desktop detection
http://mobiledetect.net

There are also classes built into PlayTube script for this.

Example

<div class="show-in-mobile">This will only show to mobile users</div>

You can also use hide-in-mobile to only show in desktop.

This post was modified 6 months  ago by Disquy

ReplyQuote
vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 26, 2018 11:15 am  

thank you, but i can not hihi


ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
November 26, 2018 12:32 pm  
Posted by: vntube

thank you, but i can not hihi

What method have you tried? Can you share code?


ReplyQuote
vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 26, 2018 1:00 pm  
This is not the playtube scenario
It is a classified script
I think I can make money on this scenario
https://codecanyon.net/item/modesy-buy-sell-used-stuff/22714108?s_rank=1
I would like to modify it a bit on a mobile device
This post was modified 6 months  ago by Disquy

ReplyQuote
Disquy
(@disquy)
Member Admin
Joined: 1 year  ago
Posts: 85
November 26, 2018 1:15 pm  
Posted by: vntube
This is not the playtube scenario
It is a classified script
I think I can make money on this scenario
https://codecanyon.net/item/modesy-buy-sell-used-stuff/22714108?s_rank=1
I would like to modify it a bit on a mobile device

Sorry I am not familiar with this application. I would try and reach out to the developer for support.

You could also try the open source class

http://mobiledetect.net


ReplyQuote
vntube
(@vntube)
Trusted Member
Joined: 7 months  ago
Posts: 66
November 26, 2018 1:21 pm  
thank you
This post was modified 6 months  ago 2 times by Disquy

ReplyQuote
Share: