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! |
#212
|
|||
|
|||
Quote:
side note: a few weeks ago i edited Gallery2's site to point to MY gallery integration so that people know this project is still alive just to make you all aware Quote:
gallery and VBB on another server: i think woudl be more complicated. you would have to point the integration script to the other server, im not sure how happy VBB/Gallery would be with this, but i dont see why it would not work VBB and Gallery on the same, images on another: this is the easyer of the two to do(i think). when you install gallery just point the image store directory to the other server(or however your prefered method would be) and then go forth like normal. depending how gallery acts with this all woudl be fine. this question would be better directed at Gallery2.org though... they know the software much better than I. i can only guess as of to how it works Quote:
|
#213
|
|||
|
|||
I have a very strange problem. If you guys could help out that would be great.
So far this plugin has been working great. However, I recently noticed that Page 10 of the main album index does not work...everything else is fine. If you go to page 10, here is the error you get Quote:
|
#214
|
|||
|
|||
I'm having a bit of a strange problem and I was hoping someone could help.
Using this embedded in the latest VB. The front page of the gallery works fine but when I go into an album to actually look at what's in it it seems to come out of embedded mode and is displayed full screen. It now no longer appears embedded despite the URL still being something like gallery2.php?g2_itemId=206. |
#215
|
|||
|
|||
Where are the demos, screenshots, etc. for this from the author in the main post.
|
#216
|
|||
|
|||
Quote:
Quote:
Quote:
http://www.RacersDen.net/forum/gallery.php is my gallery... thats about the best i got for you... |
#217
|
||||
|
||||
Pardon me for sounding like an idiot, but I'm about frothing at the mouth in frustration after spending over an hour on this, and searching here and at the Gallery site does NO good because it gets way too many search results, exactly zero of which have anything to do with answering my question. Namely: What the holy heck am I supposed to actually DO with the "gallery-plugins.xml" file? Keep in mind that this is also my first real attempt to use Gallery2 (been too happy with Gallery1 on my other sites for all these years) so if this is some incredibly well known process in G2, I don't know it because I haven't used G2 before.
I'll be over here in the corner whimpering and twitching, awaiting some kind soul's response ---> I am adding this gallery as part of upgrading vbulletin, and so this is all on a test server at the moment. Anyway, I have the thing installed and quasi-functional, but as soon as you click on an album, you are whisked out of the embedded environment. Why? http://test.fathom.org/forums/gallery2.php |
#218
|
|||
|
|||
I have a big Problem.
I have install the vb Version 3.6.4 and Gallery 2.1 When i logged in as M?cke it gives the follow problem... Code:
line: 98, Failed to create G2 user with extId [2152]. Here is the error message from G2: Error (ERROR_STORAGE_FAILURE) * in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 317 (GalleryCoreApi::error) * in modules/core/classes/GalleryStorage.class at line 304 (GalleryStorageExtras::saveEntity) * in modules/core/classes/GalleryEntity.class at line 317 (GalleryStorage::saveEntity) * in modules/core/classes/GalleryUser.class at line 212 (GalleryEntity::save) * in modules/core/classes/GalleryEmbed.class at line 365 (GalleryUser::save) * in /var/www/web0/html/ni/gallery2.php at line 95 (GalleryEmbed::createUser) * in /var/www/web0/html/ni/gallery2.php at line 50 i dont know really... I hope some people can help me!!!! |
#219
|
|||
|
|||
Hey guys,
Thanks for all the Great work and help here! I was able to install the embed and everything thing works. The problem im having now is the same as others and the Gallery Remote doesnt connect with anything other than the admin account (the one im assuming was already in Gallery to begin with) No other user, admin privileges or not, can get it to connect. It gives error "Invalid username/password. If your Gallery is embedded inside a CMS like PostNuke, you need to use the "native" (non-embedded) Gallery URL to log in, as well as the native Gallery user and password. You can test these by trying to go the native URL and trying to log in. " Since the users getting the error get it on the same URL that the admin user/pass works, im assuming this problem is because of the way vb has set the passwords or something in gallery. My folder stucture is www/forum/ www/forum/gallery Im hoping someone smarter than me here has figured this out? Remote is a great desire for our needs, any help would be appreciated. |
#220
|
|||
|
|||
Thank you very much for putting this together, I am very pleased with the end results and how easy it was me to do.
|
#221
|
|||
|
|||
There is a bug in the first post, Step 2:
$uid = $vbulletin->userinfo['userid'] = 0 ? '' : $vbulletin->userinfo['userid']; should be: $uid = $vbulletin->userinfo['userid'] == 0 ? '' : $vbulletin->userinfo['userid']; |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|