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! |
#142
|
|||
|
|||
Hi,
is it posible to open the Gallery in a new window? when i open it withe the gallery2.php, my layout ist broken. maybe there ist a way tho sync the users only with a cronjob? thx for help |
#143
|
|||
|
|||
Quote:
And how do I create a new template? And where do I set permissions so that I can select who gets to upload and who doesn't? -Thanks! |
#144
|
|||
|
|||
Quote:
Quote:
there is a step by step at the begining fo the thread of how to do all this. to get to your styles you haev to log into the adminCP, then "Styles & Templates", style manager, select your style, then create a new template... |
#145
|
|||
|
|||
Getting this Error:
Fatal error: main(): Failed opening required '/homepages/11/d155644365/htdocs/forums/gallery2/modules/core/classes/GalleryUtilities.class' (include_path='.:/usr/local/lib/php') in /homepages/11/d155644365/htdocs/forums/gallery2/install/index.php on line 45 |
#146
|
|||
|
|||
I'm getting some really strange looking crap and error messages.. Please check it out.
www.gargleblasterblues.com/forums/gallery2.php I don't really care about "integrating" it into my vbulletin pages. What I want is to be able to have it interact with the vbulletin database, so I don't have to create new users, etc, etc, etc. How can I just make the two databases link together and be all happy like? |
#147
|
|||
|
|||
Quote:
there is a "plugin" that would do what you want, BUT the people that were developing it have stoped using "gallery" and are now using something else. they sent me a copy, but i dont feel like messing with a working copy of my board. if you go back to the 1st post and send the guy that made the plugin a PM, he might be able to send it to you. i just dont know what state it is in. Quote:
where is your website located? where is your gallery install located? what is your websites adress? |
#148
|
|||
|
|||
Ok, i've gone through this thread and it seems that others has the same problem, but i couldn't find the answer...
Install is done and it's working well, except one thing, the international characters. If i call the gallery2 the 'usual' way, it's ok. When i view the source i can see this: Code:
<h2> Gal?ria </h2> Code:
<h2> Gal??ria </h2> 2 screens are attached... |
#149
|
|||
|
|||
Quote:
i think it is probobly due to the "embed mode" not undertanding other languages like the standard mode is(not the integration script), but i really dont know how to resolve that. sorry i cant help more man. let me know if you run across anythign else, il see what i can do to help |
#150
|
|||
|
|||
Quote:
Gallery2 is using only utf-8. you must convert your vb-database to utf-8 an set this to the default chareset in vbulletin. |
#151
|
||||
|
||||
Quote:
But, when I launch gallery2.php, I get the following while logged in as myself: Code:
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 154 (gallerycoreapi::error) * in modules/core/classes/GalleryEmbed.class at line 360 (galleryuser::create) * in /home/bostonlo/public_html/forums/gallery2.php at line 95 (galleryembed::createuser) * in /home/bostonlo/public_html/forums/gallery2.php at line 50 Code:
Unable to add cookies, header already sent. File: /home/bostonlo/public_html/forums/includes/class_dm_user.php(1571) : eval()'d code Line: 10 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|