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

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

ThaiSEOBoard.comความรู้ทั่วไปAdsenseช่วยแปลให้ทีครับ ผมลองทําเองทําเวบเจ๊งไป1และครับ ช่วยที
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ช่วยแปลให้ทีครับ ผมลองทําเองทําเวบเจ๊งไป1และครับ ช่วยที  (อ่าน 3209 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
tenzamak
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

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

กระทู้: 13,960



ดูรายละเอียด
« เมื่อ: 14 มีนาคม 2007, 14:34:06 »

##############################################################
## MOD Title:       phpBB SEO Simple mod Rewrite
## MOD Author:       dcz <n/a> http://www.phpbb-seo.com/
## MOD Description:    This mod makes static URLs for phpBB.
##          Please read the author notes BEFORE using this mod.
##          Check http://www.phpbb-seo.com/
##          for the latest version or to get help with this MOD.
##
## MOD Version:    0.2.2
##
## Installation Level:    (ADVANCED)
## Installation Time:    2 Minutes
## Files To Edit:    (4)
##         .htaccess,
##         common.php,
##         includes/session.php,
##         overall_footer.tpl
## Included Files:   (2)
##         phpbb_seo/phpbb_seo_class.php
##         phpbb_seo/.htaccess
##
##############################################################
## Author Notes:
## _____________
##
## This is the phpBB SEO Simple mod_rewrite core.
## Please note that this version will not inject topic titles in post's URLS. This is to make it easier
## to disallow them with our robots.txt file, since those are duplicates any way.
##
## This mod requires running Apache Server with mod_Rewrite module loaded, or IIS server running isapi_rewrite.
##
## This mod requires the Cyber Alien guest session mod ( http://www.phpbbstyles.com/viewtopic.php?t=357 )
## or any other SID removal method you may prefer.
##
## With this mod, phpBB URL will transformed this way :
##
##   index.php?c=xx               =>   catxx.html
##
##   viewforum.php?t=xx            =>   forumxx.html
##
##   viewforum.php?t=xx&start=xx         =>   forumxx-yy.html
##
##   viewtopic.php?t=xx               =>   topicxx.html
##
##   viewtopic.php?t=xx&start=xx         =>   topicxx-yy.html
##
##   viewtopic.php?p=xx               =>   postxx.html
##
##   profile.php?mode=viewprofile&u=xx    =>   memberxx.html
##
## This mod has nothing in common with other phpBB mod rewrite, it will perform the URL rewriting
## without using ob_start() nor adding any SQL. It is thus faster and not messing anymore with Gun-Zip
## or with the html link format, and will not output any pagination duplicates.
##
## NOTE : In most cases phpBB SEO recommend the use of the phpBB SEO mixed mod Rewrite instead.
##
## This mod is and will be compatible to all phpBB SEO modules, specific install instructions may apply.
## phpBB SEO will provide patches to allow for other URL standards support upon request,
## so that everyone can take advantage of the phpBB mod Rewrites enhancement without jeopardising his Page-Ranking.
##
## Migration :
## ___________
##
## If you are migration, eg if your forum is already indexed using different URLs,
## you'll have to use another robots.txt and install the zero duplicate.
## The migrating procedure will allow you to migrate and keep your previously indexed pages.
## Older links will be HTTP 301 redirected to the new ones. It is rather simple, but the solution depends on cases.
## Let's meet in the migration forum.
##
##
####
## 0.0.1 => 0.0.2 Update : Required changes to be found in 0.0.1_0.0.2_Simple_Update.txt
## 0.0.2 => 0.2.0 Update : Required changes to be found in 0.0.2_0.2.0_Simple_Update.txt
## 0.2.0 => 0.2.2 Update : Required changes to be found in 0.2.0_0.2.2_Simple_Update.txt
####
##
## LICENSE:
##
## We, phpBB SEO, have decided to license this mod under the RPL Licence ( http://www.opensource.org/licenses/rpl.php )
## which states you cannot remove the phpBB SEO credits and if you make any modifications you have to resubmit them
## to phpBB SEO for inclusion into this package again. You can read the license for yourself for further info.
##
## You can of course use this mod without any more limitations than those stated here and in the licence.
##
## At least a link ( http://www.phpbb-seo.com/ ) is required on every web site using this mod, or,
## if your web site does not comply with what phpBB SEO can link to, one proven link within a
## general audience hard link directory of your choice not already listing phpBB SEO.
## For more details about possible exceptions, please contact a phpBB SEO administrator (primarily SeO or dcz).
##
## Failure to comply will jeopardize support.
##
##############################################################
## MOD History:
##
##   2007-02-03 - 0.2.2
##      - Got rid of the PHPBB_URL buggy constant
##      - added a bit of support for multi paths
##   2006-12-26 - 0.2.0
##      - New URL rewriting architecture, the code is rewritten from scratch, fully OO now for a better integration.
##        Now supports unlimited mods and modules URL rewriting.
##      - Added Optimized the format_url() function, to allow different standards for mods.
##   2006-06-20 - 0.0.2
##      - Added highlight fix in search.php adn fixed a small bug in search results (results posts)
##      - Optimized the append_sid() filtering.
##
##   2006-05-25 - 0.0.1
##      - First Beta Version
##
##   2006-03-01 - 0.0.0
##      - Initial beta testing phase
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
______________________________
NOTE : VERSION UPDATE CHECKING
______________________________
if you are using XS mod ( http://www.phpbbstyles.com/viewtopic.php?t=356 ), by the way you should,
Upload :
contrib/xs_simple_mod_rewrite.cfg
in your forum's admin/ folder, XS mod version checking will be extended to this mod.

_______________________
0.2.0 => 0.2.2 Update :
_______________________

To update from 0.2.0, just only apply the code changes in contrib/0.2.0_0.2.2_Simple_Update.txt.

In case you are using the version update checking, you'll need to upload again :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, to make sure version update will look for the correct version.

________________________________________
>>>>   INSTALLATION INSTRUCTION    <<<<<
________________________________________

By Default, this mod will get rid of index.php for phpBB's index.
You can change this in phpbb_seo/phpbb_seo_class.php if you prefer.
Look for :

         'index' => ''

And replace with  :

         'index' => 'index.html'

or whatever you prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.
You'll have to un-comment (get rid of the '#' at the beginning of the line) the FORUM INDEX rewriterule in the following .htaccess.
Remember you have to change index\.html in case you changed the above index.html to something else.

________________
NOTE : .htaccess
________________

You'll find ready to use .htaccess files in contrib/htaccess/english/
If your forum is not installed in the domain's root, you will have to
open the .htaccess and replace 'phpbb' with the phpBB's folder name.

Put the .htaccess file at the root level of your server.
If you have any other rewriterules there, just put the rules in it (be careful about the order!).
Should be after the forum rewriterules.
Please take a look at : http://www.phpbb-seo.com/board...king-the-www-in-urls-vt30.html
to find out how to lock the use (or un use) of the www prefix in your domain's url.
This is a major Search Engine Optimisation issue to take care of the www prefix issue.

___________________________________________

>>-->> Here is the .htaccess content <<--<<
___________________________________________

Two possibilities : If your phpBB is installed in root then use the proper .htaccess code without changing it.
If your phpBB is installed in a folder, replace 'phpBB' with the name of the folder that contains your phpBB forum.
According to the specific hoster you are using, you might have to get rid of the "/" at the beginning
of the right part of each rewriterules eg : RewriteRule ^.+-c([0-9]+)\.html$ index.php?c=$1 [QSA,L]

NOTE : These two lines should only be added if not already done in the .htaccess
________________________
RewriteEngine On
RewriteBase /
________________________

______
OPEN :
______


.htaccess

____________________________________________________
>>> YOUR FORUM IS INSTALLED AT THE DOMAIN'S ROOT <<<
____________________________________________________
ADD :
____________________________________________________

RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

___________________________________________
>>> YOUR FORUM IS INSTALLED IN A FOLDER <<<
___________________________________________
ADD :
___________________________________________

RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/.*/([^/]+\.html)$ /phpbb/index.php [R=301,L]
# CATEGORIES
RewriteRule ^phpbb/cat([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpbb/forum([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/forum([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^phpbb/topic([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^phpbb/topic([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

#
#-----[ COPY ]--------------------------------------------------
#

copy phpbb_seo/*.* to phpbb_seo/*.*

#
#-----[ OPEN ]------------------------------------------
#

common.php

##
#-----[ FIND ]------------------------------------------
#

if (file_exists('install') || file_exists('contrib'))
{
   message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
include($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx);
$phpbb_seo = new phpbb_seo();
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OPEN ]------------------------------------------
#


includes/sessions.php

#
#-----[ FIND ]------------------------------------------
#

function append_sid($url, $non_html_amp = false)
{
   global $SID;

#
#-----[ AFTER, ADD]------------------------------------------
#

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   $url = $phpbb_seo->url_rewrite($url, $non_html_amp);
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OPEN ]------------------------------------------
# Note : This code is going to help your site a lot, we request that you keep this copyright notice as specified in the licence.
# If You really cannot put this link, you should at least provide us with one visible (can be small but visible) link
# on your home page or your forum Index using this code for example <a href="http://www.phpbb-seo.com/" title="Search Engine Optimization">phpBB SEO</a>
#

templates/subSilver/overall_footer.tpl

#
#-----[ FIND ]------------------------------------------
#

Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group

#
#-----[ IN-LINE FIND ]------------------------------------------
#

<br />{TRANSLATION_INFO}

#
#-----[ IN-LINE BEFORE, ADD]------------------------------------------
#

<br /><a href="http://www.phpbb-seo.com/" title="Search Engine Optimization" target="_phpBBSEO">phpBB SEO</a>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

ขอบคุณครับ
บันทึกการเข้า



host ราคาเริ่มต้นที่ 500/ปี
host inter ราคาเริ่มต้นที่ 500/ปี
hosting singapore ราคาเริ่มต้นที่ 500/ปี
vps ราคาเริ่มต้นที่ 500/เดือน
ล่า
ยามจน
หัวหน้าแก๊งเสียว
*

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

กระทู้: 1,778



ดูรายละเอียด
« ตอบ #1 เมื่อ: 14 มีนาคม 2007, 14:45:47 »

อ้างถึง
ช่วยแปลให้ทีครับ


เอ่อ ขอบายครับ
ห่ะห่ะ

เยอะ+อะไรไม่รู้ยัวเยียะ ไปหมด ผมไมรู้เรื่องอะ
บันทึกการเข้า

ColdMoney
เจ้าพ่อบอร์ดเสียว
*

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

กระทู้: 12,622



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 14 มีนาคม 2007, 14:47:10 »

เหอๆ เล่นงี้เลยเหรอครับ น่าจะ point ไปเลยนะครับว่าเจอปัญหาอะไร จะได้ช่วยแก้ ไม่ใช่ ใส่ตูมมาอย่างงี้อ่ะครับ อิอิ งั้นรอเซียนๆท่านอื่น มาช่วยดีก่านะ :lol:  :lol:
บันทึกการเข้า

iamnewbies
Moderator
เจ้าพ่อบอร์ดเสียว
*****

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

กระทู้: 9,635



ดูรายละเอียด
« ตอบ #3 เมื่อ: 14 มีนาคม 2007, 14:51:49 »

จะทำ phpBB  แบบบใส่ mod ทำ seo เป็นไฟล์  post00988.html ใช่ปะ
บันทึกการเข้า

ุอิอิ  พลุบๆโพล่ๆ  เข้าๆออกๆ เสียวๆ
iamnewbies
Moderator
เจ้าพ่อบอร์ดเสียว
*****

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

กระทู้: 9,635



ดูรายละเอียด
« ตอบ #4 เมื่อ: 14 มีนาคม 2007, 14:52:25 »

อันนี้ต้องถาม programer เก่งๆ ครับ ผมทำทีไร เละตุ้มแปะทุกทีเลย
บันทึกการเข้า

ุอิอิ  พลุบๆโพล่ๆ  เข้าๆออกๆ เสียวๆ
geno
หัวหน้าแก๊งเสียว
*

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

กระทู้: 1,605



ดูรายละเอียด
« ตอบ #5 เมื่อ: 14 มีนาคม 2007, 15:04:17 »

เห็นแล้ว งง เลย ภาษาผมก็โง่ โปรแกรมก็ยิ่งโง่ใหญ่ ตาลายยยยย  :shock:
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์