PDA

View Full Version : vBGallery integration problems.



Taurus
10-07-11, 12:38
I followed the integration options here:

http://www.vbenterprisetranslator.com/forum/vbet4-integration-other-plugins/486-vbet-integration-instructions.html#post1787

This is my Custom Rewrite Rules:


'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'

Everything works great in default language.

I added the integration into my main .htaccess file:


# 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>

And this for my .htaccess in my gallery directory:


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]

However, whenever I attempt to translate any page inside the gallery, I get this on my browser:

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

Please help. Thanks.

Taurus
10-07-11, 12:46
When I am on an image page within vBGallery, and I click a flag to change the language, I get this:

Warning: include(/home/windows/public_html/gallery//vbseo.php) [function.include (http://windows8theme.org/nl/gallery/function.include)]: failed to open stream: No such file or directory in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

Warning: include() [function.include (http://windows8theme.org/nl/gallery/function.include)]: Failed opening '/home/windows/public_html/gallery//vbseo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

vBET
11-07-11, 12:43
Looks like some rules are broken. I see double / in file path, also vbseo.php file is looked in gallery directory what is obviously wrong.

This is because you mixed normal .htaccess rules with internal vbseo rules. And inside of gallery folder your rules are not relative (like usually is) but absolute.

So possible solutions:
1. Quit vbseo redirections and do it all in .htaccess - this will be better for your performance and this is tested way to integrate vBET with mod having it's own directory.
2. Edit vBET front controller.

For 2nd solutions please (not tested):
1. Open file /gallery/vbenterprisetranslator_front_controller.php
2. Replace each dirname(__FILE__) (there are 2 of those) with VBET_FORUMDIR

Please give us your feedback.

Taurus
11-07-11, 13:00
I tried the second solution, but got this:


Warning: include(/home/windows/index.php) [function.include (http://windows8theme.org/nl/gallery/function.include)]: failed to open stream: No such file or directory in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

Warning: include() [function.include (http://windows8theme.org/nl/gallery/function.include)]: Failed opening '/home/windows/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

vBET
11-07-11, 14:13
You replaced SET_HERE_FULL_FORUM_DIRECTORY_PATH to wrong value in front controller. Please set it appropriately. This is first line of front controller code:

define('VBET_FORUMDIR', 'SET_HERE_FULL_FORUM_DIRECTORY_PATH');
You can find appropriate value by using actualdirectory.php script from tools directory. All details are included in instructions under the link you gave in first post.

Taurus
11-07-11, 14:20
You replaced SET_HERE_FULL_FORUM_DIRECTORY_PATH to wrong value in front controller. Please set it appropriately. This is first line of front controller code:

define('VBET_FORUMDIR', 'SET_HERE_FULL_FORUM_DIRECTORY_PATH');You can find appropriate value by using actualdirectory.php script from tools directory. All details are included in instructions under the link you gave in first post.

This is what it is replaced with:

/home/windows/public_html

exactly as I got it from the actualdirectory.php

Or should it be for the gallery directory?

Taurus
11-07-11, 14:28
When I change it to:

/home/windows/public_html/gallery

Then I get this:


Warning: require_once(/home/windows/public_html/gallery/includes/vbenterprisetranslator_functions.php) [function.require-once (http://windows8theme.org/nl/gallery/function.require-once)]: failed to open stream: No such file or directory in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 29

Fatal error: require_once() [function.require (http://windows8theme.org/nl/gallery/function.require)]: Failed opening required '/home/windows/public_html/gallery/includes/vbenterprisetranslator_functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 29

vBET
12-07-11, 15:42
This is what it is replaced with:

/home/windows/public_html

exactly as I got it from the actualdirectory.php

Or should it be for the gallery directory?

So this is appropriate value - just as instructions says - value from actualdirectory.php - nothing else.

I do not understand why your errors says that index.php was looked in /home/windows not in /home/windows/public_html
If you made changes as was described then it should be looked in /home/windows/public_html - please PM me access details to your FTP - I will check what exactly do you have in your files right now.

Taurus
12-07-11, 16:03
Details PM'd. Thanks.

vBET
12-07-11, 16:04
Thanks for access. First thing I saw is wrong - you suppose to replace dirname(__FILE__) to VBET_FORUMDIR as was described in one of my previous posts. But instead you replaced it to dirname(VBET_FORUMDIR). Please correct this and check is it working.

Also as I see your rules in gallery .htaccess are to /vbseo.php - as I wrote before usually rules in directory are relative not absolute. This can also be an issue, because vBET already adds to path '/'. So if after correcting, it is still not working then please try to replace (in 2 places):

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

.$_GET['redirected']
But do it only if it will be necessary - so if doube // will be wrong for your system. So do it if you will see errors like:

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

Please tell did it help.

Taurus
12-07-11, 16:21
Before attempting the second option, I get this now:

Warning: include(dirnameVBET_FORUMDIR/index.php) [function.include (http://windows8theme.org/nl/gallery/function.include)]: failed to open stream: No such file or directory in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

Warning: include(dirnameVBET_FORUMDIR/index.php) [function.include (http://windows8theme.org/nl/gallery/function.include)]: failed to open stream: No such file or directory in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

Warning: include() [function.include (http://windows8theme.org/nl/gallery/function.include)]: Failed opening 'dirnameVBET_FORUMDIR/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/windows/public_html/gallery/vbenterprisetranslator_front_controller.php on line 35

Taurus
12-07-11, 16:28
OK...blah...sorry....wrong again. I now replaced dirname(__FILE__) to VBET_FORUMDIR, but now I get this:

Warning: require(./includes/class_bootstrap.php) [function.require (http://windows8theme.org/nl/gallery/function.require)]: failed to open stream: No such file or directory in /home/windows/public_html/vb/bootstrap.php on line 30

Warning: require(./includes/class_bootstrap.php) [function.require (http://windows8theme.org/nl/gallery/function.require)]: failed to open stream: No such file or directory in /home/windows/public_html/vb/bootstrap.php on line 30

Fatal error: require() [function.require (http://windows8theme.org/nl/gallery/function.require)]: Failed opening required './includes/class_bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/windows/public_html/vb/bootstrap.php on line 30

Taurus
12-07-11, 16:50
OK, so I will have to wait another day.

vBET
12-07-11, 18:18
I'm going to check what you have there now.

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

vBET
12-07-11, 19:21
I checked actual php directory by executing getcwd() and the result is: /home/windows/public_html/gallery
I tried to use chdir(VBET_FORUMDIR); in front controller, but it produces other issues.

As I wrote you are using now not supported redirections way. I spend lot of time and find no solution. If you want us to work more on this please buy integration service (http://www.vbenterprisetranslator.com/integration-service.php). Or just use only .htaccess instead of vBSEO internal redirections.

Taurus
16-07-11, 15:59
The way to integrate this with vbseo is the best way possible. And to now tell me you don't support 'that' way is a bit unreasonable IMHO.
This mod works 100% correct in vbulletin with vbseo. But because there is something wrong with vbet to work with it you will not support it?? OK....thanks Michal.

vBET
18-07-11, 11:49
Please note that vBET is vBulletin translator. We guarantee that vBulletin will be translated. We also do our best to support other mods which are generating it's own content, but breaks vBulletin architecture.

This is why we created front controller which allows to translate pages generated by mods which breaks vBulletin architecture and to no use global_complete hook. And we developed generic way to support most of such plugins. Still we are not able to guarantee that each not know by us, or even not existing yet mod which is written in bad manner and breaks vBulletin architecture will work with standard integration procedure - especially when you have on your own forum not standard approach (.htaccess), because to hanged it to integrate with vbseo. So yes - this is what I wrote you before and this is true also today: at this moment we do not support the case when mod breaks vBulletin architecture and to not use global_complete hook, use its own directory and instead of .htaccess are used vbseo redirection rules.

As I wrote you before - I personally was working on it on your forum, hoping it is small issue, but it is not. It is big case, so if you want us to integrate it for you - please buy integration service. You can also just get rid of vbseo internal redirections and use .htaccess - in such case you have already free instructions how to integrate.

And the reason it is not supported yet is very easy - no one needed it before... Please - we know each other and you know we are helpful, still our free support do not include spending days on someone server when it is not vBET bug, just his configuration issue with mod which is not fully compatible with vBulletin and additionally is already parsed by other mod... I was there I spend over hour without even trying to charge, because it was possibility that it is vBET bug. Now we know that it is not. This is not vBET issue - this is your configuration issue which at this moment do not have already described integration solution, BUT you can still easily integrate if you get rid of vbseo internal redirections and use clean .htaccess rules. If you want us to integrate it on your server with internal vbseo redirection rules - then you are asking for integration service which costs $30 and you can buy it here: http://www.vbenterprisetranslator.com/integration-service.php

We support totally free by our forum by giving hints and answers. Still if our customers want us to do the job - we also have offer for them - it is integration/installation/upgrade service :)

Taurus
19-07-11, 01:30
I understand. I want to also thank you for your time and effort spent on this. I have now disabled vbgallery as it is proving to be too much of a hassle with the new vb 4.1.5 also.

vBET
20-07-11, 00:07
At this moment vBET was not tested with vBulletin 4.1.5 because it is considered unstable and not supported yet.

Taurus
20-07-11, 00:55
I did not disable vBET, I disabled vBGallery.

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