PDA

View Full Version: Giải quyết vBET 3.3.2 phá vỡ hàng ngày / hàng tuần tiêu hóa cho người dùng vBSEO



moman
16-04-10, 21:56
Điều này trao đổi mã trong phá vỡ functions_vbseo_creaturl hàng ngày / hàng tuần tiêu hóa:


// FIND
$vbseo_gcache_thread['seotitle'] = vbseo_filter_replace_text ($ttl);
// REPLACE it with this code:
$vbseo_gcache_thread['seotitle'] = vbet_vbseo_filter_replace_text ($ttl);

Khắc phục:

Trong Plugin Lên Email, thay thế nội dung đầy đủ với:


require_once(DIR . '/includes/functions_vbseo.php');

$GLOBALS['VBSEO_REWRITE_TEXTURLS'] = 1;
$GLOBALS['FIX_EMAILS'] = 1;

if(function_exists('make_crawlable') && VBSEO_REWRITE_EMAILS)
$message = make_crawlable($message);

unset($GLOBALS['VBSEO_REWRITE_TEXTURLS']);
unset($GLOBALS['FIX_EMAILS']);

Trong functions_vbseo_createurl.php:

Tìm:


$vbseo_gcache_thread['seotitle'] = vbet_vbseo_filter_replace_text ($ttl);

Thay thế bằng:


if(isset($GLOBALS['FIX_EMAILS'])) {
$vbseo_gcache_thread['seotitle'] = vbseo_filter_replace_text ($ttl);
}
else {
$vbseo_gcache_thread['seotitle'] = vbet_vbseo_filter_replace_text ($ttl);
}
}

Rõ ràng đây là một sửa chữa nhanh chóng và dơ bẩn, phải có một cái gì đó sai trái với chức năng vbet_vbseo_filter_replace_text.

Tôi tìm thấy điều này bằng cách:
1. nhận ra rằng email đăng ký diễn đàn hàng ngày và hàng tuần đã không làm việc
2. kiểm tra tất cả các móc vBulletin tiêu hóa các tập tin, dẫn đến lớp mail
3. vô hiệu hóa kết hợp Lên mail_send plugin xác nhận rằng tất cả mọi thứ ngay bây giờ làm việc

vBET
17-04-10, 17:33
Cho lưu ý, chúng tôi sẽ kiểm tra và sửa chữa nó:)

moman
17-04-10, 18:42
BTW, bạn nên tìm một giải pháp thanh lịch hơn, xin vui lòng cho tôi biết! :)

vBET
18-04-10, 22:55
Không có vấn đề:) Chúng ta sẽ tìm thấy giải pháp thanh lịch và nó sẽ được thông báo nếu có thay đổi trong hội nhập Lên sẽ là cần thiết.

tavenger5
19-04-10, 19:36
cảm ơn đã chỉ ra điều này!

vBET
03-05-10, 22:43
Giải pháp thanh lịch hơn - sẽ được bao gồm trong phiên bản tiếp theo. Nó sẽ không yêu cầu bất kỳ phiên bản Lên thêm các tập tin.

Để nhanh chóng khắc phục:
1. Chỉnh sửa tập tin / / vbenterprisetranslator_functions_vbseo.php
2. Tìm:

function vbet_vbseo_filter_replace_text($text, $allowchars = null, $filter_stop_words = true, $reversable = false) {
3. Đặt SAU:


if(isset($GLOBALS['FIX_EMAILS'])) {
return vbseo_filter_replace_text ($text, $allowchars, $filter_stop_words, $reversable);
}

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