i was asked to post a copy of my .htaccess file.
for reference, my setup is: www.domain.com/forums.php www.domain.com/gallery2/ this file is located both in my web root directory and in my gallery2/ directory (perhaps redundantly in the 2nd location for that matter!) Code:
# BEGIN Url Rewrite section |
Hey Whodah! Refresh my memory - it's been a while but enabling re-write in VB screws up the VB links right? Was the solution to hardcode them all?
|
ya :( at least in 3.0.x...
i had to hardcode my navbar links, logo, and i think some footer links... |
1 Attachment(s)
Workx great on my VB3.5 site.
http://www.glcoti.com/gallery2.php ONly things that still bug me are the way the gallery is "shown" in the "who is online" page. And that you dont get a nice "gallery" button in your postbit. If anyone knows how to get that in, let me know!!! |
Can this be made into a Plugin? :)
|
Hey guys, I understand that with the salt stuff going on, a VB registered user won't be able to login directly to the gallery. That's cool with me, in fact I'd prefer that.
However, before I go through all the work of setting this up (and buying another license for this new site), I have a question. I already have over 100 registered users and I just launched my G2 site last week (woohoo!). I really, really don't want to have to ask them to all re-register in vB, then upload their content again. Is there ANY way at all to migrate users from G2, into vB, then require that logins come thru vB? I'll jump through any hoops I have to if I can keep my users from having to jump through hoops. :) Thanks in advance, and here's to hopin! -Sean |
Anyone? Bueller? You guys still on holiday vacations? hehe... :) Should I ask this question in another forum as well?
|
I have this working with VB 3.5.2 and the latest stable release of Gallery. The one thing I've noticed is the performance hit when I enable the re-write module. With it enabled, I get a not-so-smooth transitions between gallery pages - meaning a white page flashes up between them while in none re-write mode, I don't and it looks way smoother.
I also get errors reported by the browser when running the re-write module, I don't if I disable it. The errors are shown below. Anyone else experiencing this? http://www.lfsresource.com/stuff/errors.jpg |
One problem I have with this integration is the following:
When the user is inside a photo folder and clicks on login, they will get the login relative to their position and then get an error. What would I have to hardcode to get them directed to the proper vbulletin login? I also have a few footer links like admin which are needing to be hardcoded as well.. What template do I edit for them? Thanks!! Sean |
Quote:
|
Quote:
Quote:
edited the first post w/ a bit more info at the very end for new readers! if you guys think anything else should be up in there, lmk! i do plan on migrating to 3.5.x soon... it was gonna be the 1st of this year but didn't happen, heh! if nobody has converted this to a plugin by then, i'll probably look into it. |
Quote:
whish i could wait for that :( my unknowledgeable ass is going to attempt this gallery integration soon(probobly this week). going to take a while as this is only my 2nd or 3rd attempt at anythign related to VBB other than the stuff built in(databases scare me ;)) but, wanted to thank you guys ahead of time for all the work youv done so far :) hopefully it will make my have less work to do :) |
Quote:
The only issues I have are with the mod_rewrite functionality as it slows the Gallery down considerably and has a few strange behaviour tendancies that I am fighting to overcome. But the mod_rewrite is just fluff really, the rest is pretty simple and straightforward. |
The integration of the Menalto´s G2 includes the style or theme?
If the answers is not, how could i make it? Thanks. |
Could this work across hosts?
I have my main vB site on one host and my Gallery running on another. Would it work with the right changes to the paths? |
well.. i haev made it this far ;)
i have gallery installed(damn nice installer IMO :)). i can log into gallery in "stand alone" mode. but when i goto the gallery.php file i get an error: "Fatal error: Call to undefined function: iserror() in <location of files>/httpdocs/forum/gallery.php on line 74" i just cant grasp where iserror() shoudl have been defined or anything... anybody got anythign on this? my gallery is located at racersden.net/gallery, and the forum is at racersden.net/forum... the php file is in the forum directory... |
just thought about this... is it REQUIRED to have the gallery in a sub folder of the forum directory?
and also, the index file in the gallery directory, could i just have that file have a meta refresh to the VBB embed page or is that index file required? |
Quote:
Code:
<?php |
All this stuff is way too techie for me. I have one of my admins who does all the really techie stuff for me on my forum. But unfortunately we haven't been able to find a way for him to get access to this site.
We're running 3.5.3 and have been looking into setting up the Menalto Gallery on our forum The Moot and all these code posts have my head spinning. Have any of the posts in this thread been found to work with 3.5.3? If so, could someone post a link to the relevant post so I can pass on the details to my admin friend? Thanks folks. :) Mike |
I only seem to get that error when the vBulletin admin views the gallery2 pages. Can anyone suggest a workaround so that the vBulletin admin can also view the gallery2 pages and not have to login via the 'backend'?
Any help would be much appreciated! Quote:
|
ok guys, iv done so much mucking around i truly have no idea what i really did, lol. i think that i finally found where to put the correct file path, lol. ugh, well, now i just need to verify that it is working 100%, but at this point the integration LOOKs to have worked :)
here is the integration file for my site: Code:
<?php Quote:
me being no coder, you would have to somehow interpret the code through a program(or more php code possibly) that would pull out the offending code at the front and back of the PW, before the encryption(if any) of the password :) and hell, while im post whoring up this thread ;) how hard would it be to limit who can upload by a group in VBB... i know the group numbers that i would like to allow to upload, but i dont have the coding knowledge to limit so only they can upload but everybody else can view. also, would it be possible to automatically add them to the "registered" or whatever group in Gallery. or are these steps that i will have to do? |
Quote:
And.... I have a site set up that views the photos from outside the 'http://www.mysite.com/photos/' directory. So the 'backend' I refer to is the gallery2 admin cp access from within the 'http://www.mysite.com/photos/' directory. It helps keep other forum users out of that area because they *probably* won't think to look there. And I found I was using too many folders, so this helped reduce the number of sub-directories on the site. |
Quote:
user created > verify membership of group XX if yes, add to full access group if no(or else) add to everyone group(not allowed to upload photos) or that is how i see it working ;) i dont understand what you are refering to in your 2nd paragraph :) (could be the night of drinking last night catching up ;)) |
I was wondering how far along you are in implementing G2 into vb 3.5.X
I'm really interested in having it installed aswell! |
Quote:
lookin forward to G2 being intergrated into vb3 :banana: |
Burley, defcon_420, look at post 101...
that code works on MY VB 3.5.2 install. i am working on getting the code to add a user to a group right now.. i just cant get it to work yet. im stealing the code from AdminGroupEdit.inc. its in there, but i cant get it to work yet in teh gallery integration script. if anybody has some insight or anything to help me along i would be gratefull. the guys who made this thread and supported it for the 1st few pages are still not on VB 3.5 i belive. i sent them both PM's a month or so ago and there are only a few people on VB 3.5.x and have it working. but as i said, post 101 has the code to get the users created. i have tested it with 2 of my moderators right now, but i do not want to make it public UNTIL i get the automated group adidtions... i just dont have that code working yet :) i check this thread every other day or so, if you need some help il do what i can for ya(not much sadly) :) |
Quote:
|
So it looks like you have done it! CoOl!
I would like to help you out, but have no idea where to start! I'm a complete noob when it comes to coding, but I need it so I'm gonna try. I think I'll start integrating G2 in a day or 2, I'll keep you posted! |
Quote:
i could really use the help with aut adding to a group. i think this is the right code: Code:
GalleryEmbed::addUserToGroup( ) I cant seem to get any auto adding to work with it. i either get a error(which dosent help at all) or the page displays fine, then i haev no user created(it does work without this code) and definetly not in the group.... |
I got the integration working (somewhat) OK with 3.5.4 and gallery 2.0.4. But I took the plunge and installed 2.1RC and got the following error message from php:
Fatal error: Call to undefined function: iserror() in ~/forums/gallery.php on line 77 Where is the function isError() and is it gone from 2.1 as opposed to 2.0.4? I did a multi file text search and can't find a function isError() in any of the files. Any suggestions would be appreciated. (i've also posted over at the gallery2 website) |
Quote:
took me a month or so to figure this out finally. |
nevermind... jsut saw your post and ?Variable? fixed the issue. man, whish i did that a month or so ago ;)
now, sombody get that stupid auto group adition to work! ;) |
So you have upgraded and are running 2.1? It's working without any issues?
I am going to give it a try. Definitely backing up the codebase, database and config file in case I need to revert to the old version. I'll let you know how it goes! Sean |
Anyone have Gallery 2.1 working with 3.5.4?
Here is my config file with a couple changes as outlined in the integration notes on the Gallery site: PHP Code:
Fatal error: Call to undefined function: iserror() in /home/paranorm/public_html/gallery2.php on line 74 Not sure what to do.... |
Quote:
|
With some help from a member over on Menalto's site, I've got Gallery 2.1 and vBulletin 3.5.4 working together.
The only problem I've come across is when the user first accesses the gallery (causing the gallery to create the new user) I get this error: Code:
Fatal error: Call to a member function on a non-object in /home/paranorm/public_html/gallery2.php on line 96 Here is my gallery2.php file, updated to work with Gallery 2.1 and vBulletin 3.5.4. PHP Code:
|
if you go into notepad, and hit ctrl-G then tell it to goto line 96.. what is on that line...
|
PHP Code:
|
Quote:
i alreayd have a user created(my username) from previous attempts and since i dotn haev to create that account again, the integration script runs fine... so the script is working other than that part. the isError() part is what i have been having issues with from day ?1?... there is a post that ?joshmount? made over on teh G2 integration section, he did nto respond to me asking for more info as of yesterday afternoon. i wish i could find where this problem was comming from... such a PITA.. and since VBB is closed source, Valiant or anybody over on the G2 forums wont help too much, but they will help with the G2 related issues :) helpfull normaly to :) alright, i MIGHT have fixed the isError() BS... try going into your gallery admin panel. goto the mod rewrite/URL rewrite.. scroll to the bottom and uncheck the "Show Item", and "Download Item". after you hit save you will probobly get somethign saying that your integration file does not exist... that is fine... if you hit back and refresh teh page the settings will have taken(mod rewrite does nto work yet). then attempt to display the page again. after you login make your user an admin, then i got another browser(i use firefix as my default, so IE is my test browser) and login as a bogus user... that is the best way to test IMO :) let me knwo how it goes :) |
Figured it out guys. The error caused by: if ($ret->isError()) is caused -- among other things -- that if things go correctly when doing the embed, nothing is returned by the $ret= statements. So what you need to do is:
Change: Code:
$retcreate = GalleryEmbed :: createUser($uid, $args); Code:
$retcreate = GalleryEmbed :: createUser($uid, $args); First, I believe that $retcreate->isSuccess() is no longer used. In the new paradigm of this version, if you do something and its successful, you get nothing returned back to $ret. Only when there is an error, then you get something back in $ret. So my replacement says, "if you get something back"...which is essentially what the previous statment said: "if what you get back is not successful" Change: Code:
$ret = GalleryEmbed::checkActiveUser($uid); Code:
$ret = GalleryEmbed::checkActiveUser($uid); |
All times are GMT. The time now is 10:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|