Is there any Css for mobile Only where pc user cannot view sit
Collapse
This topic is closed.
X
X
-
poster has been told many times that blocking PC is nearly impossible,Originally posted by joban111 View PostMetulj u might be using some kind of scripting to get into that link or something out of our brains or this world but the guy who posted this thread just asked for normal innocent help. we all know normal visitors are not so smart that they can view that site from pc as u can. he just asked for some coding for that. now see subzero as a real moderator provided him some sort of coding and tried to help him as he can instead of just insulting users. i suggest u if u cant help someone than please bro better dont reply to that post. u r super mod of this site so this does not mean that u can be rude to anyone. i saw u many times just doing bully on users instead of try to help them. totally unfair behaviour by a moderator. DONT BAN ME FOR THIS POST.
yet, he is persistant to get code... and btw he must be superlazy as
redirection code been posted here many many times !
but i haven't insult him, not even once !
on the other hand, he insulted here in general(FIRST LINE)!
so feel free to NOT post bollox !!!Last edited by metulj; 10.08.11, 11:21.
Leave a comment:
-
Metulj u might be using some kind of scripting to get into that link or something out of our brains or this world but the guy who posted this thread just asked for normal innocent help. we all know normal visitors are not so smart that they can view that site from pc as u can. he just asked for some coding for that. now see subzero as a real moderator provided him some sort of coding and tried to help him as he can instead of just insulting users. i suggest u if u cant help someone than please bro better dont reply to that post. u r super mod of this site so this does not mean that u can be rude to anyone. i saw u many times just doing bully on users instead of try to help them. totally unfair behaviour by a moderator. DONT BAN ME FOR THIS POST.
Leave a comment:
-
Originally posted by subzero View PostYou can block pc browsers
i coded this long but ago
CHAT SERVICE!
You can only view it thou mobile phone and im using opera
i get this from mobile even :PSorry
HTTP request was interrupted by the host!
Added after 6 minutes:
dont ever again call anyone here stupid, else i will ban you for sure !Originally posted by kolkatawap View PostHaha it means all you are master stupid Try to open www.wapday.com 4m your pc and say what was it?is that site owner stupid or in reality u are his foot step in php coding
Thanks bro subzero you are realy a master brain but some are now a day doing small paste and saying themselves master example here infront of u
Added after 2 minutes:
www.wapday.com is a site that cannot be viewed 4m pc it accese Only Mobile Metuji and creative u gven long lecture saying me stupid now do justify
now... look at the attached screen,
and explain to me which mobile phone has such screen resolution ???
better STFULast edited by metulj; 10.08.11, 09:52.
Leave a comment:
-
Here the code you can play around with
if($mobile_only == "1")
{
$u_agent = $_SERVER['HTTP_USER_AGENT'];
function get_user_browser($u_agent) {
$ub = '';if(preg_match('/MSIE/i',$u_agent)){$ub = "ie";}elseif(preg_match('/Firefox/i',$u_agent))
{$ub = "firefox";}elseif(preg_match('/Safari/i',$u_agent)){$ub = "safari";}
elseif(preg_match('/Chrome/i',$u_agent)) {$ub = "chrome";} elseif(preg_match('/Flock/i',$u_agent))
{$ub = "flock";}{$ub = "opera";}return $ub; }
$notallowd = array("ie","opera","firefox", "chrome","flock","safari");
$browser = get_user_browser("$u_agent");
foreach($notallowd as $blocked) {
$blacked=str_replace('*', '', $blocked);
$len=strlen($blacked);
if ($browser==$blacked || substr($browser, 0, $len)==$blacked) {
$_banned_i=true; }}
if($_banned_i==true){
echo "<div class=\"header\"><img src=\"img/site/logo.png\" alt=\"Logo\"/><br/></div>";
echo "<div class=\"rekl\"><a href=\"$ads_link\">$ads_code</a><br/></div>";
echo "<div class=\"menu\">";
echo "<div>You can access this page only with your mobile phone!</div>";
echo "</div>";
echo "<div class=\"rekl\"><a href=\"$ads_link\">$ads_code</a><br/></div>";
echo "<div class=\"footer\">Design by <a href=\"http://wapdiz.ru\">inferno</a></div>";
exit(0);
}
}else{
}
Leave a comment:
-
You can block pc browsers
i coded this long but ago
CHAT SERVICE!
You can only view it thou mobile phone and im using opera
Leave a comment:
-
Haha it means all you are master stupid Try to open www.wapday.com 4m your pc and say what was it?is that site owner stupid or in reality u are his foot step in php coding
Thanks bro subzero you are realy a master brain but some are now a day doing small paste and saying themselves master example here infront of u
Added after 2 minutes:
www.wapday.com is a site that cannot be viewed 4m pc it accese Only Mobile Metuji and creative u gven long lecture saying me stupid now do justifyLast edited by metulj; 10.08.11, 09:49.
Leave a comment:
-
Yeah, you can not block pc browses. There are some plugins that can switch user agents for pc browsers. By using that anyone can browse your mobile site with out any problems.
Leave a comment:
-
I will say what metulj is trying to say in straight english: its stupid, dumb, damned near impossible...not to mention, a waste of time (that could be better spent staring at the sky waiting for a comet to pass by) trying to stop PC users from viewing ur mobile site. The best thing you can do is create a PC version for ur site. Personally you should let the sleeping dog lie. If u really crave knwledge, expand ur knwledge on PHP this underated site can help :-) if after all i typed u still want to do this "wild goose chase" thing ur beyond help.
Leave a comment:
-
i dont need your cpanel,Originally posted by kolkatawap View PostGaining knowledge is good metuji plz i hope you are right human being to help me i want my site to view only 4m mobile and if pc user cums msg raise to cum 4m mobile can u do dis 4 me plz i shall gv u my hosting cpenal pas just do it 4 me my email=rishigupta651@gmail.com
and once again,
you cant block pc users to view your aka mobile site !
it is that simple
Leave a comment:
-
Gaining knowledge is good metuji plz i hope you are right human being to help me i want my site to view only 4m mobile and if pc user cums msg raise to cum 4m mobile can u do dis 4 me plz i shall gv u my hosting cpenal pas just do it 4 me my email=rishigupta651@gmail.com
Leave a comment:
-
It is coding talk anyone can ask for help ok metuji dont mind i am just enhancing my knowledge
Leave a comment:
-
Download this script then and upload it at ur site
and add this code at all ur pages
change error page link to where should pc users redirect, pc theme, error page whatever u wantPHP Code:require_once('mobile_device_detect.php');
mobile_device_detect
(true,true,true,true,true,true,true,false,'http://Error page link');
Leave a comment:
Leave a comment: