重要:此頁面會使用Cookie (cookies). 使用本網站不關閉瀏覽器中的cookie,即表示您同意使用它。
現在購買! 特點 下載

賺錢與我們聯繫!

如果您想要開始賺錢與貝特聯接 聯盟計畫。
13 123 最後Last
結果 11021

主題: vBGallery集成問題。

  1. #1
    高級會員
    註冊日期
    2010年5月
    帖子
    257

    Default vBGallery集成問題。

    我跟著集成選項:

    http://www.vbenterprisetranslator.co....html#post1787

    這是我自定義重寫規則:

    Code:
    'gallery/index\.php$' => 'gallery/'
    'browseimages\.php\?do=favorites$' => 'favorites.html'
    'browseimages\.php\?do=subscriptions$' => 'subscriptions.html'
    'browseimages\.php\?do=member&imageuser=(\d+)$' => 'imageuser-$1.html'
    'browseimages\.php\?c=(\d+)$' => 'browse-$1.html'
    'browseimages\.php\?c=(\d+)&page=(\d+)$' => 'browse-$1-$2.html'
    'browseimages\.php\?c=(\d+)&userid=$' => 'browse-$1-albums.html'
    'browseimages\.php\?c=(\d+)&userid=(\d+)$' => 'browse-$1-user$2.html'
    'browseimages\.php\?c=(\d+)&u=(\d+)$' => 'browse-$1-user$2.html'
    'browseimages\.php\?do=popimages$' => 'top.html'
    'browseimages\.php\?do=popimages&orderby=views' => 'topviews.html'
    'browseimages\.php\?do=popimages&orderby=rating' => 'toprated.html'
    'browseimages\.php\?do=popimages&orderby=posts' => 'toppost.html'
    'showimage\.php\?i=(\d+)&noignore=0&postid=(\d+)$' => 'image-$1-$2.html'
    'showimage\.php\?i=(\d+)&original=1.*$' => 'image-$1big.html'
    'showimage\.php\?i=(\d+).*$' => 'image-$1.html'
    一切的偉大工程中的默認語言。

    我增加了融入我的主要。htaccess文件:
    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    RewriteCond %{HTTP_HOST} !^windows8theme\.org$
    RewriteRule ^(.*)$ http://windows8theme.org/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/gallery/(.*)?$ /gallery/$2?language=$1 [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    
    # MONTH
    <FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
       Header set Cache-Control "max-age=2592000"
    </FilesMatch>
    
    # WEEK
    <FilesMatch "\.(js|css|pdf|txt)$">
       Header set Cache-Control "max-age=604800"
    </FilesMatch>
    
    # DAY
    <FilesMatch "\.(html|htm)$">
       Header set Cache-Control "max-age=43200"
    </FilesMatch>
    而這對我的。htaccess的在我的畫廊目錄:

    Code:
    RewriteEngine On
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$  /vbseo.php?vbseourl=$1&vbseorelpath=./gallery/&%{QUERY_STRING} [QSA]
    RewriteCond %{REQUEST_FILENAME} !/
    RewriteRule ^(.*\.php)$ /vbseo.php?vbseourl=$1&vbseorelpath=./gallery/&%{QUERY_STRING} [QSA]
    
    RewriteCond %{QUERY_STRING} !redirected=
    RewriteCond %{QUERY_STRING} language=
    RewriteRule ^(.*)$ vbenterprisetranslator_front_controller.php?redirected=$1&vbet_outside=true [L,QSA]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    但是,每當我嘗試翻譯的任何網頁內的畫廊,我得到這個在我的瀏覽器:



    請幫助。感謝。

  2. #2
    高級會員
    註冊日期
    2010年5月
    帖子
    257

    Default

    當我在頁面上的圖像 vBGallery,我點擊一個標誌,改變語言,我得到這個:

    警告: include(/home/windows/public_html/gallery//vbseo.php) [function.include]:未能打開流:沒有那個文件或目錄 /首頁 /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php 上線 35

    警告:包括()[function.include]: 打開失敗 ' / home/windows/public_html/gallery//vbseo.php' 列入 (include_path ='.: /usr/lib/php:/usr 當地 lib/php') 中 /首頁 /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php 上線 35

  3. #3
    米哈爾 Podbielski(vBET職員) vBET's Avatar
    註冊日期
    2009年10月
    帖子
    3,037

    Default

    看起來有些規則被打破。我看到雙 /中的文件路徑,也vbseo.php文件是在畫廊目錄看著什麼,顯然是錯誤的。

    這是因為你混合正常。htaccess規則與內部百度推廣規則。而裡面的文件夾中的畫廊規則不相(像通常是這樣),但絕對的。

    所以,可能的解決方案:
    1。退出百度推廣重定向,做這一切在。htaccess - 這將更好地為你的表現,這是測試的方式整合vBET與國防部有它自己的目錄。
    2。編輯 vBET前端控制器。

    第二解決方案,請(未測試):
    1。打開文件 /畫廊 / vbenterprisetranslator_front_controller.php
    2。每更換 目錄名稱(__FILE__) (有2人)與 VBET_FORUMDIR

    請給我們您的反饋。

  4. #4
    高級會員
    註冊日期
    2010年5月
    帖子
    257

    Default

    我嘗試了第二個解決方案,但得到這個:


    警告:包括(/家/窗/的index.php)[function.include]:未能打開流:沒有那個文件或目錄 /首頁 /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php 上線 35

    警告:包括()[function.include]:無法打開'/家庭/窗口/的index.php'列入(include_path中='.:/ usr / lib中/ PHP吧:/ usr / local / lib目錄 / PHP“)在 /首頁 /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php 上線 35

  5. #5
    米哈爾 Podbielski(vBET職員) vBET's Avatar
    註冊日期
    2009年10月
    帖子
    3,037

    Default

    您更換 SET_HERE_FULL_FORUM_DIRECTORY_PATH 錯誤的價值前端控制器。請設置正確。這是第一線的前端控制器的代碼:
    PHP Code:
    define('VBET_FORUMDIR''SET_HERE_FULL_FORUM_DIRECTORY_PATH'); 
    你可以找到適當的值使用 actualdirectory.php 腳本從工具目錄。所有的細節都包含在指令下你給的鏈接在第一篇文章。

  6. #6
    高級會員
    註冊日期
    2010年5月
    帖子
    257

    Default

    Quote 作者: vBET View Post
    您更換 SET_HERE_FULL_FORUM_DIRECTORY_PATH 錯誤的價值前端控制器。請設置正確。這是第一線的前端控制器的代碼:
    PHP Code:
    define('VBET_FORUMDIR''SET_HERE_FULL_FORUM_DIRECTORY_PATH'); 
    你可以找到適當的值使用 actualdirectory.php 腳本從工具目錄。所有的細節都包含在指令下你給的鏈接在第一篇文章。
    這是它改為:

    /首頁 /窗/的public_html

    正是因為我得到了它從 actualdirectory.php

    還是應為畫廊目錄?
    最後編輯者 Taurus; 11-07-1114:50.

  7. #7
    高級會員
    註冊日期
    2010年5月
    帖子
    257

    Default

    當我將其更改為:

    /首頁 /窗/的public_html /畫廊

    然後,我得到這個:


    警告:require_once(/家/窗/的public_html /畫廊 /包括/ vbenterprisetranslator_functions.php)[function.require一次]:未能打開流:沒有那個文件或目錄 /首頁 /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php 上線 29

    致命錯誤:require_once()[function.require]:無法開啟所必需的'/家庭/窗/的public_html /畫廊 /包括/ vbenterprisetranslator_functions.php'(include_path中='.:/ usr / lib中/ PHP吧:/ usr / local / lib目錄 / PHP“)在 /首頁 /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php 上線 29
    最後編輯者 Taurus; 11-07-1114:50.

  8. #8
    米哈爾 Podbielski(vBET職員) vBET's Avatar
    註冊日期
    2009年10月
    帖子
    3,037

    Default

    Quote 作者: Taurus View Post
    這是它改為:

    /首頁 /窗/的public_html

    正是因為我得到了它從 actualdirectory.php

    還是應為畫廊目錄?
    因此,這是適當的值 - 就像指示說 - 值從 actualdirectory.php - 沒有別的。

    我不明白為什麼你的錯誤,說是看著的index.php /首頁 /窗口/首頁 /窗/的public_html
    如果您所做的更改作為被描述那麼就應該看著 /首頁 /窗/的public_html - 請 PM我你的FTP訪問的細節 - 我會檢查究竟你有你的文件現在。
    最後編輯者 vBET; 12-07-1115:44.

  9. #9
    高級會員
    註冊日期
    2010年5月
    帖子
    257

    Default

    詳細 PM'd。感謝。

  10. #10
    米哈爾 Podbielski(vBET職員) vBET's Avatar
    註冊日期
    2009年10月
    帖子
    3,037

    Default

    感謝您的訪問。我首先看到的是錯誤的 - 你想更換 目錄名稱(__FILE__)VBET_FORUMDIR 被形容為一個我以前的職位。但它不是你更換 目錄名稱(VBET_FORUMDIR)。請更正這一點,檢查它的工作。

    另外,我看到你的規則庫。htaccess文件是/ vbseo.php - 正如我寫之前,通常規則目錄是相對的不是絕對的。這也可以是一個問題,因為 vBET已經增加了路徑“/”。因此,如果經過修正,但仍不能正常工作,那麼請嘗試更換(2位):
    PHP Code:
    .'/'.$_GET['redirected'
    到:
    PHP Code:
    .$_GET['redirected'
    但是只有當它這樣做是必要 - 如果doube / /將錯誤的系統。所以,如果你會看到這樣的錯誤:
    Code:
    Warning: include(/home/windows/public_html//vbseo.php) ...
    請告訴做到了幫助。

13 123 最後Last

標籤這個主題

發帖權限

  • 可能不會 發表新主題
  • 可能不會 發表回复
  • 可能不會 上傳附件
  • 可能不會 編輯您的文章
  •