PDA

مشاهدة نسخة كاملة : ماهي طريقة برمجة صفحة بوكيت بي سي ؟؟


aminnet
22-04-2007, 10:04 PM
السلام عليكم :

اعضاء وخبراء هذا المنتدى الغالي ...


لدي موقع خاص وأريد تصميم صفحات خاصة بالذين يدخلون موقعي من خلال

اجهزة البوكيت بي سي

كالجزيرة موبايل

فما هي الطريقة التي يتم التعرف على البوكيت بي سي ويتم تحويله إلى الصفحة الخاصة به بمجرد طلب الموقع


ارجوا شرح الطريقة او البرمجية بأية لغة كانت


وفقكم الله

amrsaber
22-04-2007, 10:25 PM
السلام عليكم اخى الكريم

يتم ذلك ن طريق اى لغة تتعامل مع الواب مثلا البى اتش بى تتعامل مثلا مع الواب WAP
لكن هذه التقنية مكلفة
كما ان عدد الذين يتعاملون مع هذه التقنية قليلون
شكرا

aminnet
22-04-2007, 10:46 PM
لم أفهم كلامك اخي ...

ولا أعتقد بما تقول


فحسب خبرتي في مجال التصميم إن اأمر بسيط

والمثال هذا

http://www.ce4arab.com/ppc/dex.php


http://www.ce4arab.com/ppce/ppce.php

أنتظر رد الخبراء

amrsaber
23-04-2007, 01:27 PM
عفوا هذه صفح انترنت عادية حيث ان البروتوكول المستخدم فى تصفحها هو http
بينما ما اعنيه انا هو خدمات الواب
ما اقصده هو التطبيقات التى تتعامل مع الموبايل والاجهزة الكفية بتقنية الواب والاجهزة من الجيل الثالث
يمكنك النظر هنا
http://www.hotscripts.com/PHP/Scripts_and_Programs/ WAP_and_WML/index.html

amrsaber
23-04-2007, 01:35 PM
هذا الكود يستخدم لتحويل المستخدم اذا كان يستخدم جهاز كفى

<?php
global $userBrowser;

// Your wapsite
//enter the link you want user to be redirected in case of WML browser
$wmllink = "http://wap.yahoo.com/";

// Your website
//enter the link you want user to be redirected in case of PC browser
$htmllink = "http://www.google.com";

//There is no need to edit any information from this point on
//however in case if you want to contribute please do so
//please be sure to let me know about the changes
//Detect the browser
$userBrowser = $_SERVER['HTTP_USER_AGENT'];

//Remove the below // qutoes.
//It helps to check if there is any error when editing
//If everything is all right it will display the browser information
//please remember to put // back after testing or no redirection will occur
//echo $userBrowser;

//Check for Mozilla
if(stristr($userBrowser, 'Mozilla'))
{
$ub="PC";
}
//Check for Mozilla
elseif(stristr($userBrowser, 'gecko'))
{
$ub="PC";
}
//Check for opera
elseif(stristr($userBrowser, 'opera'))
{
$ub="PC";
}
//Check for omniweb
elseif(stristr($userBrowser, 'omniweb'))
{
$ub="PC";
}
//Check for msie
elseif(stristr($userBrowser, 'msie'))
{
$ub="PC";
}
//Check for konqueror
elseif(stristr($userBrowser, 'konqueror'))
{
$ub="PC";
}
//Check for safari
elseif(stristr($userBrowser, 'safari'))
{
$ub="PC";
}
//Check for netpositive
elseif(stristr($userBrowser, 'netpositive'))
{
$ub="PC";
}
//Check for lynx
elseif(stristr($userBrowser, 'lynx'))
{
$ub="PC";
}
//Check for elinks
elseif(stristr($userBrowser, 'elinks'))
{
$ub="PC";
}
//Check for Mozilla
elseif(stristr($userBrowser, 'Mozilla'))
{
$ub="PC";
}
//Check for links
elseif(stristr($userBrowser, 'links'))
{
$ub="PC";
}
//Check for w3m
elseif(stristr($userBrowser, 'w3m'))
{
$ub="PC";
}
//Check for webtv
elseif(stristr($userBrowser, 'webtv'))
{
$ub="PC";
}
//Check for amaya
elseif(stristr($userBrowser, 'amaya'))
{
$ub="PC";
}
//Check for dillo
elseif(stristr($userBrowser, 'dillo'))
{
$ub="PC";
}
//Check for ibrowse
elseif(stristr($userBrowser, 'ibrowse'))
{
$ub="PC";
}
//Check for icab
elseif(stristr($userBrowser, 'icab'))
{
$ub="PC";
}
//Check for crazy browser
elseif(stristr($userBrowser, 'crazy browser'))
{
$ub="PC";
}
//Check for IE
elseif(stristr($userBrowser, 'internet explorer'))
{
$ub="PC";
}
//If it's not any of the above browsers
//Then it gotta be a WML or very unpopular browser
else
{
$ub="WML";
}
//Code for redirecting based upon the results
if($ub == "PC") {
header("Location: ".$htmllink);
exit;
}
else
{
header("Location: ".$wmllink);
exit;
}

?>

aminnet
23-04-2007, 11:16 PM
بسم الله :
أخي الغالي آسف بالنسبة لمشاركتك الاولى لم أفهم

اما بالنسبة للمشاركة الاخيرة فلقد أصبت عين الموضوع
ولاكن قمت بتجريب الكود الأعلى وجربت الدخول من البوكيت ومن الكمبيوتر لم يتسجب للبوكيت ولاكنه إستجاب من الكمبيوتر حيث تحول إلى موقع كوكل كما هو مكتوب في الكود

اما عند الدخول من البوكيت بي سي لم يتم التحويل إلى
http://wap.yahoo.com/

حسبما مكتوب في الكود

إن لم اكن غلطانا

المهم كما يقولون الحاجة ام الإختراع

هذا الكود ما توصلت إليه وتم تجريبه من الناحيتن ونجح والحمد لله

بالتوفيق
الكود هذا هو :

<script>
if (navigator.userAgent.indexOf("PalmSource") != -1)
{window.location='http://www.aminnet.info/ppc.htm' }

if (navigator.userAgent.indexOf("Windows CE") != -1)
{window.location='http://www.aminnet.info/ppc.htm' }
</script>

<BODY ><META http-equiv=REFRESH content="1; URL=http://www.aminnet.info/index.htm">

A. Gamal
08-09-2007, 02:36 AM
درس بسيط عن تقنية ال WAP يمكن أن يفيدك :
http://vb4arab.com/vb/showthread.php?t=37