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! |
#192
|
|||
|
|||
Quote:
not what i meant... i just went into /gallery/modules/core/admineditgroupuser.inc and found the code THEY USE. i have not attempted to make this work.... I think this is the right code "$ret = GalleryCoreApi::addUserToGroup($user->getId(), $groupId);". but there is a check right above this code in that file to make sure the users is not already in that group. i am no coding guru so i wont be able to make thiw work without alot of time invested. i have the knowledge of how it shoudl be done, but i dont know how to impliment somethign like this. sorry guys.. but you can easily look into what each page does if you look in the folder where this file reside. maybe it will help you out. if anybody does figure it out, plese post up the code. i would love to us it. right now my code is working, but it is the wrong way IMO... so, Codeman05, i can give you the code that i have to create users and not create users, but i do not have anythign inplace RIGHT NOW that would allow for what you want... sorry. wish i did. Quote:
you have to go into the gallery DB and manipulate the ExtID's table to point user #1 in gallery to #1 in VBB... i have said this a bunch of times... PLEASE SEACH PEOPLE. |
#193
|
|||
|
|||
is there a demo of this?
arn |
#194
|
|||
|
|||
Quote:
Http://www.racersden.net/forum/gallery.php |
#195
|
|||
|
|||
I've done everything as stated, changed the necessary items, but now I get this error when viewing my gallery.php (what i named it)
Quote:
|
#196
|
|||
|
|||
Quote:
Ok is working at the moment, but unfortunately is not showing up some of the images that it should show up, like the blackjack image, etc.. http://www.veguild.org/forums/gallery2.php |
#197
|
|||
|
|||
Alright, I have a question dealing with this, so lets see if I can make sense.
I decided to make the gallery stand alone because of problems with embedding, and I wanted to use the url rewrite. Anyway, what I need to figure out is how to still have the gallery recognize when a user is logged in, so they don't have to register in the gallery as well, like how the embedded gallery worked, where if they were logged into the forum, they were logged into the gallery... any ideas on how to do this? btw I am using vb 3.6.3 |
#198
|
|||
|
|||
Howdy
Just installed this yesterday and must have spent a hour reading over this thread. My issue has been mentioned before but im unclear as how to fix it. Basically everything works, when users view the gallery it automatically makes them a account however they are just a guest and cannot add pictures etc. I manually changed my account to admin so it works for me,. Is it the forum structure? I have my forum installed into the main directory and not under /forum. mine is as follows /gallery2 /forum here in root /gallery.php any help would be appreciated. |
#199
|
|||
|
|||
Quote:
Now you can integrate with other packages without clashing I'm not sure why this best practice is not in the manual but it should be as your first post install step. |
#200
|
|||
|
|||
No one has any help for me?
|
#201
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
never i refuse!!@! work has been so busy that i get home and dont feel like looking online AT ALL... my computer is off most of the time anyway nowadays |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|