Wpabc’s Weblog

ตารางค่าคอม

Posted by: wpabc on: December 11, 2008

ค่าคอมของอเมซอน

Referral Rate Tier Chart
Total Items Shipped
Referral Rates
(All Categories except Consumer Electronics)
1 – 6 4.00%
7 – 30 6.00%
31 – 110 6.50%
111 – 320 7.00%
321 – 630 7.50%
631 – 1570 8.00%
1571 – 3130 8.25%
3131 + 8.50%

wordpress tip

Posted by: wpabc on: November 20, 2008

http://noteslog.com/

ติดตั้ง _samba แบบง่าย

Posted by: wpabc on: September 30, 2008

จาก debianclub ขอบคุณนะครับ

ติดตั้ง samba แบบง่าย

เอามาจาก ThaiLinuxCafe – debian : ติดตั้ง samba อย่างง่าย

samba เป็นแพกเกจที่ใช้ทำไฟล์เซิร์ฟเวอร์ที่มีชื่อเสียงของลินุกซ์ สามารถใช้งานทดแทน Netware หรือ WindowsNT ได้ดีพอควร

โครงร่างคือ

ชื่อเซิร์ฟเวอร์
server1 : 192.168.1.5
แชร์ที่อ่านได้อย่างเดียว
//server1/app จะให้อยู่ที่ /samba/app (เพื่อเร่งความเร็วและป้องกันไวรัส)
แชร์ที่อ่าน/เขียนได้
//server1/data จะให้อยู่ที่ /samba/data
ชื่อ Workgroup
smbdomain
กรุ๊ปที่มีสิทธิ์ใช้งาน
smbgroup ให้มี gid=1001
ผู้ใช้ที่มีสิทธิ์ใช้งาน
user1, user2, user3, … ให้มี uid=1101, 1102, 1103, …
ผู้ควบคุมระบบ
smb-admin ให้มี uid=1100
เครื่องลูกข่าย
client01, client02, … ให้มีไอพีเป็น 192.168.1.101, 192.168.1.102, …

เริ่มด้วย

ที่เซิร์ฟเวอร์

ติดตั้ง samba

# aptitude install samba
Workgroup/Domain Name:
<<<--- smbdomain

Modify smb.conf to use WINS settings from DHCP?
<<<--- No

เพิ่มกรุ๊ปในการใช้งาน samba

# groupadd -g 1001 smbgroup

สร้างสคริปต์ในการเพิ่มผู้ใช้ ให้มีรหัสผ่านเดียวกัน (passwd กับ smbpasswd) ตั้งชื่อว่า d.addsmb

# vi /usr/local/bin/d.smbadd
#!/bin/bash
if [ ! $3 ]; then
  echo "Usage: $0 USERNAME UID PASSWORD"
  exit 1;
fi
GROUPNAME="smbgroup"
USERNAME=$1
USERID=$2
PASSWORD=$3
/usr/sbin/useradd -g $GROUPNAME -u $USERID -m $USERNAME
echo "$USERNAME:$PASS1" | /usr/sbin/chpasswd
(echo "$PASS1"; echo "$PASS1") | smbpasswd -a -s $USERNAME
echo "User: $USERNAME , uid: $USERID added."

เวลาเพิ่มผู้ใช้ก็สั่ง

# d.smbadd user1 1101 USER1-PASSWORD
...

ทำไปจนครบผู้ใช้

เพิ่มผู้ใช้ของ samba ที่เป็นผู้คุมระบบ ให้ชื่อว่า smb-admin

# d.smbadd smb-admin 1100 SMB-ADMIN-PASSWORD

สร้างไดเรกทอรีสำหรับแชร์ไฟล์ ตั้งชื่อว่า /samba

# mkdir -p /samba/app
# mkdir -p /samba/data

เปลี่ยนสิทธิ์การใช้งานไดเรกทอรี samba

# chown -R smb-admin:smbgroup /samba
# chmod 0750 /samba/app
# chmod 0770 /samba/data

ตั้งค่าการใช้งานให้ samba

# vi /etc/samba/smb.conf

เฉพาะค่าที่เราจะเปลี่ยนแปลง

[global]
    workgroup = smbdomain
    security = user
    unix charset = utf8
    display charset = utf8
    lock spin time = 15       ;; for dbase/foxpro record lock
    lock spin count = 30      ;; for dbase/foxpro record lock
    unix extensions = yes

