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! |
#152
|
|||
|
|||
Quote:
3.6 is out. Anyone upgrading? Sean |
#153
|
|||
|
|||
Quote:
Quote:
log in as yourself, the only way to resolve this is to go into the DB and manualy hack some values out. i havent done this in months so i dont remember which ones. it is earlyer in this thread, i think the tabel in the DB was existingusers or somethign along those lines. |
#154
|
|||
|
|||
Has anyone an idea where the sidebar is constructed from so I can add images instead of text, it seems to be taking it's style layout from the VB style but I don't think adding a heap of style code to that from the gallery style will do much
|
#155
|
|||
|
|||
hi, my setup is as follows:
vbulletin 3.5.3 /home/public_html/forums/<forum files> /home/public_html/gallery/<gallery files> /home/public_html/forums/gallery.php my gallery.php is like this: PHP Code:
Code:
Fatal error: Call to undefined function: iserror() |
#156
|
|||
|
|||
In the plugin which creates and updates the gallery user seems to be an error:
line 33: Instead of PHP Code:
PHP Code:
|
#157
|
|||
|
|||
Quote:
|
#158
|
|||
|
|||
no, it should be referenced to the initial post with the plugin attachment. The error is in the .xml file.
|
#159
|
|||
|
|||
Quote:
anyone managed to get this working on my kinda setup? |
#160
|
|||
|
|||
Hi, integration worked nicely in 3.6
So getting URL Rewrite to work wasn't too difficult. After getting integration working: 1) Go to Vbulletin and create a new account called anything. I called mine "Administrator" 2) Then I went to http://yourdomain.com/gallery2 and logged in as the site admin. 3) Go to usergroups and add the account created in step 1 (administrator) to the Site Admin group 4) Go to Vbulletin and log off and log on as the account created in step 1 (administrator) 5) Go to http://yourdomain.com/gallery2.php 6) Inside the embedded gallery go to Site Admin. 7) Go to Modules and activate URL rewrites 8) Go create an .htaccess in your root folder /home/yourdir/public_html . Give it 666 permissions 9) Now in the URL rewrites area (embedded mode ie. inside gallery2.php) of site admin click on Setup and you'll get a new embedded option. Here enter the path of the new .htaccess (/home/yourdir/public_html/) and then below that enter the public path (if room then just type / ) 10) Click save and now you'll be able to use URL_Rewrites with the fancy shmancy URLs http://yourdomain.com/v/username/ should work now. My question: I'm trying to figure out if it is possible to import a users gallery into his profile. Has any one attempted that? Since the usernames are the same in gallery and vbulletin would it be possible to import using the username? |
#161
|
|||
|
|||
Quote:
so you want to add images instead of "add item"(text) right??? im sure if you look at some of the styles, you can do it... i dont know off the top of my head. try looking it up on Gallery2.org? Quote:
PHP Code:
PHP Code:
Quote:
i will test that on my site sometime this week hopefully(doubtfull knowing my schedule though ) there is a way to haev Gallery on a external page. there is some code i saw somewhere. so if you can tell it to look in VBB ID x directory in Gallery, i dont see why not |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|