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! |
#92
|
|||
|
|||
on my site the gallery integration script HAS TO BE IN THE FORUM DIRECTORY.... im trying to work around that now so that the mod rewrite will work. but i haev had no sucess yet...
if i understand correctly.... try to diable the gallery plugin, im assuming you installed it since you are getting that error... or are you getting that error when you attempt to run the integration script? Quote:
|
#93
|
|||
|
|||
My site: Canuck Clan
The Error occurs when logging out. However if you reload the page it reloads and you are indeed logged out. I first noticed this after installing gallery following THESE INSTRUCTIONS as well as installing the gallery plugins. The Error at the top of the page: Code:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/L/u/k/Lukeharris/html/vbullet/forums/includes/class_dm_user.php(1571) : eval()'d code on line 10 Code:
Unable to add cookies, header already sent. File: /home/content/L/u/k/Lukeharris/html/vbullet/forums/includes/class_dm_user.php(1571) : eval()'d code Line: 10 Luke PS: I just de-ativated the Delete Gallery User/Update Gallery User and the problem has disapeard. UPDATE WITH MY GALLERY INTERGRATION Well, I have tried to get this working and the gallery is working. I can view it by going to /vbullet/forums/gallery2/main.php However the intergration does not work. It lists the album I creat but does not show any pictures. I have place the gallery2.php @ /vbullet/forums/gallery2.php Any ideas? Luke |
#94
|
|||
|
|||
saldy i dotn know much abotu the plugin... i have recevied a copy from johnmount(and i forgot the 2nd guys username). i have yet to install it on my board. we are having CPU issues, and i dont really want to mess with it now that we are stable.... i will try soon hopefully...
Quote:
here is the path: http://www.canuckclan.com/vbullet/forums/vbullet/forums/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=15&g2 _serialNumber=1 look at the bold part... there are 1 to many of those in that path... edit the path in the gallery2.php file. i think it will be the g2uri, but im not 100% |
#95
|
|||
|
|||
Thanks, you nailed it. The gallery is now showing images. I guess I will have to mess around with the templates abit. Thanks a lot!
Luke Canuck Clan |
#96
|
|||
|
|||
now every post is posting in triplicate and I can't get rid of that message. any clues what I should do to fix it?
|
#97
|
|||
|
|||
Quote:
thats an odd one... you HAVE disabled the gallery plugin? if so try removing it. i dont know why it would be doing that... did you throw any other plugins or customizations in other than the gallery one? Quote:
glad i could help man do me a favor and check back every off and on to see if you can offer a hand im only here so often |
#98
|
|||
|
|||
OMG! LOL now that is something I forgot! thank you, I was freaking out trying to figure out to fix it. I plan to do a test board after I get my site done and when I do I"m going to have another go at this. I really like this gallery and wished it worked for me but for now I just want to get a gallery going. thanks alot for your help silvert I appreciate it.
|
#99
|
|||
|
|||
Quote:
sending me a PM here, there is no promise that i willg et back to you in a quick amoutn of time. it goes to my "spam" e-mail adress |
#100
|
|||
|
|||
you do realize there's nothing "manly" about me don't you? LOL
I'll look for you over at racersden if I need you. thanks again. |
#101
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|