[app]
    comment = Application Dir
    path = /samba/app
    valid users = @smbgroup
    admin users = smb-admin
    public = no
    create mask = 0750
    directory mask = 0750
    fake oplocks = yes        ;; increase speed
    writable = no

[data]
    comment = Data Dir
    path = /samba/data
    valid users = @smbgroup
    public = no
    create mask = 0770
    directory mask = 0770
    writable = yes

แก้ไขไฟล์ hosts ให้เครื่องลูกข่ายติดต่อได้

# vi /etc/hosts
192.168.1.1      server1.example.com     server1
192.168.1.101    client01.example.com    client01
192.168.1.102    client02.example.com    client02
192.168.1.103    client03.example.com    client03
...

เริ่มการทำงาน samba ใหม่

# /etc/init.d/samba restart

———-

ส่วนของเครื่องลูกข่าย

เรียกใช้งานจากลินุกซ์

ติดตั้ง smbclient

# aptitude install smbclient smbfs

สร้างจุดเมานท์

# mkdir -p /mnt/app
# mkdir -p /mnt/data

แก้ไขข้อมูล hosts ให้เหมือนกับที่เครื่อง server1

# vi /etc/hosts
192.168.1.1      server1.example.com     server1
192.168.1.101    client01.example.com    client01
192.168.1.102    client02.example.com    client02
192.168.1.103    client03.example.com    client03
...

ทำการเมานท์

  • การเมานท์แบบ cifs จะทำให้การแสดงชื่อไฟล์เป็นภาษาไทยได้อย่างถูกต้อง ล็อคเรคอร์ดได้ แต่ช้ามาก และข้อมูลถูกอ่านจากแคช ทำให้ไม่ค่อยเป็นข้อมูลปัจจุบันจริง ๆ
    $ sudo mount -t cifs \
      -o username=user1,password=PASSWORD,iocharset=utf8 \
      //server1/app /mnt/app
    $ sudo mount -t cifs \
      -o username=user1,password=PASSWORD,iocharset=utf8 \
      //server1/data /mnt/data
  • หรือเมานท์แบบ smbfs จะทำให้การทำงานเร็ว แต่ล็อคเรคอร์ดไม่ได้ และข้อมูลถูกอ่านจากการทำงานปัจจุบันจริง ๆ ทำให้ข้อมูลสดกว่า
    $ sudo mkdir -p /mnt/smbfs/app
    $ sudo mkdir -p /mnt/smbfs/data
    $ sudo mount -t smbfs \
      -o username=user1,password=PASSWORD,uid=1101,gid=1001 \
      //server1/app /mnt/smbfs/app
    $ sudo mount -t smbfs \
      -o username=user1,password=PASSWORD,uid=1101,gid=1001 \
      //server1/data /mnt/smbfs/data

เราสามารถใช้งานไฟล์เซิร์ฟเวอร์ server1 ได้จากจุดเมานท์ /mnt/app และ /mnt/data ตามต้องการ (ถ้าจะเขียนลง /mnt/app ให้ใช้ชื่อเป็น smb-admin จึงจะสามารถเขียนได้)

*****
update 50-10-20
ตอนที่ทดลองนี้ cifs บนเดเบียน sid (samba-3.0.26a-1) แก้ปัญหาเรื่องแคชไม่ตรง และล๊อกเรคคอร์ดช้าได้แล้ว
โดยการแก้ไขไฟล์ smb.ini ในหมวด share ให้มีพารามิเตอร์คือ

[data]
    ...
    strict locking = yes
    oplocks = yes
    level2 oplocks = no
    ...

และเมานต์ด้วยพารามิเตอร์ directio เช่น

$ sudo mount -t cifs //server1/data /mnt/data \
  -o username=USER,password=PASSWORD,iocharset=utf8,directio

จะสามารถล๊อกเรคคอร์ดได้ตรงและแก้ปัญหาแคชไฟล์ได้แล้วครับ
*****
———-

เรียกใช้งานจาก Windows98/Me

ที่เครื่อง client01 ติดตั้งโดย

Start -> Control Panel -> Network
[TAB] Configuration :
    TCP/IP -> การ์ดไดรเวอร์ : Properties
        [TAB] DNS Configuration :
            Enable DNS
            DNS Server Search Order : 192.168.1.5
            Domain Suffix Search Order : server1.example.com
        [TAB] IP Address
            Specify an IP address : 192.168.1.101
            Subnet Mask : 255.255.255.0
