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! |
#112
|
|||
|
|||
I like to show the user' s gallery in his profile. Does anybody know how to do this?
|
#113
|
|||
|
|||
Quote:
there is a way to integrate gallery related pictures into an external webpage. so i assume its doiable, but i dont know about just x users images(without looking at it again) if you do a search on gallery2.org, you might be able to find somebody who did the code for PHPBB(or something). if so post up a link, and i will see if i can decyfer what they are doing into VBB... odds are i cant, but somebody might be able to Quote:
JohnMount and 1 other person(i keep forgetting who it is) were working on the code. they sent me a copy that was not posted, but i have yet to have the time to install it and test it on my board. i sadly only have my LIVE site, and i dont reallllly want to risk blowing it up |
#114
|
|||
|
|||
Quote:
I just made a fresh installation of gallery and placed it in my root directory vb: http://www.balkanium.com/index.php gallery: http://www.balkanium.com/gallery/main.php There is only one gallery user (me). My vb already has many users. What should i do? My gallery.php file: PHP Code:
|
#115
|
|||
|
|||
Quote:
try creating a new user, then log into gallery VIA the integration script... i think it will work fine... the issue(most likley) is that you had a user, then removed it. gallyer still have the VBB userid saved in the DB.. you would need to go into the DB and remove the VBB id from ?Ext IDs?. |
#116
|
|||
|
|||
Don't manually create a user in g2 that has the same name as a vb user or you get the collision error.
I'm also right now working on a user import system for my board. I wasn't planning on releasing it, but if anyone wants it, I'll make it available - when I finish it.. The only reason you would need to import all the users is to have matching ids for an existing photo album....otherwise, the script on the original post will create them on the fly. also...unless I missed it.. it is super important that you should deactivate G2's user registration module since all new users should register with VB (or don't install it). ps- thanks brent....this is a great script and good info!!! |
#117
|
||||
|
||||
Does it work with vBulletin 3.6 BETA ?
|
#118
|
|||
|
|||
Quote:
I have a pre-existing G2 installation and have integrated it with vbulletin - however when I attempt to view it whilst logged in to vbulletin, I get the collision error. |
#119
|
|||
|
|||
No. It won't solve your collision errors.
The collision error is a result of creating a new user outside the integration. As I said 2 posts up, you can't do that. What happens is when you visit the integrated G2 site, it first looks in a link table for your VB userid to find the appropriate G2 userid. When it can't find one (since you never registered inside the integrated G2) it then attempts to create a new user - with the same username - and then you will get the collision error. There are a bunch of ways you can fix the error. If you are the only submitting user, just manually add the two userids in the useridmap table (I forget the exact name of the table offhand) and you will be set. If you have a lot of users, you could delete all the users in G2 (but lose who the owner is of each picture). Frankly, the best option if you have more than a few users, is to edit the gallery.php script so that after it checks for id in the link table it looks for matching usernames. If it finds one, then insert the link record rather than going straight to creating a new user. If someone does bother to make this addition, it should be part of the default gallery.php people use. |
#120
|
|||
|
|||
Quote:
wahooo, somebody to help with support!!! how are you going(or planning) on getting your script/plugin to work with gallery? a similar way to the plugin mentioned earlyer in this thread, or some other way that i am unaware of |
#121
|
|||
|
|||
I have the script completed.
It is a one time use script that will copy the users from your existing VB database into a clean G2 database. There are going to be very few folks who want this (or could use it). The only purpose (I know of) is if you have an existing photo album and you import the photoalbum into G2, then you will need to have all the IDs matched before it will work correctly. If anyone wants it, I'll release it. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|