ThaiSEOBoard.com

ความรู้ทั่วไป => General (ถามคุยวิชาการ IM) => ข้อความที่เริ่มโดย: เรารักนายนะอดิศักดิ์ ที่ 07 พฤศจิกายน 2008, 01:02:45



หัวข้อ: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: เรารักนายนะอดิศักดิ์ ที่ 07 พฤศจิกายน 2008, 01:02:45
คืออยากขายลิ้งค์  ลองสมัครกับ backlink.com แล้วมันให้เอาโค้ดไปติดที่เว็บไซด์ แต่เว็บไม่ได้เขียนภาษาตามที่เว็บเขาระบุไว้ เลยขายไม่ได้ เลยอยากปรึกษาท่านผู้รู้ว่า พอมีเว็บที่ขายลิ้งค์เหมือนเเบคลิ้งค์อีกไหม ที่ขั้นตอนไม่ยุ่งยากเลย  คือเว็บเราเขียนด้วยภาษา Html พอมีเว็บไหนรับซื้อลิ้งค์ไหมแนะนำที


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: Jenosize ที่ 07 พฤศจิกายน 2008, 01:06:48
Html ก็ปรับให้เป็น php ได้นิครับ ลองดูๆ

backlinks.com นี่ง่ายสุดแล้วนา :)


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: เรารักนายนะอดิศักดิ์ ที่ 07 พฤศจิกายน 2008, 01:10:59
Html ก็ปรับให้เป็น php ได้นิครับ ลองดูๆ

backlinks.com นี่ง่ายสุดแล้วนา :)

ปรับยังไงเน้อ แนะนำที ไม่รู้จริงๆๆอ่า ตั้งเอาโค้ดไปติตตรงไหน


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: maidai ที่ 07 พฤศจิกายน 2008, 01:47:20
ก็เปลี่ยนจาก .html เป็น .php เท่านั้นเองครับ (อย่าลืมเปลี่ยน link ด้วย)

ส่วน code ก็แล้วแต่ว่าเราจะให้ link มันไปโผล่ตรงไหน ก็แปะตรงส่วนนั้นอ่ะครับ
(ไม่รู้ตอบกวนหรือเปล่า  ???)


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: เรารักนายนะอดิศักดิ์ ที่ 07 พฤศจิกายน 2008, 01:49:43
ก็เปลี่ยนจาก .html เป็น .php เท่านั้นเองครับ (อย่าลืมเปลี่ยน link ด้วย)

ส่วน code ก็แล้วแต่ว่าเราจะให้ link มันไปโผล่ตรงไหน ก็แปะตรงส่วนนั้นอ่ะครับ
(ไม่รู้ตอบกวนหรือเปล่า  ???)

ขอถามนิดนึง เราต้องเปลี่ยนตรงไหน อะ เปลี่ยนตรงโค้ดที่มันให้มาเหรอ  คือเว็บเราเขียน ภาษา HTML นะไม่ใช่ .PHP


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: melodica ที่ 07 พฤศจิกายน 2008, 01:50:53
 8)


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: maidai ที่ 07 พฤศจิกายน 2008, 03:20:36
เปลี่ยนตรง .html นั่นหล่ะครับ เป็น .php


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: ClickToBan ที่ 07 พฤศจิกายน 2008, 08:14:53
 :P


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: เรารักนายนะอดิศักดิ์ ที่ 07 พฤศจิกายน 2008, 09:41:21
เปลี่ยนตรง .html นั่นหล่ะครับ เป็น .php


นี้คือโค้ด
<?php

// ********************************************************************
// Paste this block of code on your web page where you would like text
// links to be displayed. This code will dynamically add and remove text
// links on your web page according to your BackLinks.com settings.
// ********************************************************************

// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow = "1";

// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************

$BLKey = "6UOF-8UZ2-1TY0";

$QueryString  = "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&Key=" .urlencode($BLKey);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);


if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
    @readfile("http://www.backlinks.com/engine.php?".$QueryString);
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
    if($content = @file("http://www.backlinks.com/engine.php?".$QueryString))
        print @join('', $content);
}
elseif(function_exists('curl_init')) {
    $ch = curl_init ("http://www.backlinks.com/engine.php?".$QueryString);
    curl_setopt ($ch, CURLOPT_HEADER, 0);
    curl_exec ($ch);

    if(curl_error($ch))
        print "Error processing request";

    curl_close ($ch);
}
else {
    print "It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information.";
}
?>

เปลี่ยนตรงไหน มันไม่ได้สักที ใครก็ได้ช่วยทีเถอะ  ขอร้องหลายๆๆๆ


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: manchy ที่ 07 พฤศจิกายน 2008, 10:13:41
กำ ใช้โปรแกรมตัวไหนเขียนครับ editplus หรือ dreamwever

ก็แค่ save เป็น php เองครับ

