PDA

查看完整版本: vBGallery集成問題。



Taurus
10-07-11, 12:38
我跟著集成選項:



這是我自定義重寫規則:


'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文件:


# 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的在我的畫廊目錄:


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]

但是,每當我嘗試翻譯的任何網頁內的畫廊,我得到這個在我的瀏覽器:

http://windows8theme.org/imagehosting/14e198efc98fbe.png

請幫助。感謝。

Taurus
10-07-11, 12:46
當我在頁面上的圖像 vBGallery,我點擊一個標誌,改變語言,我得到這個:

警告:包括(/家/窗/的public_html /畫廊 / / vbseo.php)[function.include(http://windows8theme.org/nl/gallery/function.include)]:未能打開流:沒有這樣的文件或目錄在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

警告:包括()[function.include(http://windows8theme.org/nl/gallery/function.include)]:無法打開'/家/窗/的public_html /畫廊 / / vbseo.php'列入(include_path中= “:/ usr / lib中/ PHP吧:/ usr / local / lib目錄 / PHP')在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

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

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

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

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

請給我們您的反饋。

Taurus
11-07-11, 13:00
我嘗試了第二個解決方案,但得到這個:


警告:包括(/家/窗/的index.php)[function.include(http://windows8theme.org/nl/gallery/function.include)]:未能打開流:沒有那個文件或目錄在/ home /窗口/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

警告:包括()[function.include(http://windows8theme.org/nl/gallery/function.include)]:無法打開'/家庭/窗口/的index.php'列入(include_path中='.:/ USR / LIB / PHP:/ USR / local / lib目錄 / PHP')在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

vBET
11-07-11, 14:13
您更換 SET_HERE_FULL_FORUM_DIRECTORY_PATH錯誤的價值在前端控制器。請設置正確。這是第一線的前端控制器的代碼:

define('VBET_FORUMDIR', 'SET_HERE_FULL_FORUM_DIRECTORY_PATH');
你可以找到適當的值使用actualdirectory.php腳本從工具目錄。所有的細節都包含在指令下你給的鏈接在第一篇文章。

Taurus
11-07-11, 14:20
您更換 SET_HERE_FULL_FORUM_DIRECTORY_PATH錯誤的價值在前端控制器。請設置正確。這是第一線的前端控制器的代碼:

define('VBET_FORUMDIR', 'SET_HERE_FULL_FORUM_DIRECTORY_PATH');你可以找到適當的值使用actualdirectory.php腳本從工具目錄。所有的細節都包含在指令下你給的鏈接在第一篇文章。

這是它改為:

/首頁 /窗/的public_html

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

還是應為畫廊目錄?

Taurus
11-07-11, 14:28
當我將其更改為:

/首頁 /窗/的public_html /畫廊

然後,我得到這個:


警告:require_once(/家/窗/的public_html /畫廊 /包括/ vbenterprisetranslator_functions.php)[function.require一次(http://windows8theme.org/nl/gallery/function.require-once)]:未能打開流:沒有那個文件或目錄在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 29

致命錯誤:require_once()[function.require(http://windows8theme.org/nl/gallery/function.require)]:無法開啟所必需的'/家庭/窗/的public_html /畫廊 /包括/ vbenterprisetranslator_functions.php'(include_path中='.:/ usr / lib中/ PHP吧:/ usr / local / lib目錄 / PHP')在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 29

vBET
12-07-11, 15:42
這是它改為:

/首頁 /窗/的public_html

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

還是應為畫廊目錄?

因此,這是適當的值 - 就像指示說 - 值從 actualdirectory.php - 沒有別的。

我不明白為什麼你的錯誤,說是看的index.php在/ home /窗口不是在/ home /窗/的public_html
如果您所做的更改作為被描述則應該是看在/ home /窗口/的public_html - 請 PM我你的FTP訪問的細節 - 我會檢查究竟你有你的文件現在。

Taurus
12-07-11, 16:03
詳細 PM'd。感謝。

vBET
12-07-11, 16:04
感謝您的訪問。我首先看到的是錯誤的 - 你想更換目錄名稱(__FILE__)來 VBET_FORUMDIR被描述為在一個我以前的職位。但它不是你更換目錄名稱(VBET_FORUMDIR)。請更正這一點,檢查它的工作。

另外,我看到你的規則庫。htaccess文件是/ vbseo.php - 正如我寫之前,通常規則目錄是相對的不是絕對的。這也可以是一個問題,因為 vBET已經增加了路徑“/”。因此,如果經過修正,但仍不能正常工作,那麼請嘗試更換(2位):

.'/'.$_GET['redirected']
到:

.$_GET['redirected']
但是只有當它這樣做是必要 - 如果doube / /將錯誤的系統。所以,如果你會看到這樣的錯誤:

Warning: include(/home/windows/public_html//vbseo.php) ...

請告訴做到了幫助。

Taurus
12-07-11, 16:21
在嘗試第二個選項,現在我得到這個:

警告:包括(dirnameVBET_FORUMDIR /的index.php)[function.include(http://windows8theme.org/nl/gallery/function.include)]:未能打開流:沒有那個文件或目錄在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

警告:包括(dirnameVBET_FORUMDIR /的index.php)[function.include(http://windows8theme.org/nl/gallery/function.include)]:未能打開流:沒有那個文件或目錄在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

警告:包括()[function.include(http://windows8theme.org/nl/gallery/function.include)]:無法打開“dirnameVBET_FORUMDIR /的index.php'列入(include_path中='.:/ usr / lib中/ PHP:/ USR / local / lib目錄 / PHP')在/ home /窗/的public_html /畫廊 / vbenterprisetranslator_front_controller.php上線 35

Taurus
12-07-11, 16:28
OK ... ...嗒嗒... ...對不起 ....錯了。我現在換成目錄名稱(__FILE__)來 VBET_FORUMDIR,但現在我得到這個:

警告:要求(。/包括/ class_bootstrap.php)[function.require(http://windows8theme.org/nl/gallery/function.require)]:未能打開流:沒有那個文件或目錄在/ home /窗口/的public_html / VB / bootstrap.php上線 30

警告:要求(。/包括/ class_bootstrap.php)[function.require(http://windows8theme.org/nl/gallery/function.require)]:未能打開流:沒有那個文件或目錄在/ home /窗口/的public_html / VB / bootstrap.php上線 30

致命錯誤:需要()[function.require(http://windows8theme.org/nl/gallery/function.require)]:無法打開需要'。/包括/ class_bootstrap.php'(include_path中='.:/ USR / LIB / PHP吧:/ usr / local / lib目錄 / PHP')在/ home /窗/的public_html / VB / bootstrap.php上線 30

Taurus
12-07-11, 16:50
好了,我會再等一天。

vBET
12-07-11, 18:18
我要檢查你有沒有現在。

Taurus
12-07-11, 18:28
OK,謝謝!

vBET
12-07-11, 19:21
我檢查實際執行 GETCWD PHP目錄(),結果是:/ home /窗/的public_html /畫廊
我試圖用CHDIR(VBET_FORUMDIR),在前端控制器,但它產生的其他問題。

正如我寫你現在使用不支持重定向的方式。我花很多時間,找到無解。如果您希望我們的工作有關此請購買集成服務(http://www.vbenterprisetranslator.com/integration-service.php)。或者只是使用。htaccess文件,而不是百度推廣內部重定向。

Taurus
16-07-11, 15:59
這個整合的方式與百度推廣是最好的方式。而到現在告訴我你不支持“說”的方式是有點不合理恕我直言。
這個 mod作品100%正確的與百度推廣百度推廣。但因為有一些不妥vbet工作有了它你會不支持呢?? OK ....感謝米哈爾。

vBET
18-07-11, 11:49
請注意,vBET是vBulletin翻譯。我們保證 vBulletin將被翻譯。我們也盡最大努力支持其他MODS是產生它自己的內容,但休息vBulletin架構。

這就是為什麼我們創建前端控制器,允許翻譯網頁所產生的MODS,打破vBulletin架構,並沒有用global_complete掛鉤。而我們開發的最通用的方法,以支持這些插件。不過我們不能保證每個不知道我們,甚至不存在尚未模寫的是在惡劣的方式,打破vBulletin架構將與標準的融合過程 - 尤其是當你對你自己的論壇不規範的做法(。 htaccess文件),因為要掛到整合百度推廣。所以,是的 - 這是我寫你之前,這是今天也是如此:在這一刻,我們不支持的情況下,當 MOD休息vBulletin架構和不使用global_complete鉤,使用它自己的目錄和代替的。htaccess使用百度推廣重定向規則。

正如我以前說你 - 我個人的工作就可以在您的論壇,希望這是小問題,但事實並非如此。這是大的情況下,所以如果你希望我們將它集成為你 - 請購買集成服務。你也可以擺脫百度推廣內部重定向和使用。htaccess的 - 在這種情況下,你已經免費說明如何整合。

而它之所以還沒有被支持是很容易的 - 沒有人需要它之前...請 - 我們彼此了解,你知道我們是有幫助的,仍然是我們的免費技術支持不包括花了很多天在別人的服務器時,不vBET錯誤,只是他的配置問題與 MOD這是不完全兼容vBulletin和另外已經解析其他MOD ...我在那裡度過了我小時,甚至沒有試圖充電,因為它是可能性,它是vBET錯誤。現在我們知道,事實並非如此。這不是vBET問題 - 這是您的配置問題,在這一刻沒有談過集成解決方案,但你仍然可以輕鬆地整合,如果你擺脫百度推廣內部重定向和使用清潔的。htaccess規則。如果您希望我們將它集成在您的服務器與內部百度推廣重定向規則 - 那麼你所要求的整合服務,費用 30美元,你可以在這裡買到:http://www.vbenterprisetranslator.com/integration-service.php

我們支持我們的論壇完全免費給予提示和答案。然而,如果我們的客戶希望我們做的工作 - 我們也有提供他們 - 這是集成/安裝 /升級服務:)

Taurus
19-07-11, 01:30
我明白了。我還想感謝您為您的時間和精力花在這一點。我現在已經停用vbgallery,因為它被證明是太多的麻煩與新的VB 4.1.5也。

vBET
20-07-11, 00:07
這時 vBET沒有測試與 vBulletin 4.1.5,因為它被認為是不穩定的,還不支持。

Taurus
20-07-11, 00:55
我沒有禁用vBET,我禁用vBGallery。

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations made by vBET Translator 4.10.1