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! |
#222
|
|||
|
|||
Hi can someone tell me how to make it so i can use my gallery2 css instead of my vbull?
see i need my gallery to run through gallery2.php so it integrates, but i want my gallery style to be untouched. I tried removing navbar,header,footer etc from the template but it's still not looking like my standalone gallery the fonts etc are messed up.. thanks for any help! I have another issue maybe someone can help with. My users have nicknames but for their gallery album names they want to use their real name. I found I could use the owner field in gallery2, they can enter their full name and this shows on the gallery page. However this mod seems to remove the "your account" link. I need this link to be accessible so they can edit their "full name" under gallery, any ideas how to re-enable the link? Another problem. my users have no link to add content items. When i enabled the block that did have this option they could all control data throughout the gallery eventhough as far as i could tell they should not have been able to. hope someone can help.. |
#223
|
|||
|
|||
Quote:
Hope that helps. |
#224
|
|||
|
|||
I only have a few problems now:
1. When I logout of vbulletin I recieve errors At the top of the screen Quote:
Quote:
|
#225
|
|||
|
|||
This is all working. Thanks for the thread guys, very useful. As ever, I want just a little bit more
Having added a new user in gallery2.php, I'd like to assign the user to an existing user group at the same time. Anyone done this? Another parameter on the same command, or another command? I'll fight through and work it out if I have to, but it'll probably take one of you guys seconds to point me in the right direction. Thanks Alan |
#226
|
|||
|
|||
Hey guys, just curious... Does this integration work with the latest vbulletin 3.6.5
I've been reading through the posts here but not really anyone is clearly stating what version of vb they're using. I'm really disatisfied with vbgallery and photopost as members are not allowed to assign thumbnails to their albums. This is why I want to go to Gallery2 thanks a lot, nonamer66 |
#227
|
|||
|
|||
Great Hack =] It's running very good an the install was easy - top !!
|
#228
|
|||
|
|||
Forgive a noob question, but where do I insert the style code in Step #4?
Thanks, snerd |
#229
|
||||
|
||||
Anyone please, does this work with 3.6.5???
Thanks in advance. |
#230
|
|||
|
|||
I run this and vB 3.6.5
no problems yet. |
#231
|
|||
|
|||
Has anyone used this method to allow both public & private galleries?
I want to setup a public gallery, which requires registration in order to upload photos. New users shold be able to upload only 20 photos, but as their ranks increase in the forums (either via posts, rankings, voting of photos, or other methods, they are added to groups with higher upload limitits. I also want to have adult orientated galleries, but only want to allow access to people older than 18 to browse / upload photos in these galleries. So, ideally it shouldn't allow people to access gallery directly any suggestions? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|