[TAB]Identification : Workgroup = smbdomain

เรียกใช้งานโดย

คลิกขวา Network Neighbourhood
Map Network Drive
    Drive : I:
    Path  : \\server1\app

Re: ติดตั้ง samba แบบง่าย

สร้างสคริปต์ในการเพิ่มผู้ใช้ ให้มีรหัสผ่านเดียวกัน (passwd กับ smbpasswd) ตั้งชื่อว่า d.addsmb

# vi /usr/local/bin/d.addsmb
แต่เวลาเพิ่มผู้ใช้ก็สั่ง

# d.smbadd user1 1101 USER1-PASSWORD

ไม่ได้ครับ

Re: ติดตั้ง samba แบบง่าย

ขออภัยครับ สะเพร่ามากไปหน่อย ชื่อไฟล์ต้องเป็น d.smbadd ครับ
ที่ถูกคือ

# vi /usr/local/bin/d.smbadd

ครับ
ขอบคุณมากครับที่ท้วงมา เดี๋ยวผมกลับไปแก้บทความให้ถูกต้องเลย

Re: ติดตั้ง samba แบบง่าย

อยากได้วิธี config samba แบบ 1 share แต่ user มี 3 group
group 1 read/write
group 2,3 read only
ครับ

Re: ติดตั้ง samba แบบง่าย

ขออภัยนะครับ ค้นวิธีที่ถูกต้องให้ไม่ทันแล้ว (จะไป ตปท.หลายวันครับ)
ที่ผมเคยลักไก่ใช้คือ

...
[data]
    ...
    writable = no
    admin users = @group1
    valid users = @group2,@group3
    ...

น่าจะพอใช้งานไปได้ครับ
แต่เขาว่าพารามิเตอร์ admin users มันอันตรายไปหน่อย น่าจะเป็นแบบนี้มากกว่า

...
[data]
    ...
    valid users = @group1,@group2,@group3
    write list = @group1
    ...

เดี๋ยวรอผู้รู้ท่านอื่นมาตอบอีกทีนะครับ

Re: ติดตั้ง samba แบบง่าย

Permission ควรกำหนดแบบไหนครับ
มาติดที่การกำหนด Permission ครับ
ยังไงก็เข้าไม่ได้

ถ้าป็นขั้นตอนก็จะดีครับ
**ลองกับCentOs ผ่านแล้วครับแต่ debian ยังไม่ผ่านครับ

Tags:

นายบุญต่อ พ่วงมหา ประธานบริหาร สนุกดอทคอม กล่าวว่า ขณะนี้สนุกเปิดให้บริการใหม่ ภายใต้ชื่อ สนุก บล็อกเกอร์ บันทึกออนไลน์ โดยผู้ใช้สามารถบันทึกเรื่องราว ความทรงจำ ประสบการณ์ชีวิต และเรื่องราวต่างๆ เพื่อแบ่งปันกับเพื่อนๆ ผ่านเว็บไซต์ http://blogger.sanook.com อีกทั้งใช้งานง่าย ไม่จำกัดพื้นที่ในการอัพเดต และมีของตกแต่งมากมาย รวมถึงมีประสิทธิภาพและความสามารถในการใช้งานอื่นๆ โดยบริการที่เพิ่มเติมมา ได้แก่ เครื่องมือ Text editor ที่ช่วยให้ผู้ใช้สามารถเขียนบล็อกได้อย่างง่ายๆ สามารถใส่ Tag เพื่อให้ผู้ใช้อื่นเข้ามาค้นหาเรื่องได้ง่ายขึ้น

ปธ.บริหาร สนุกดอทคอม กล่าวต่อว่า สนุกดอทคอม เป็นเว็บไซต์ยอดนิยมอันดับหนึ่งของไทย  ขณะนี้เกาะติดกระแสการเขียนบันทึกออนไลน์ที่กำลังมาแรง  โดยเปิดตัวสนุกบล็อกเกอร์ บันทึกออนไลน์รูปแบบใหม่ ไม่จำกัดพื้นที่ใช้งาน  ด้วยการเพิ่มฟีเจอร์ใหม่ให้โหวตเว็บไซต์ที่ชื่นชอบและแสดงความคิดเห็นในรูปแบบการสื่อสารสองทางตามแบบฉบับของเว็บ 2.0 โดยมุ่งเน้นจะเป็นศูนย์รวมเว็บไซต์ไทยที่ใหญ่ที่สุด

