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! |
#252
|
|||
|
|||
![]()
For those that are getting the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING It has been said before on page 4, but what you need to do is fix an error in the upload plugin. Go to plugin manager > Update Gallery User and edit the following line: Code:
require_once('/home/website/root/forum/gallery2/embed.php''); Code:
require_once('/home/website/root/forum/gallery2/embed.php'); |
#253
|
|||
|
|||
![]()
I'm having the problem like oldgoat above. I have installed G2 into my vbulleting forums directory. All seems to work, but there are no buttons in the navbar. If you manually browse to the gallery2.php page it's there. I thought maybe it was my skin, but looking at the "more" stock skin, I still dont' see anything in the navbar. I don't even know what to type to get someone started in helping me, sorry. But any help would be much appriciated!
Andrew also, we're randomly getting the error: unexpected T_CONSTANT_ENCAPSED_STRING If I remove the double quote as stated above, we cannot post or send PMs at all. We get: Warning: Unknown(/forums/gallery2/embed.php): failed to open stream: No such file or directory in /includes/class_dm_user.php(1657) : eval()'d code on line 1 Fatal error: (null)() [function.require]: Failed opening required '/forums/gallery2/embed.php' (include_path='.:/usr/local/lib/php') in /homepages/42/d98622539/htdocs/terraforums/forums/includes/class_dm_user.php(1657) : eval()'d code on line 1 Thanks very much ![]() |
#254
|
||||
|
||||
![]()
wouldnt it be good to release a new version of the integration working for 3.6.8 to cut all those discussion short and makes it easier for people to find the right answer.
im still confused if i just download this integration and leave it as it is, or if i have to edit it after? |
#255
|
|||
|
|||
![]()
or better release a mod/plugin for this
![]() |
#256
|
|||
|
|||
![]()
When I run this mod, I receive the message:
Code:
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/public_html/forum/gallery2/embed.php) is not within the allowed path(s): (/home/outrack/:/usr/lib/php:/usr/local/lib/php:/tmp) in /gallery2.php on line 55 Is there anyway to get past this without having to contact my host to remove the open_basedir restriction? |
#257
|
|||
|
|||
![]()
i got it working to a point that it's showing the header, albums, footer, etc. but it's not taking into account the css. so the albums are all over.
where is a good place to declare the css? tia! |
#258
|
|||
|
|||
![]()
So, I decided to take a fat chance and try installing Gallery 2.2 (Latest) with vBulletin 3.6.8, and lo and behold it worked. Well, almost.
![]() Here's what I did: I created the gallery2 directory within the forum home, as indicated. But then I struck a small problem. The "Your album" as well as clicking on an image, would take me to /v/<name>. ![]() So, I then proceeded to move gallery2.php to /gallery2/gallery2.php, (didn't need to change the embed.php line or anything) and nothing came up. I then linked the file back to gallery2.php and it worked. ![]() I did try and add the .xml files for the two addons, and also hit a serious snag.:erm: Trying to add it as a product said this looks like a Plugin... Ok, so now to add a plugin. And I had to do a quick crash course. So here goes for those that don't want to do too mouch soul or web searching: In the add new plugin part:
I am still trying to figure out, how to not pass the gallery out of the vBulletin forums, when you click on "My Gallery" and any images. This however is not a major issue right now, as I will change the skin to allow you to go back to either the home page or the forum anyway. Thankyou for all the work Brent. Well done. Now I need to figure out how to do a group control from vBulletin to gallery, whereby only members of a specific forum group can add images to the gallery. |
#259
|
|||
|
|||
![]()
VBB - 3.6.8
vBadvanced CMPS - v3.0 RC2 Gallery - 2 http://www.soft.com.sg http://www.soft.com.sg/forum http://www.soft.com.sg/gallery http://www.soft.com.sg/forum/gallery.php Hi guys I have set up as above but somehow I could not get the integration working. The forum(with CMPS) and gallery are working fine on their own. Please help me out here. Thanks. James <?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'gallery'); // change this depending on your filename // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array( ); // get special data templates from the datastore $specialtemplates = array( ); // pre-cache templates used by all actions $globaltemplates = array( 'gallery', ); // pre-cache templates used by specific actions $actiontemplates = array( ); require_once('./global.php'); $navbits = array(); $navbits[$parent] = 'Gallery'; error_reporting(E_ALL ); $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); $data = runGallery(); $data['title'] = (isset($data['title']) && !empty($data['title'])) ? $data['title'] : 'Gallery'; function runGallery() { global $vbulletin, $userinfo; require_once('/hsphere/local/home/jameswoo/soft.com.sg/gallery/embed.php'); $data = array(); // If it's an anonymous user, set the g2 activeUser to null $uid = $vbulletin->userinfo['userid'] = 0 ? '' : $vbulletin->userinfo['userid']; $ret = GalleryEmbed::init(array('embedUri' => '/forum/gallery.php', 'g2Uri' => 'http://www.soft.com.sg/gallery/', 'loginRedirect' => 'index.php', 'activeUserId' => $uid)); |
#260
|
|||
|
|||
![]()
@softsingapore, try using the html code (step 2) from this thread :
https://vborg.vbsupport.ru/showthrea...ry+integration i had the same problem like you where it showed a blank page. below are my declarations. compare it to yours and see if it will help. Quote:
|
#261
|
|||
|
|||
![]()
anyone figure out how to include group sync?
|
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|