The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Gallery 2.1 and vBulletin 3.5.X integration
This tutorial will outline the steps needed to integrate your vBulletin 3.5.X and Menalto Gallery 2.1 installations. The original thread located here has become a little too scattered, and since it's original focus was on the Gallery 2.0 and vBulletin 3.0 series, I think it'd be beneficial to start this new thread so that the information is more easily found for the 3.5.X and 2.1 series. Before we begin, you should be aware that this tutorial assumes that you'll be placing your gallery in the root directory for your forums. My directory structure looks a little like this: public_html/Vbulletin Files and public_html/gallery2/Gallery Files As long as your gallery folder is located within your root vBulletin directory, this should work just fine. Step 1: Install Menalto Gallery 2.1. Remember to upload the "gallery2" folder INSIDE your root vBulletin directory! Step 2: Create a new file containing the following, and save it as gallery2.php: PHP Code:
Step 3: Find and edit the following code to suit your site setup: PHP Code:
PHP Code:
Step 4: Create a new template in your style manager called gallery2 containing the following: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head>$headinclude $data[headHtml] </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Gallery</td> </tr> <tr> <td class="alt1">$data[bodyHtml]</td> </tr> </table> $footer </body> </html> You can achieve further integration by using johnmont's plugins which will:
PHP Code:
Hopefully this tutorial sparks a little more interest in this area and we can get some additional people contributing solutions to achieve tighter integration :banana: As the integration progresses, I'll update this thread to keep everything together and accessable. Enjoy! |
#272
|
|||
|
|||
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. |
#273
|
||||
|
||||
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. |
#274
|
|||
|
|||
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. |
#275
|
||||
|
||||
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. |
#276
|
|||
|
|||
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.
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:
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 |
#277
|
|||
|
|||
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 |
#278
|
|||
|
|||
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. |
#279
|
|||
|
|||
Is this still alive? How can i integrate just the gallery and vbulletin logins (user table)?
|
#280
|
||||
|
||||
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.
|
#281
|
|||
|
|||
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)); |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|