นายบุญต่อ กล่าวด้วยว่า ผู้ใช้สามารถตั้งค่าความเป็นส่วนตัว ด้วยการเลือกได้ว่าจะให้ผู้อื่นเข้ามาคอมเม้นท์เรื่องนั้นหรือไม่ นอกจากนี้ยังสามารถตั้งรหัสผ่านเพื่อเลือกเพื่อนที่เข้ามาอ่านคนเดียวได้ และยังมีระบบ Ping back เพื่อแจ้งเตือนเจ้าของบล็อกหากมีผู้อื่นสนใจนำเรื่องในบล็อกนั้นไปโพสต์ต่อในสนุกบล็อกเกอร์ได้อีกด้วย ขณะเดียวกัน สนุกยังพัฒนาสารบัญเว็บไทย 2.0 http://webindex.sanook.com เพื่อตอบรับกับแนวโน้มการทำเว็บไซต์ในปัจจุบันที่มุ่งไปสู่การเปลี่ยนแปลงจากเว็บ1.0 เข้าสู่เว็บ 2.0 โดยปรับปรุงจากระบบการใช้งานเดิม เพื่อให้ทันสมัยและใช้งานได้ง่ายขึ้น ขณะที่รองรับการสื่อสารจากผู้ใช้เป็นหลักตามแบบเว็บ 2.0 สำหรับผู้ที่สนใจสามารถมีส่วนร่วมและเป็นส่วนหนึ่งกับเว็บไซต์ได้ทั้งการพูดคุย สนทนา แนะนำ แก้ไข ร่วมโหวตให้คะแนน เพื่อสร้างสรรค์เนื้อหาที่ดีร่วมกัน

ปธ.บริหาร สนุกดอทคอม กล่าวอีกว่า นอกเหนือจากการเป็นเว็บ 2.0 แล้ว สารบัญเว็บไทย 2.0 ยังเป็นแหล่งค้นหาเว็บไซต์ไทยที่รวบรวมเว็บไซต์ไว้มากที่สุด โดยมีการจัดหมวดหมู่เว็บไซต์อย่างเป็นระบบ ทำให้ค้นหาง่าย พร้อมทั้งแสดงอันดับเว็บไซต์ยอดนิยมในแต่ละวัน และคำที่มีการค้นหามากที่สุด นอกจากนี้ ยังมีสารบัญเว็บไทย widget บริการใหม่สำหรับผู้ที่ต้องการของเล่น ข้อมูลเนื้อหา ของตกแต่งเว็บเพื่อเพิ่มสีสันความสวยงามให้เว็บไซต์หรือบล็อก ก็จะมีข้อมูลเนื้อหาโดยไม่ต้องจัดทำข้อมูลเอง มีหลากหลายรูปแบบให้เลือกใช้ เช่น กล่องค้นหา หมวดหมู่ละเว็บแนะนำ หมวดหมู่สารบัญเว็บไทย ทั้งนี้สนุกยังมุ่งมั่นพัฒนาบริการที่มีอยู่ให้ดีขึ้น เพื่อตอบสนองความต้องการของผู้บริโภคที่เปลี่ยนไป รวมถึงคิดค้นบริการใหม่ให้ทันต่อกระแสโลกที่ก้าวหน้าอย่างรวดเร็ว เพื่อให้สมกับความเป็นเว็บไซต์ผู้นำอันดับหนึ่งของประเทศไทย

น่าสนใจ

Posted by: wpabc on: August 12, 2008

http://suteeonline.wordpress.com

nexus404.com
jkkmobile.com
kodak.com
blog.laptopmag.com
engadget.com
businesswire.com
hothardware.com
hothardware.com
139yes.com
lg.ca
fujifilmusa.com
brando.com.hk
letsgodigital.org

http://www.techgadgets.in/

market research

Posted by: wpabc on: July 11, 2008

shopping.com

ebay.com

populars.ebay.com

target.com

alexa.com -> most popular in shopping

google.com/trends

shopping.yahoo.com

https://adwords.google.com/select/KeywordToolExternal

https://adwords.google.com/select/AdTargetingPreviewTool

osc ปรับแต่ง

Posted by: wpabc on: July 1, 2008

oscommerce ปรับ แต่ง url

Posted by: wpabc on: July 1, 2008

Ultimate SEO URLs Documentation – by Chemo

Welcome to Ultimate SEO URLs contribution documentation!

