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! |
#62
|
||||
|
||||
i think your best off to move your exising installations as brent explained in THIS POST the problem Brent ran in to was that it expected files referenced by global.php to be located in places that they aren't...
HERE are the instruction to move your current installs I use vbadvanced 2.1 on vbulletin 3.5.4 with gallery 2.1 and it all works great! |
#63
|
|||
|
|||
I must be having a super blonde moment because for some reason I just can't seem to catch on to this extremely simple newbie concept. are you saying you don't have your vb installed in your portal directory? don't you HAVE to have it in the portal directory? if that's the case where do you have your portal directory and how did you get around the whole forums having to be in the portal directory thing?
|
#64
|
||||
|
||||
Quote:
so vb = / portal =/ and gallery2 = /gallery2 :banana: |
#65
|
|||
|
|||
ok I'll give that a try. I re-read the vba install file, it doesn't say it has to be in the portal directory. I'm not sure why I thought it had to be in the portal directory other than I was thinking of vbportal. thanks for the quick response defcon, hopefully I won't have to bother you anymore.
p.s. cute nanner! LOL I don't know what I"ve done but now my css isn't working for my portal. it's working fine in my forums page though. look here maybe you can tell me what I"ve over looked (again) portal: www.vampirecommunity.com/forums/index.php forums: www.vampirecommunity.com/forums/forum.php I renamed my forums to forum.php and put my portal in my forums directory and named it index.php still no go with my style |
#66
|
|||
|
|||
i dont know anything about VBadvanced... so here is my .02
it can work with your current structure... but you need to have the gallery.php file in your forums root(as far as i know, not the protal root). then the paths must be entered from that point... so if i am reading it correctly... it shoudl look like this: PHP Code:
|
#67
|
|||
|
|||
I guess I'll get back to that as soon as I figure out why I lost my css style
gosh darn it! now I can't log in either just moved my cmps_index.php (renamed to index.php) to root and it's still a no go with the style. |
#68
|
|||
|
|||
the css on gallery will come along once you have all the paths correctly inserted. or they should.. i dont really have a test site to play with that has vbadvanced. i have plain jane VBB
|
#69
|
|||
|
|||
I finally got my design back for the most part. I had to do a complete uninstall and then reinstall. I'm not sure why but it fixed it for the most part. there's a couple of tweaks I still have to redo but nothing major. now I can play with the gallery part.
oh and thanks for your help I'm still getting this error on my gallery line: 98, Failed to create G2 user with extId [1]. Here is the error message from G2: Error (ERROR_COLLISION) in modules/core/classes/GalleryUser.class at line 166 (gallerystatus::error) in modules/core/classes/GalleryEmbed.class at line 300 (galleryuser::create) in /home/vampirec/public_html/forums/gallery2.php at line 95 (galleryembed::createuser) in /home/vampirec/public_html/forums/gallery2.php at line 50 I'm going to try the way around this like earlier posted but I have one question. I have more members than just myself...so when I make another ID do just make a new user period or does it matter what ID I give that user? |
#70
|
|||
|
|||
Quote:
if you are using the plugin approach: i belive the way it will work is that when a new user is created(VIA VBB), the plugin will be trigered and create an account in the gallery system... same idea when you delete a user account. but i am not using this method as of yet if you are soley using the integration script: when you hit the script for the 1st time(assumeing you have met all the pre req's) it will create your user account. once that is done the rest of the configuration is all done VIA gallery. if you delete a user out of VBB, you will have to delete the user manualy out of Gallery. does that all make sence to you? |
#71
|
|||
|
|||
i have a few mod questions, how can i remove these from the bottom of my pages?
also i'm useing the classic theme and at the top it has like this bar that tells you where your at *ex: if im in a sub album like lets say cars, so at the top it will say gallery/cars/ and they are links as well* (lol) well for some reason they are showing up to small on the gallery page on my forum, but in the normal gallery2/main.php the text is just fine |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|