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! |
#52
|
|||
|
|||
I get these error messages when installing the plugins. They appear when a user tries to post a new thread:
Quote:
http://boards.twilights.be/gallery2.php EDIT: for some strange and twisted reason it does show the gallery in both layouts now. Though I still get the error when I activate the plugins EDIT2: I've narrowed the source of the error down to the Update Gallery User Plugin. Final EDIT: thanks to a friend who knows a bit more about php then me I've been able to resolve all problems. There was a problem with the settings of my webserver and one problem with the script. All matters resolved! |
#53
|
|||
|
|||
go to plug in manager edit two plug in one say delete and upadate gallery
find the line public_html or something similar and fix to you need and check for the extra commo too take one out I up ../gallery it work for me |
#54
|
|||
|
|||
but you know,? i have had it uninstalled for a while now, and it still is disabled, i guess thats not my problem what else could be cuuseing this to not let the pics show up?
Quote:
|
#55
|
|||
|
|||
does you gallery work alone?
|
#56
|
||||
|
||||
Blackwidow one of your path's in the gallery2.php is incorrect.. play with the path settings
mines working great |
#57
|
|||
|
|||
your right lol i went back and read the whole script line by line and i found this
Code:
// the folder where you've installed gallery relative to httpd root. Should have trailing / define('G2_URI', '/gallery2/'); |
#58
|
||||
|
||||
ok, make another user, give them admin rights (non embedded e.g www.yoursite.com/gallery2/main.php)
then go in with the new admin embedded and delete your first admin, then re-enter him (eg. www.yoursite.com/gallery2.php) thats it basically |
#59
|
|||
|
|||
man i finaly got it im so happy now lol, i still didn't get much of what you said lol, but i played around for about 30min and i got it
great thread guys |
#60
|
|||
|
|||
anybody still with outstanding issues at this point?
JoshMount. im back, and the weather was so nice... now, about that plugin beta |
#61
|
|||
|
|||
yup me. I've done what you said to do but I think I might be in a different situation. I'm using vb 3.5.4 with g2.1 and vbadvanced 2.1(also using update/delete members plugin) which means I have g2 in my root folder, vbadvanced in root (called portal) and forums directory under vb (portal)
ie: home/ gallery2/ portal/forums/gallery2.php I fixed the two plugins where it had the extra ' after embed. ie: require_once('/home/vampirec/public_html/gallery2/embed.php ''); then I did this: Quote:
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/portal/forums/gallery2.php at line 95 (galleryembed::createuser) in /home/vampirec/public_html/portal/forums/gallery2.php at line 50 if I'm NOT logged in I get this error: line: 115, G2 did not return a success status. Here is the error message from G2: Error (GALLERY_SUCCESS) in at line 0 any clues on what the heck I did and where I might have gotten turned around? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|