First, if you are upgrading please read the UPRGADE documentation.

What does this contribution do?

This congribution replaces the stock osCommerce method of creating URLs by passing the parameters (products_id, cPath, etc.) by creating static HTML file URLs.

In this release the cName method of URL generation has been DISCONTINUED. If you are hosted on a Windows server or otherwise need the cName method please use v2.0b

Requirements

  • osCommerce, CRE Loaded, Zen Cart, or any other osC based solution
  • >= PHP 4.3.0
  • Linux based server capable of mod_rewrite
  • …5 mintues to install the contribution

INSTALLATION – Clean install on sterile osCommerce MS-2.2

STEP #1 – Upload the class and update files

  • The class file seo.class.php should be uploaded to includes/classes/seo.class.php
  • The update file reset_seo_cache.php should be uploaded to admin/includes/reset_seo_cache.php

STEP #2 – Edit includes/application_top.phpFind this code:

// include the language translations require(DIR_WS_LANGUAGES . $language . ‘.php’); Directly AFTER add this:

// Ultimate SEO URLs v2.1 include_once(DIR_WS_CLASSES . ’seo.class.php’); if ( !is_object($seo_urls) ){ $seo_urls = new SEO_URL($languages_id); }

STEP #3 – Edit includes/functions/html_output.phpFind the tep_href_link() function:

//// // The HTML href link wrapper function function tep_href_link($page = ”, $parameters = ”, $connection = ‘NONSSL’, $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die(‘<br><br><font color=”#ff0000″><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>’); } if ($connection == ‘NONSSL’) { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == ‘SSL’) { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die(‘<br><br><font color=”#ff0000″><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>’); } if (tep_not_null($parameters)) { $link .= $page . ‘?’ . tep_output_string($parameters); $separator = ‘&’; } else { $link .= $page; $separator = ‘?’; } while ( (substr($link, -1) == ‘&’) || (substr($link, -1) == ‘?’) ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == ‘False’) ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == ‘NONSSL’) && ($connection == ‘SSL’) && (ENABLE_SSL == true) ) || ( ($request_type == ‘SSL’) && ($connection == ‘NONSSL’) ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . ‘=’ . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == ‘true’) && ($search_engine_safe == true) ) { while (strstr($link, ‘&&’)) $link = str_replace(‘&&’, ‘&’, $link); $link = str_replace(‘?’, ‘/’, $link); $link = str_replace(‘&’, ‘/’, $link); $link = str_replace(‘=’, ‘/’, $link); $separator = ‘?’; } if (isset($_sid)) { $link .= $separator . $_sid; } return $link; }</b>And REPLACE with this function:

//// // Ultimate SEO URLs v2.1 // The HTML href link wrapper function function tep_href_link($page = ”, $parameters = ”, $connection = ‘NONSSL’, $add_session_id = true, $search_engine_safe = true) { global $seo_urls; if ( !is_object($seo_urls) ){ if ( !class_exists(‘SEO_URL’) ){ include_once(DIR_WS_CLASSES . ’seo.class.php’); } global $languages_id; $seo_urls = new SEO_URL($languages_id); } return $seo_urls->href_link($page, $parameters, $connection, $add_session_id); }

STEP #4 – Edit admin/categories.php Find this code:

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ”); Directly AFTER add this:

// Ultimate SEO URLs v2.1 // If the action will affect the cache entries if ( eregi(“(insert|update|setflag)”, $action) ) include_once(‘includes/reset_seo_cache.php’);

STEP #5 – Edit admin/includes/functions/general.phpAdd this code to the file just above the ending ?> tag:

// Function to reset SEO URLs database cache entries // Ultimate SEO URLs v2.1 function tep_reset_cache_data_seo_urls($action){ switch ($action){ case ‘reset’: tep_db_query(“DELETE FROM cache WHERE cache_name LIKE ‘%seo_urls%’”); tep_db_query(“UPDATE configuration SET configurationvalue=’false’ WHERE configuration_key=’SEO_URLS_CACHE_RESET’”); break; default: break; } # The return value is used to set the value upon viewing # It’s NOT returining a false to indicate failure!! return ‘false’; }

STEP #6 – Edit .htaccess file (in your catalog directory)If you don’t have an .htaccess file in your catalog directory create one.

If your store is located in a DIRECTORY add this to the /*directory*/.htaccess file:

NOTE: you will have to edit the “directory” to match your directory name!

