Enpòtan: Paj sa a se lè l sèvi avèk bonbon (cookies). Sèvi ak sit entènèt sa a san yo pa vire sou bonbon nan navigatè, vle di ke ou dakò pou sèvi ak li.
Buy Now! Features Downloads

Gen ak nou!

Si ou ta renmen kòmanse lajan ak are vBET pou salè pou gwo travay Afilye pwogram.
Paj 1 nan 3 123 DenyeLast
Rezilta 1 10 nan 21

Thread: vBGallery pwoblèm entegrasyon.

  1. #1
    Senior Member
    Join Date
    Me 2010
    Posts
    257

    Default vBGallery pwoblèm entegrasyon.

    Mwen te swiv opsyon ki disponib nan entegrasyon isit la:

    http://www.vbenterprisetranslator.co....html # post1787

    Sa a se Règ Custom reekritur mwen an:

    Code:
    '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'
    Tout travay gwo nan lang default.

    Mwen te ajoute entegrasyon a nan dosye prensipal mwen an takses.:
    Code:
    # 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>
    Lè sa a pou m 'takses nan anyè galri m' yo.:

    Code:
    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]
    Sepandan, lè mwen eseye tradui nenpòt ki paj andedan galri la, mwen jwenn sa a sou navigatè mwen an:



    Tanpri ede. Thanks.

  2. #2
    Senior Member
    Join Date
    Me 2010
    Posts
    257

    Default

    Lè mwen sou yon paj imaj nan lespas vBGallery, epi mwen klike sou yon drapo chanje lang nan, mwen jwenn sa a:

    Avètisman: include(/home/windows/public_html/gallery//vbseo.php) [function.include]: Echwe pou pou louvri kouran: Pa gen tankou dosye w la oubyen anyè nan / Home / fenèt / public_html / galri / vbenterprisetranslator_front_controller.php sou liy 35

    Avètisman: Genyen ladan () [function.include]: Echwe louvri ' / home/windows/public_html/gallery//vbseo.php' pou enklizyon (include_path ='.: /usr/lib/php: / usr/lokal/lib/php ') nan / Home / fenèt / public_html / galri / vbenterprisetranslator_front_controller.php sou liy 35

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

    Default

    Sanble kèk règleman yo kraze. Mwen wè doub / nan chemen dosye li an, se tou vbseo.php ranpli gade nan anyè galri ki sa ki evidamman sa ki mal.

    Sa a se paske ou melanje nòmal. Takses règ avèk règ entèn vbseo. Ak andedan folder galerifoto règ ou yo pa relatif (tankou Jeneralman sa yo se), men absoli.

    Se konsa, li posib solisyon:
    1. Kite rdirèksyon vbseo ak fè li tout nan takses -. Sa a pral pi bon pou pèfòmans ou an ak sa a se teste fason yo entegre vBET ak mod gen pwòp anyè li nan.
    2. Edit vBET kontwolè devan.

    Pou solisyon 2nd tanpri (pa te teste):
    1. Louvri ranpli / Galri / vbenterprisetranslator_front_controller.php
    2. Ranplase chak dirnam (__FILE__) (Gen 2 nan moun ki) avèk VBET_FORUMDIR

    Tanpri, ban nou fidbak ou.

  4. #4
    Senior Member
    Join Date
    Me 2010
    Posts
    257

    Default

    Mwen te eseye solisyon an dezyèm, men te gen sa a:


    Avètisman: Genyen ladan (/ home / fenèt / index.php) [function.include]: Echwe pou pou louvri kouran: Pa gen tankou dosye w la oubyen anyè nan / Home / fenèt / public_html / galri / vbenterprisetranslator_front_controller.php sou liy 35

    Avètisman: Genyen ladan () [function.include]: Failed ouvèti '/ home / fenèt / index.php' pou enklizyon (include_path ='.:/ uzr / lib / php: / uzr / lokal / lib / php ') nan / Home / fenèt / public_html / galri / vbenterprisetranslator_front_controller.php sou liy 35

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

    Default

    Ou ranplase SET_HERE_FULL_FORUM_DIRECTORY_PATH mal valè nan kontwolè devan. Tanpri, mete l 'kòmsadwa. Sa a se premye nan liy postal kontwolè devan:
    PHP Code:
    define('VBET_FORUMDIR''SET_HERE_FULL_FORUM_DIRECTORY_PATH'); 
    Ou ka jwenn ki apwopriye valè lè l sèvi avèk actualdirectory.php script nan anyè zouti. Tout detay yo enkli nan enstriksyon anba lyen an ou te ban nan post premye.

  6. #6
    Senior Member
    Join Date
    Me 2010
    Posts
    257

    Default

    Quote Originally Posted by vBET View Post
    Ou ranplase SET_HERE_FULL_FORUM_DIRECTORY_PATH mal valè nan kontwolè devan. Tanpri, mete l 'kòmsadwa. Sa a se premye nan liy postal kontwolè devan:
    PHP Code:
    define('VBET_FORUMDIR''SET_HERE_FULL_FORUM_DIRECTORY_PATH'); 
    Ou ka jwenn ki apwopriye valè lè l sèvi avèk actualdirectory.php script nan anyè zouti. Tout detay yo enkli nan enstriksyon anba lyen an ou te ban nan post premye.
    Sa a se sa li ye ranplase ak:

    / Home / fenèt / public_html

    egzakteman jan mwen te resevwa li nan men actualdirectory.php a

    Oswa ta dwe li pou anyè a galerifoto?
    Last edited by Taurus; 11-07-11 nan 14:50.

  7. #7
    Senior Member
    Join Date
    Me 2010
    Posts
    257

    Default

    Lè m 'chanje li a:

    / Home / fenèt / public_html / galri

    Apre sa, mwen jwenn sa a:


    Avètisman: Require_once (/ home / fenèt / public_html / galri / gen ladan vbenterprisetranslator_functions.php /) [function.require-yon fwa]: Echwe pou pou louvri kouran: Pa gen tankou dosye w la oubyen anyè nan / Home / fenèt / public_html / galri / vbenterprisetranslator_front_controller.php sou liy 29

    Fatal erè: Require_once () [function.require]: Failed ouvèti egzije '/ home / fenèt / public_html / galri / gen ladan / vbenterprisetranslator_functions.php' (include_path ='.:/ uzr / lib / php: / uzr / lokal / lib / 'php) nan / Home / fenèt / public_html / galri / vbenterprisetranslator_front_controller.php sou liy 29
    Last edited by Taurus; 11-07-11 nan 14:50.

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

    Default

    Quote Originally Posted by Taurus View Post
    Sa a se sa li ye ranplase ak:

    / Home / fenèt / public_html

    egzakteman jan mwen te resevwa li nan men actualdirectory.php a

    Oswa ta dwe li pou anyè a galerifoto?
    Se konsa, sa a se valè ki apwopriye - menm jan ak enstriksyon di - valè soti nan actualdirectory.php - pa gen anyen lòt bagay.

    Mwen pa konprann poukisa ou a di erè ki te index.php gade nan / Home / fenèt pa nan / Home / fenèt / public_html
    Si w fè chanjman ki dekri jan sa te Lè sa a, li ta dwe gade nan / Home / fenèt / public_html - Tanpri PM m 'aksè detay sou FTP ou - Mwen pral tcheke pou wè ki sa egzakteman ou gen nan dosye ou kounye a.
    Last edited by vBET; 12-07-11 nan 15:44.

  9. #9
    Senior Member
    Join Date
    Me 2010
    Posts
    257

    Default

    Details PM'd. Thanks.

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

    Default

    Mèsi pou aksè. Bagay premye fwa mwen te wè ki mal - nou kwè ranplase dirnam (__FILE__) VBET_FORUMDIR jan sa te dekri nan youn nan Previous Posts m 'yo. Men, olye ou ranplase li nan dirnam (VBET_FORUMDIR). Tanpri kòrèk sa a epi tcheke se li fè travay li.

    . Epitou, jan mwen wè règ ou nan galri takses yo dwe / vbseo.php - jan mwen wrote anvan anjeneral règ nan anyè yo se fanmi pa absoli. Sa a kapab tou yon pwoblèm, paske vBET deja ajoute nan chemen '/'. Se konsa, si apre korije, li se toujou pa travay Lè sa a, tanpri eseye ranplase (nan 2 kote):
    PHP Code:
    .'/'.$_GET['redirected'
    nan:
    PHP Code:
    .$_GET['redirected'
    Men, fè l 'sèlman si li pral nesesè - Se konsa, si doube / / yo pral mal pou sistèm ou an. Se konsa, fè li si ou pral wè erè tankou:
    Code:
    Warning: include(/home/windows/public_html//vbseo.php) ...
    Tanpri, di t 'fè sa ede ou.

Paj 1 nan 3 123 DenyeLast

Tags pou sa a Thread

Posting Permissions

  • Ou Pouvwa pa Post fil nouvo
  • Ou Pouvwa pa Post replies
  • Ou Pouvwa pa Post atachman
  • Ou Pouvwa pa modifye posts ou
  •