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! |
#82
|
|||
|
|||
try this....
on line 77 change the following from PHP Code:
PHP Code:
|
#83
|
|||
|
|||
nope no change. it's just driving me nuts now.
|
#84
|
|||
|
|||
ooooooo
you deleted the user that you are attempting to run the script with correct? 2 things you can do.... either go into the ?externalid? table in the gallery DB and remove the users VBB ID number(admin is 1, you would be 2, that kinda stuff), or create a ANOTHER NEW user and then run the script with him again. basically gallery does not ?ever? delete the external ID's of users. so you have to manualy manipulate the table to get them working agin. i am, about 70% sure that this is the problem... not 100% sadly |
#85
|
|||
|
|||
thanks it work great!thanks U so much !
|
#86
|
|||
|
|||
Hmm after installing this it all seems to work fine (with the exception of the error when I log in myself.. I get that user collision error)
However, at random intervals, users are experiencing errors saying 'this post is identical to a post you have made in the past 5 minutes.. returning you to that thread now' .. and alot of posts seem to be going through twice. edit: It only happens with the plugins installed |
#87
|
|||
|
|||
Quote:
I went into phpmyadmin and looked at my gallery db and in the externalid table I have 0 users and when I look at the users table I have 2 users. guest with is id 5 and silkie with id 19. shouldn't my id as admin be id 1? |
#88
|
|||
|
|||
Quote:
Quote:
here is my script: PHP Code:
gallery is in racersden.net/gallery template name is gallery integration name is gallery.php see if this helps you at all For users using the ingegration script, i have put in the code to allow you to get vbb groups's to create accounts, all others will just be looking on as guests... the code needs to be put in after this code: PHP Code:
PHP Code:
you will also need to put a "}" below the 2nd else statement, so it shoudl look like this: PHP Code:
a bit confusing to explain, but its a pretty simple edit to the script |
#89
|
|||
|
|||
i have the german version of the gallery and the board
there are troubles with de äöü because of the UTF-8 how can i solve that? |
#90
|
|||
|
|||
Quote:
silvert my forums is in vampirecommunity.com/forums gallery is vampirecommunity.com/gallery2 template name is gallery2 integrations name is gallery2.php that's why I can't figure out why it won't work. here's the snippets in gallery2.php where I have to set the paths and as far as I know it's the only places I"m supposed to edit anything. Code:
// Full path to vBulletin define('CWD', '/home/vampirec/public_html/forums'); // Call global.php require_once(CWD . '/global.php'); Code:
function runGallery() { global $vbulletin, $userinfo; require_once('/home/vampirec/public_html/gallery2/embed.php'); Code:
$ret = GalleryEmbed::init(array('embedUri' => '/gallery2.php', 'g2Uri' => 'http://www.vampirecommunity.com/gallery2/', |
#91
|
|||
|
|||
I give up. I totally removed menalto's gallery and now I can't delete posts, add to reputation or anything because I'm getting this error
Warning: Unknown(/home/vampirec/public_html/gallery2/embed.php): failed to open stream: No such file or directory in /includes/class_dm_user.php(1571) : eval()'d code on line 1 Fatal error: (null)(): Failed opening required '/home/vampirec/public_html/gallery2/embed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vampirec/public_html/forums/includes/class_dm_user.php(1571) : eval()'d code on line 1 any idea's why or what I should do about it? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|