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! |
#172
|
|||
|
|||
![]()
Thanks, I'll play with the script a bit and see what I can come up with.
As far as the remote goes, the "imbedded java upload client" isn't working as well. I'll double check the paths but I think they were correct. Thanks for the help! |
#173
|
|||
|
|||
![]() Quote:
it's working great now cheers! |
#174
|
||||
|
||||
![]()
I posted this up over on the menalto forums too in hopes of a resolution for a funky problem.
I'm integrating Gallery2 into my vBulletin script (which is essentially done). The problem I have is the folder navigation within the Gallery. Say I have a folder called Jeremy under the main Gallery. If I'm in the Jeremy folder and want to navigate back to Gallery (by clicking the breadcrumb link under the Gallery logo) it does a random google search on 'forum'. The same holds true for any nested folders. If you try to go up the breadcrumb trail it's doing that random search. |
#175
|
|||
|
|||
![]() Quote:
"Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 22'." Any suggestions? |
#176
|
||||
|
||||
![]()
Ok, disregard my previous post. I have the gallery working fully outside the forum. When I view it from an embedded view, something is up with the style. I don't have all the navigation links like I do when I view outside the forum.
Check the screen caps below. I known when I was monkeying around with it before it did this same thing, and I ended up completely removing and reinstalling. Could it possibly be a corrupted style or something? |
#177
|
|||
|
|||
![]()
My installation completed and things work fine, except the link below user within VB once click on error comes out:->
You don't have permission to access /forum/gallery2/g2data/albums/xxxxx/ on this server. Can any kind soul help? Thanks. |
#178
|
||||
|
||||
![]()
Hi all,
I follow instructions to install gallery2 on the same root folder as my forum and everything seems to work ok. I was able to upload and view images as standalone version: http://<mydomain>/forum/gallery2/main.php but when I switch to the embeded version: http://<mydomain>/forum/gallery2.php I don't see any thumbnails in my gallery? Any idea. TIA for you help. -xitrum PS. Gallery 2.1, VBB 3.6 |
#179
|
|||
|
|||
![]()
Can anyone tell me what to remove from the gallery code posted so that it is a purely visual integration?
|
#180
|
||||
|
||||
![]()
OK. I tried again with a new installation on my local machine and everything seems to work (now even thumbnails displayed when i access gallery2.php) ...except when I add a new item to the album.
After uploaded a new photo, the browser refresh with this URL: http://<mydomain>/gallery2.php?g2_view=core.ItemAdmin&g2_subView=cor e.ItemAddConfirmation&g2_itemI d=7&g2_statusId=x5a383bbd&g2_navId=x58f76c22 It should have been: http://<mydomain>/forum/gallery2.php?g2_view=core.ItemAdmin&g2_subView=cor e.ItemAddConfirmation&g2_itemI d=7&g2_statusId=x5a383bbd&g2_navId=x58f76c22 So the script actually pickup only the basename of the domain name. If I insert /forum to the URL and refresh then it works! Can someone please help showing me how to fix this problem? TIA. -xitrum ================================================== ================= I think I found the problem now. It was with these 2 lines in gallery2.php file $ret = GalleryEmbed::init(array('embedUri' => '/forum/gallery2.php', 'g2Uri' => 'http://<full domain name>/forum/gallery2/', The first line must have full path from the root of httpd. The second line should have the full domain name. Everything works now. Thanks. Great mod. xitrum ================================================== ============================ Man... I am having a headache with this and almost giving up now.. Wonder if anyone with the same problem or anyone can help out with this. My standalone gallery2 works fine with: http://<mydomainurl>/forum/gallery2/main.php but when I tried the embeded version, I lost the theme and only the text display so it take up a lot of screen real estate: http://<mydomainurl>/forum/gallery2.php I have gallery2 installed as: $htdocs/forum/gallery2 On my local test machine, the embeded version display correct theme. Only the production env it doesn't display correctly. Don't know what the differences are. There must be a very simple explanation to this! PLEASE HELP. TIA xitrum |
#181
|
||||
|
||||
![]()
================================================== ==
I found out that the path to images directory is not correct when using the embeded gallery link. Images link shown: http://<domainurl>/forum/images/galleryLogo_sm.gif instead of: http://<domainurl>/forum/gallery2/images/galleryLogo_sm.gif where: Forum installed at: http://<domainurl>/forum Gallery2 installed at: http://<domainurl>/forum/gallery2 Can someone please shed some light on this issue? TIA. -xitrum |
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|