เลือก file->save as -> xxx.php

แค่นี้เองไม่ใช่หรือครับ

 ???



หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: biglove69 ที่ 07 พฤศจิกายน 2008, 13:48:26
 ;) ;)
ก็ทำการเปลี่ยนจาก .html เป็น .php
ผมคิดว่า backlinks.com สะดวกสุดแล้วละครับ
 8) 8)


หัวข้อ: Re: อยากขายลิ้งค์ เพื่อนๆพอมีเว็บที่แนะนำไหม
เริ่มหัวข้อโดย: ball6847 ที่ 07 พฤศจิกายน 2008, 14:12:21
เปลี่ยนนามสกุลของไฟล์ที่เป็น html ให้เป็น php

เช่น hello.html เปลี่ยนเป็น hello.php

ftp เกือบทุกตัวน่าจะเห็นนามสกุลแล้วเปลี่ยนได้อยู่แล้วนะคับ
ถ้าจะเปลี่ยนในเครื่องเราเองแล้วอับขึ้นไปใหม่น่าจะสะดวกกว่านะ
แต่ถ้า Windows มองไม่เห็นนามสกุลให้เลือก
Tools - Folder Options - View - [advanced setting] เอาเครื่องหมายถูกหน้า hide extentions for known file types ออก

ส่วนเรื่องการแสดงผลไม่ต้องเป็นห่วงคับ มันแสดงผลได้เหมือนกันทั้งนามสกุล html หรือ php เพราะมันก็พื้นฐานมาจาก html เหมือนกัน

ส่วนโค้ดที่ได้มา copy ตั้งแต่ <?php ไปจนถึง ?> พูดง่ายๆว่า copy มาให้หมด แล้วเอาไปแทรกตรงที่อยากให้แสดงลิ้งค์ ในที่นี้ถือว่าเข้าใจภาษา html นะคับ ไม่งั้นคงทำเว้บออกมาไม่ได้

เช่น

โค๊ด:
<html>
<head>
   <title>ทดสอบแปะลิ้งค์</title>
</head>
<body>
   <div id="backlinks">
<?php

// ********************************************************************
// Paste this block of code on your web page where you would like text
// links to be displayed. This code will dynamically add and remove text
// links on your web page according to your BackLinks.com settings.
// ********************************************************************

// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow "1";

// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************

$BLKey "6UOF-8UZ2-1TY0";

$QueryString  "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&Key=" .urlencode($BLKey);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);


if(
intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
    @
readfile("http://www.backlinks.com/engine.php? ".$QueryString);
}
elseif(
intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
    if(
$content = @file("http://www.backlinks.com/engine.php? ".$QueryString))
        print @
join(''$content);
}
elseif(
function_exists('curl_init')) {
    
$ch curl_init ("http://www.backlinks.com/engine.php? ".$QueryString);
    
curl_setopt ($chCURLOPT_HEADER0);
    
curl_exec ($ch);

    if(
curl_error($ch))
        print 
"Error processing request";

    
curl_close ($ch);
}
else {
    print 
"It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information.";
}
?>

   </div>
</body>
</html>

แต่ผมจะแนะนำอีกวิธี เพราะวิธีนี้มันเกะกะรกตา
ให้เซฟโค้ดที่ได้มา ใส่ไฟล์ชื่อไรก้ได้(แต่นามสกุล .php) เช่น backlinks.php แล้วเอาโค้ดนั้นยัดลงไปเลย สรุปคือ backlinks.php จะมีแค่นี้

โค๊ด: (backlinks.php)
<?php

// ********************************************************************
// Paste this block of code on your web page where you would like text
// links to be displayed. This code will dynamically add and remove text
// links on your web page according to your BackLinks.com settings.
// ********************************************************************

// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow "1";

// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************

$BLKey "6UOF-8UZ2-1TY0";

$QueryString  "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&Key=" .urlencode($BLKey);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);


if(
intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
    @
readfile("http://www.backlinks.com/engine.php? ".$QueryString);
}
elseif(
intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
    if(
$content = @file("http://www.backlinks.com/engine.php? ".$QueryString))
        print @
join(''$content);
}
elseif(
function_exists('curl_init')) {
    
$ch curl_init ("http://www.backlinks.com/engine.php? ".$QueryString);
    
curl_setopt ($chCURLOPT_HEADER0);
    
curl_exec ($ch);

    if(
curl_error($ch))
        print 
"Error processing request";

    
curl_close ($ch);
}
else {
    print 
"It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information.";
}
?>

จากนั้นเวลาเอาไปแทรกในหน้าที่จะแปะลิ้งค์ให้แทรกแบบนี้

โค๊ด:
<html>
<head>
   <title>ทดสอบแปะลิ้งค์</title>
</head>
<body>
   <div id="backlinks">
   <?php include('backlinks.php')?>
   </div>
</body>
</html>