vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Menalto's G2 integration into VB3 (https://vborg.vbsupport.ru/showthread.php?t=80478)

whodah 12-30-2005 12:24 AM

i was asked to post a copy of my .htaccess file.

for reference, my setup is:

www.domain.com/forums.php

www.domain.com/gallery2/

this file is located both in my web root directory and in my gallery2/ directory (perhaps redundantly in the 2nd location for that matter!)

Code:

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_FILENAME} !gallery2\.php
    RewriteRule .  -  [L]


    RewriteCond %{THE_REQUEST} \ /v/(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !gallery2\.php
    RewriteRule .  /gallery2.php?g2_view=core.ShowItem  [QSA,L]

    RewriteCond %{THE_REQUEST} \ /d/([0-9]+)-([0-9]+)/([^\/]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !gallery2\.php
    RewriteRule .  /./gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2  [QSA,L]

    RewriteCond %{THE_REQUEST} \ /v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !gallery2\.php
    RewriteRule .  /gallery2.php?g2_view=core.ShowItem&g2_path=%1  [QSA,L]

</IfModule>

# END Url Rewrite section


ZED28 12-30-2005 12:30 AM

Hey Whodah! Refresh my memory - it's been a while but enabling re-write in VB screws up the VB links right? Was the solution to hardcode them all?

whodah 12-30-2005 12:43 AM

ya :( at least in 3.0.x...

i had to hardcode my navbar links, logo, and i think some footer links...

GuaRRand 12-30-2005 06:04 AM

1 Attachment(s)
Workx great on my VB3.5 site.
http://www.glcoti.com/gallery2.php


ONly things that still bug me are the way the gallery is "shown" in the "who is online" page.

And that you dont get a nice "gallery" button in your postbit.
If anyone knows how to get that in, let me know!!!

AquilaEagle 12-30-2005 05:14 PM

Can this be made into a Plugin? :)

seanw088 01-04-2006 02:19 AM

Hey guys, I understand that with the salt stuff going on, a VB registered user won't be able to login directly to the gallery. That's cool with me, in fact I'd prefer that.

However, before I go through all the work of setting this up (and buying another license for this new site), I have a question. I already have over 100 registered users and I just launched my G2 site last week (woohoo!). I really, really don't want to have to ask them to all re-register in vB, then upload their content again. Is there ANY way at all to migrate users from G2, into vB, then require that logins come thru vB?

I'll jump through any hoops I have to if I can keep my users from having to jump through hoops. :)

Thanks in advance, and here's to hopin!
-Sean

seanw088 01-05-2006 01:12 PM

Anyone? Bueller? You guys still on holiday vacations? hehe... :) Should I ask this question in another forum as well?

ZED28 01-08-2006 02:10 PM

I have this working with VB 3.5.2 and the latest stable release of Gallery. The one thing I've noticed is the performance hit when I enable the re-write module. With it enabled, I get a not-so-smooth transitions between gallery pages - meaning a white page flashes up between them while in none re-write mode, I don't and it looks way smoother.

I also get errors reported by the browser when running the re-write module, I don't if I disable it. The errors are shown below.

Anyone else experiencing this?

http://www.lfsresource.com/stuff/errors.jpg

fringehead 01-09-2006 09:33 PM

One problem I have with this integration is the following:

When the user is inside a photo folder and clicks on login, they
will get the login relative to their position and then get an error.
What would I have to hardcode to get them directed to the proper
vbulletin login? I also have a few footer links like admin which are
needing to be hardcoded as well.. What template do I edit for them?

Thanks!!

Sean

matttpf 01-11-2006 04:31 PM

Quote:

Originally Posted by AquilaEagle
Can this be made into a Plugin? :)

i second this motion, i have a lot of members galleries but im not anywhere near technical enough to do this, so a plugin would be fantastic!


All times are GMT. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01551 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete