vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Gallery 2.1 and vBulletin 3.5.X integration (https://vborg.vbsupport.ru/showthread.php?t=111931)

Drew Manzella 02-17-2008 07:23 PM

I never saw a post saying it needed to be up a folder, just that it needed to be in my forum root (not webroot).

If I move it up into the webroot then my paths will need to be corrected.

pHluid13 02-17-2008 08:18 PM

Sorry if it wasn't clear. I have my site set up like this:

hswaves2008/forum/(forum files)
hswaves2008/forum/gallery2.php
hswaves2008/forum/index.php (vBulletin's default index)
hswaves2008/gallery/(gallery files)
hswaves2008/index.php (the vbadvanced CMPS file)

I can vouch that it works with this set up. Check the other posts in this thread, most everyone else has the same setup.

Drew Manzella 02-17-2008 08:30 PM

Yeah that is how I am doing it now. Re-uploading the G2 folder as we speak.

I'm not running vbadvance but best I can tell that doesn't matter. This just looks at vB through the globals.php file.

--------------- Added 17 Feb 2008 at 19:56 ---------------

Ok I give up. I tried it 3 times. I am now using your exact structure and exact config.php (updated for my paths) and I am still getting the white window of death.

It is working to an extent. When I try to go to the embeded gallery link nothing happens but if I log into the gallery2 installation my vB username is carried over. I tried logging in with it though and it kicked me out.

Either I am screwing something up with the template or there is an issue in the newest version of G2.

--------------- Added [DATE]1203300302[/DATE] at [TIME]1203300302[/TIME] ---------------

Ok I got it working. I was creating a new "style" and not a new "template".

Next question - how do I set it up so users can create their own galleries - or is this some functionallity that isn't part of this? I assume it is because there would be no need to pull user info if the only purpose of this was to embed G2 in the vB page.

pHluid13 02-18-2008 11:38 AM

there is apparently some code within this thread that puts the private album link in each persons profile. You will need to look for it. Before you do this, I would assume you'd just need to enable private albums for registered users in the gallery.

This is one function that I probably won't install on my site but if you figure it out, it would be nice if you post your solution for those who may look here later for help.

Drew Manzella 02-18-2008 12:07 PM

Yeah I found al that stuff but I am back to getting the white screen of death - and I didn't change anything. It is exactly how it was when it was workig and all of a sudden it just stopped.

:rolleyes:

I am gonna wipe it out and try it 1 more time.

--------------- Added [DATE]1203369864[/DATE] at [TIME]1203369864[/TIME] ---------------

Ok I finally got it all working.

I figured something out - the order in which you do things MATTERS. Every edit to every file needs to be done BEFORE you hit your trigger link for the first time.

Basically my final process (which worked) consisted of:
  1. Upload Gallery to my web server
  2. Run the Gallery install
  3. Add the "user album" plugin
  4. Create my album structure down to the location where user albums will be created
  5. Configure the user album plugin to put the albums where they needed to be
  6. Set all permissions/template options and cascade them
  7. Create the gallery2.php (Or whatever you want to call it) trigger file WITH all edits including corrections and the additional code for usergroup-based creations
  8. Created the Gallery2 template. Don't make the mistake I did and confuse a template with a style. The template you need to create goes WITHIN a style.
  9. Edited the plugin xml file to correct the errors as well as make the specified changes
  10. Uploaded the plugin file to vBulletin
  11. Upload the trigger file to my vBulletin root
  12. Hit the trigger file in a browser
Instantly it created my user album. Uploads worked fine and viewing works fine. Albums are accessible to guests as well so all is working properly but I had to fight it every step of the way to get it here.

Now that it is up and running it does integrate very well. I am going to have my site staff test it for a little while and then I will release it to the masses but if my brief tests are any indication - this is a very workable option for a vB image gallery.

The thing I like the most about it is that it installs and uninstalls without touching anything in vBulletin (other than adding the plugins and template which come out easy enough).

I went through the entire process 3 or 4 times so I am familiar with its removal as well. ;)

So for reference, here is another working install to add to the list of demos:

http://www.mazdaoca.org/community/gallery2.php

m_c 03-03-2008 09:28 AM

I've been trying to get this integrated for the past day, and can get it integrated with vB, to the point it creates the user in Gallery2, and displays the gallery within vB.
However that's as far as I can get.

I think my problem is something to do with how the Gallery 2 permissions are set-up, but I'm not sure how they should be set-up.
I have tried setting up a 'User Ablums' album, and then setting additional permissions, but the permissions then apply to all subalbums.
Can anybody give me a few pointers on how to get past this final hurdle?

I'm running G2.2, with vB 3.6.8 and vBa CMPS v3.0.0

m_c 03-05-2008 10:26 AM

Finally got the user album issue sorted, although I'm still not sure it's working how it's intended (users can create new albums within the defined User Albums album, but they're not created automatically).
The problem turned out to be a problem with the User Album plug-in, but uninstalling, then reinstalling it seems to of cured things. For anybody looking to install from scratch, I'd advise you install gallery2, set-up a test user, and check the test user can create albums and upload before trying to integrate.

I now just need to sort the link problem, which is causing page not found errors.

Cubevisions 03-07-2008 03:26 AM

Is this still alive? How can i integrate just the gallery and vbulletin logins (user table)?

pHluid13 03-29-2008 07:56 PM

The problem I am having with this and this seems to be the last problem I am having is that when a user is on the gallery2.php page, the popups for private messages dont appear if a user has a message. When they click on Options to get the expandable menu, the menu doesn't expand. There are certain features that dont work only in the gallery2.php file. They work fine on the rest of the site. Im guessing there is something missing from the gallery2.php file that allows for the full functionality of the site. Maybe someone can shed some light on my problem.

MrToasty 04-03-2008 11:49 AM

I had this working with gallery 2.0b4 with the old integration scipt... I've just upgraded gallery to 2.2 and have tried every possible combination of variables in the php file and I get nothing but the white screen!!

my setup:-

/forum/(forum files)
/gallery2/(gallery files)
/forum/gallery2.php

My variables (currently, as I've tried 1000 different combinations of relative and absolute paths here):-

Code:

$ret = GalleryEmbed::init(array('embedUri' => 'gallery.php',
'g2Uri' => '/gallery2',
'loginRedirect' => 'index.php',
'activeUserId' => $uid));

Help!?


All times are GMT. The time now is 04:38 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02791 seconds
  • Memory Usage 1,747KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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