Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Photoplog issue

  1. #11
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    New .htaccess seems to simply 301 /pl/gallery to /gallery.

    I'm currently using your new root htaccess file, and have tried it with both of the gallery files you posted above. I left the latter of the two in there.

  2. #12
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    I put in this gallery htaccess, and the urls work now. However, no translations are actually carried out on the page. Any ideas?

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING} [L]
    
    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)/$ index.php?language=$1&vbet_outside=true [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)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
    I know that photoplog is fairly tightly integrated with vbulletin, but it might use it's own global_complete hook instead of vB's. Any ideas?

  3. #13
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Here you have instructions for integration: http://www.vbenterprisetranslator.co...tructions.html
    THere is described how to integrate with mods which doens't support global_complete hook. In example PhotoPost doesn't - I do not know how it is in case of Photoploq

    Anyway I checked this URL: pl/gallery/ - Pentax News & Rumors - PentaxForums.com and it still doesn't work... You wrote that it is fine now, but as I see it isn't...
    As I see changes you made are wrong. There is no instruction which describes to set rules with language codes inside of plugin directory.

    Please try this set.
    For main .htaccess:
    Code:
    Options All -Indexes
    Options +FollowSymLinks
    
    ErrorDocument 404 http://www.pentaxforums.com/404.php
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,L]
    
    
    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)/$ index.php?language=$1&vbet_outside=true [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)/(.*)?$ $2?language=$1&vbet_outside=true [QSA]
    
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{Script_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?a=$1 [QSA]
    For gallery .htaccess:
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING}
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    Or for for gallery .htaccess (not according to instructions - try it later):
    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [QSA]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING} [L]
    Please note that this doesn't cover case when global_complete is not supported, but first let just make translation links working appropriately and then check what is going on with translation.

    Plrase try it with booth versions for gallery .htaccess. If still not working you can try also this for main .htaccess (with booth versions for gallery .htaccess):
    Code:
    Options All -Indexes
    Options +FollowSymLinks
    
    ErrorDocument 404 http://www.pentaxforums.com/404.php
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
    RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,L]
    
    
    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)/$ index.php?language=$1&vbet_outside=true [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)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteCond %{Script_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?a=$1 [QSA]
    This is also modification because of your rule which maps everthing on index.php - I think that this is the reason why it doesn't work right now.
    Last edited by vBET; 10-11-10 at 18:22.

  4. #14
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    My htaccess file was actually incorrect (broke other folder paths), so I took it down.

    Thanks for the suggestions- I'll try those shortly.

    However, shouldn't the gallery path be /gallery/pl/ rather than /pl/gallery/? The forum structure is similar: /forums/pl/ rather than /pl/forums/

  5. #15
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Looks like the second root htaccess works along with the first gallery htaccess!

    Try Nature - Pentax User Photo Gallery

    It 301's to the regular page, but I guess that's progress. Now we need to figure out how to get URL tracking and the actual translation to work. The 301 might be due to a vbseo 301, but assuming that'll be fixed, what are the next steps?

  6. #16
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by moman View Post
    My htaccess file was actually incorrect (broke other folder paths), so I took it down.

    Thanks for the suggestions- I'll try those shortly.

    However, shouldn't the gallery path be /gallery/pl/ rather than /pl/gallery/? The forum structure is similar: /forums/pl/ rather than /pl/forums/
    Gallery is not in the forum that is why it have different URL structure.

  7. #17
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by moman View Post
    Looks like the second root htaccess works along with the first gallery htaccess!

    Try Nature - Pentax User Photo Gallery

    It 301's to the regular page, but I guess that's progress. Now we need to figure out how to get URL tracking and the actual translation to work. The 301 might be due to a vbseo 301, but assuming that'll be fixed, what are the next steps?
    Yes I see this 301 redirect. It shouldn't happen and yes it is possible that it is made by vBSEO. First please make sure that you have turned on URL tracking outside forum directory in options in Admin CP
    If still have redirect then please check how it will work with 2nd .htaccess for gallery.
    If still have redirect please for a moment comment in gallery .htaccess rule to vBSEO and check does 301 still occurs there - we want to confirm does it is vBSEO fault. Also if it doesn't redirect then please tell does page is translated or not (we want also confirm does hook global_complete is used in your mod)

  8. #18
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    I will go ahead and check now. I'm pretty sure photoplog uses its own photoplog_global_complete hook, so we might have to add some function calls manually. I'll post an update on this shortly.

  9. #19
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Still redirecting after I removed by custom redirects. What should our next step be?

  10. #20
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    First of all - sorry for late answer. I miss your post and Mateusz just remind me about it.

    Please PM access details for your Admin CP + FTP - we need to check it on your side. This redirect shouldn’t happen and with it we cannot determine what should be next step. In other words - next step is make this redirect disappears.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •