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! |
#102
|
|||
|
|||
ROFLMAO! absolutely no offense taken.
|
#103
|
||||
|
||||
Okay I've gone over everything with the users. I've checked user tables and they are duplicating into the gallery users nicely but I can't view any images. I keep getting this error. I have a fresh install of Gallery2 and one album. I run under the following:
Subdreamer is root/ Forums is forum/ Gallery2 is gallery2/ Code:
line: 115, G2 did not return a success status. Here is the error message from G2: Error (GALLERY_SUCCESS) * in at line 0 Warning: Cannot use a scalar value as an array in /gallery2.php on line 51 PHP Code:
|
#104
|
|||
|
|||
Quote:
the #51 thing i dont know.... all the scripts have that, yours is reporting an error for some reason.... |
#105
|
||||
|
||||
Quote:
Thanks for the help. |
#106
|
|||
|
|||
Thanks for the hack, I use gallery2 but the performance of it is very poor, takes forever for pages to load but other scripts work just fine
|
#107
|
|||
|
|||
Quote:
on my phpbb site with gallery, it seems to be a bit slow. but that is a shared machine. so i dont know what else is on the machine.... there are 1 or 2 tweaks you can do within gallery to attempt to improve performance. i enabled the full acceleration for guests and partial for the users(i dont remember the module name, i think it was "Performance")... |
#108
|
||||
|
||||
Quote:
I want to integrate it to my installed Hacks List. |
#109
|
||||
|
||||
I didn't release it as a hack because it wasn't me who coded the plugins or the php file. I know just enough PHP to be dangerous, so all I can really do is show people how I got things to work.
If I had released it as a hack, I'd also feel obligated to provide some kind of support, which I can't |
#110
|
||||
|
||||
You only have to uncheck the Box "supported". That´s the same and makes more comfort for all of us.
|
#111
|
||||
|
||||
Still, it's not my code and there was more than one or two people involved in writing said code, so obtaining permission would be more trouble than it's worth for me... If you want to release this as a plugin, feel free to do so.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|