PDA

View Full Version : Solved Correcting CSS file location



tavenger5
02-03-10, 23:20
I modified a line of code that builds where how css file is called from @import to link (because it's a better and faster way to call css). Now is seems that CSS file locations are not correct. For example...

http://site.com/clientscript/vbulletin_css/style-92bda39b-00001.css

is being rewritten to
http://site.com/es/clientscript/vbulletin_css/style-92bda39b-00001.css

which is resulting in a 404. How do I make it so this does not get 'translated'?

vBET
03-03-10, 21:03
Are you sure you have good .htaccess rules? It should work. It is working on our forum. Please PM me your forum URL I will check it.

tavenger5
03-03-10, 23:36
I just double checked my .htaccess rules and thy are all good. Sent you a PM.

vBET
08-03-10, 16:12
Quick fix solution (will be included in next release):

1. Open file /includes/vbenterprisetranslator_functions_url_tracking.php
2. Find:


if (0 === strpos($address, 'javascript:') || $address == '#' || vbet_isURLIgnored($address)) {

3. Replace by:


if (false !== strpos($address, '.css') || 0 === strpos($address, 'javascript:') || $address == '#' || vbet_isURLIgnored($address)) {

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages supported by vB Enterprise Translator 4.10.1