Options +FollowSymLinks RewriteEngine On RewriteBase /directory/ RewriteCond %{QUERY_STRING} ^options\=(.*)$ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1 RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING} If your store is located in the root add this to the /.htaccess file:

Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^options\=(.*)$ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1 RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

STEP #7 – Test the installationCall your store in your favorite broswer! The contribution should be functional out of the box and all database settings will be installed automatically on first page request. The contribution has an intelligent database installer that detects whether the proper settings are present and if not will install them.
You may need to clear your cache files to ensure that all URLs generated are fresh.
Click a few links and verify everything is functional. Test the add to cart and buy now buttons if you use them. Once you verify everything is working it’s time to configure the contribution.

STEP #8 – ConfigurationYou will find a new setting group in your admin control panel under Configuration => SEO URLs

  • Enable SEO URLs?
    • Default Setting: true
    • This setting enables/disables the SEO URLs contribution globally.
  • Add cPath to product URLs? *NEW*
    • Default Setting: false
    • This setting enables/disables the option of adding the cPath parameter to the end of product pages.
    • Example: some-product-p-1.html?cPath=xx
  • Add category parent to begining of URLs? *NEW*
    • Default Setting: true
    • This setting enables/disables the option of adding the category parent to the beginning of category URLs. This was added to maintain backward compatibility with <= 2.0b releases.
    • Example: parent-category-p-1.html
  • Choose URL Rewrite Type
    • Default Setting: Rewrite
    • This setting selection of URL rewrite types. Currently, there is only the 1 type (Rewrite) but in the future there will be more.
  • Filter Short Words
    • Default Setting: true
    • This setting allows a store owner to filter short words which typically add no value. Don’t set this too high!
  • Output W3C valid URLs (parameter string)? *NEW*
    • Default Setting: true
    • This setting allows a store owner to choose W3C valid URLs.
  • Enable SEO cache to save queries?
    • Default Setting: true
    • This setting enables/disables the query cache engine globally. If disabled each URL generated will take 1 query.
  • Enable product cache?
    • Default Setting: true
    • This setting enables/disables the option of using cache for the products.
  • Enable categories cache?
    • Default Setting: true
    • This setting enables/disables the option of using cache for the categories.
  • Enable manufacturers cache?
    • Default Setting: true
    • This setting enables/disables the option of using cache for the manufacturers.
  • Enable articles cache?
    • Default Setting: true
    • This setting enables/disables the option of using cache for the articles (if installed).
  • Enable information cache?
    • Default Setting: true
    • This setting enables/disables the option of using cache for the information pages (if installed).
  • Enable topics cache?
    • Default Setting: true
    • This setting enables/disables the option of using cache for the article topics (if installed).
  • Enable automatic redirects?
    • Default Setting: true
    • This setting enables/disables the automatic 301 header redirect logic. This sends a moved permanent header for all old URLs to the new ones. This setting is highly recommended for stores that have already been indexed by spiders.
  • Enter special character conversions
    • Default Setting: NULL
    • This setting allows a store owner to enter a list of special character conversions. Please note the format below.
    • FORMAT: char=>conv, char2=>conv2, char3=>conv3
    • NOTE: use a comma as the separator
  • Remove all non-alphanumeric characters?
    • Default Setting: false
    • This setting allows the store owner to remove all non-alphanumeric characters from the URL. This is highly effective and will result in some interesting URLs. For example, some-product-p-1.html will become someproduct-p-1.html
  • Reset SEO URLs Cache
    • Default Setting: false
    • This setting allows the store owner to clear the SEO cache manually.

OPTIONAL – Performance Monitoring and AssessmentIn includes/application_bottom.php paste this code just after the opening PHP tag:

if ( $_REQUEST['profile'] == ‘on’ || $_SESSION['profile'] == ‘on’ ) { $_SESSION['profile'] = isset($_REQUEST['profile']) ? $_REQUEST['profile'] : ‘on’; $seo_urls->profile(); } To activate the performance diagnostic code append ?profile=on to any URL which will save the setting to your session. Now you should see the performance profile data at the footer. You can browse the catalog and the output will be at the footer. This will allow you to quickly assess the performance of the homepage, category, and product pages. To turn it back off append ?profile=off to any URL.


This documentation was generated by phpDocumentor v1.3.0RC3

news

Posted by: wpabc on: July 1, 2008

social bookmarking service

Posted by: wpabc on: June 30, 2008

http://www.socialmarker.com/
http://www.socialmarker.com/