ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comอื่นๆCafebacklinks.com ติดใน block php-nuke มีปัญหา
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: backlinks.com ติดใน block php-nuke มีปัญหา  (อ่าน 1804 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
เทพมังกร
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 37
ออฟไลน์ ออฟไลน์

กระทู้: 1,314



ดูรายละเอียด
« เมื่อ: 09 สิงหาคม 2008, 23:40:55 »

โค๊ด backlinks.com ติดใน block php-nuke มีปัญหา มันดันขึ้นไปอยู่หัวบล็อกเฉยเลย



แก้ไขอย่างไงดีคะ
« แก้ไขครั้งสุดท้าย: 10 สิงหาคม 2008, 18:10:32 โดย weerajak » บันทึกการเข้า

โอกาสไม่ได้มีไว้สำหรับทุกคน แต่โอกาสไว้เสมอสำหรับคนที่ไขว่คว้า If you touch me soft and gentle, If you look at me and smile. If you listen to me talk. Sometime before you talk, I will grow really grow.มีสติ เท่ากับมีสตางค์ Think big. Get big.
เทพมังกร
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 37
ออฟไลน์ ออฟไลน์

กระทู้: 1,314



ดูรายละเอียด
« ตอบ #1 เมื่อ: 10 สิงหาคม 2008, 14:09:11 »

แก้ไขได้แล้วคะ สำหรับ block php-nuke

save โค๊ดด้านล่างนี้เป็นชื่อไฟล์ block-backlinks.php เสร็จแล้วอัพไปไว้ที่ห้อง blocks ของ php-nuke
โค๊ด:
<?php 

if (eregi("block-backlinks.php",$_SERVER['PHP_SELF'])) { 
Header("Location: index.php"); 
die(); 

  
ob_start(); 
include(
"backlinks.php"); // <--- ไฟล์ที่ต้องการนำเนื้อหามาแสดง!!! 
$output ob_get_contents(); 
ob_end_clean(); 
$content .= $output

?>


save โค๊ด php ที่ได้จากทางเว็บ backlinks.com เป็นชื่อไฟล์ backlinks.php เสร็จแล้วอัพไปไว้ที่ root ของ php-nuke ตัวอย่างด้านล่างนี้โค๊ดของหนูนะคะ

โค๊ด:
<?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 "CP94-HB5Y-6N6X";

$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.";
}
?>

เสร็จแล้วสั่งให้ block-backlinks.php แสดงผลหากมีผู้ลงโฆษณาก็จะปรากฎลิ้งขึ้นมาคะรอรับเงินได้เลย
pr เยอะยิ่งได้เงินเยอะ
« แก้ไขครั้งสุดท้าย: 10 สิงหาคม 2008, 14:22:26 โดย weerajak » บันทึกการเข้า

โอกาสไม่ได้มีไว้สำหรับทุกคน แต่โอกาสไว้เสมอสำหรับคนที่ไขว่คว้า If you touch me soft and gentle, If you look at me and smile. If you listen to me talk. Sometime before you talk, I will grow really grow.มีสติ เท่ากับมีสตางค์ Think big. Get big.
Dr.K
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 436
ออฟไลน์ ออฟไลน์

กระทู้: 6,821



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 10 สิงหาคม 2008, 14:43:54 »

Thanks จ้ะ
บันทึกการเข้า

เทพมังกร
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 37
ออฟไลน์ ออฟไลน์

กระทู้: 1,314



ดูรายละเอียด
« ตอบ #3 เมื่อ: 10 สิงหาคม 2008, 17:09:44 »

วิธีการติดใน footer ของ php-nuke เพื่อให้แสดงทุกหน้า เหมาะสำหรับเว็บที่มี pr หลายหน้า
เพราะลิงค์ที่ผู้ซื้อลงโฆษณาจะนั้นจะปรากฏเฉพาะหน้าที่ซื้อเท่านั้นเมื่อเราไปหน้าอื่นจะไม่ปรากฎลิงค์ของเขาคะ
ฉะนั้นหากมี pr แค่หน้าแรกควรใช้วิธีการติดบล็อกด้านบน

save โค๊ด php ที่ได้จากทางเว็บ backlinks.com เป็นชื่อไฟล์ backlinks.php เสร็จแล้วอัพไปไว้ที่ root เช่นเดียวกันกับการติดตั้ง block-backlinks.php


เปิดไฟล์  footer.php ใน root ขึ้นมา
ค้นหา

 themefooter();

หลังข้อความนี้ให้เพิ่ม

include "backlinks.php";

save แล้วอัพไปไว้ที่ root คะ

ส่วนสีอักษร bg ต่างๆ รวมถึง colum ปรับแต่งได้ที่ backlinks.com คะ ขอให้รวยนะคะ





บันทึกการเข้า

โอกาสไม่ได้มีไว้สำหรับทุกคน แต่โอกาสไว้เสมอสำหรับคนที่ไขว่คว้า If you touch me soft and gentle, If you look at me and smile. If you listen to me talk. Sometime before you talk, I will grow really grow.มีสติ เท่ากับมีสตางค์ Think big. Get big.
หน้า: [1]   ขึ้นบน
พิมพ์