vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Gallery 2.1 and vBulletin 3.5.X integration (https://vborg.vbsupport.ru/showthread.php?t=111931)

Akagi 08-29-2006 10:58 AM

thanks SilVert!!! it's finally working fine now!

One question, i installed the plugin on the first page..apparently, it deletes gallery users and update the vb users to gallery..why is it that it doesn't really mirror the vb users in gallery? still see the same default gallery users on my gallery site admin

Svobi 08-29-2006 11:26 AM

Hiyas!
I got a gallery2 with about 180 Users and I'm interested in using them together with or within vBull. How do these scripts / hacks work exactely? Is this possible what I want?

Cheers! :D

SilVert 08-30-2006 07:23 PM

Quote:

Originally Posted by Akagi
thanks SilVert!!! it's finally working fine now!

One question, i installed the plugin on the first page..apparently, it deletes gallery users and update the vb users to gallery..why is it that it doesn't really mirror the vb users in gallery? still see the same default gallery users on my gallery site admin

glad i could help. i know i focused a TON of time into getting the script to work when i had that error :)

can you be a bitmore specific with your question? they are two seperate Databases, they both track users differently. if you look at the database table ?externalid's? it mapps the VBB userid to the gallery userid. that table is there for the sole purpose of integration.

is that the anwser you were looking for?

Quote:

Originally Posted by Svobi
Hiyas!
I got a gallery2 with about 180 Users and I'm interested in using them together with or within vBull. How do these scripts / hacks work exactely? Is this possible what I want?

Cheers! :D

so you already have Gallery installed and VBB installed but as 2 seperate entities all together correct?

without creating a SQL script, manualy manipulating the table in gallery, or getting the plugin to work, i dont really see an easyer way to do it.

as far as i know there is no automated script out there already to do what you are looking for. now i can help you with what i know about the gallery and vbb ID's to track ID's and groups :)

Svobi 08-30-2006 08:59 PM

Quote:

Originally Posted by SilVert
so you already have Gallery installed and VBB installed but as 2 seperate entities all together correct?

without creating a SQL script, manualy manipulating the table in gallery, or getting the plugin to work, i dont really see an easyer way to do it.

as far as i know there is no automated script out there already to do what you are looking for. now i can help you with what i know about the gallery and vbb ID's to track ID's and groups :)

Hiyas!

No, atm I only got a gallery2 installed but I'm looking for a board solution to add! I already know vBull so of course this is my first idea if it'd work to bring the gallery users into vBull - syncing or whatever. If this works flawless I'd prefer it more then seeking fore phpBB solution.... :D

Jon. 09-06-2006 05:05 PM

Having problems :(

I'm running 3.6, and when i visit the gallery2.php logged in as me (member #1) it gives me the error that m0nde gets. When i log out completely, or log in as someone else, i just get a blank screen with no source code. Any ideas?

EDIT

I wasn't using the skin that i'd put the template in :blush:

Now, though, there's this php error at the top:
Code:

line: 98, Failed to create G2 user with extId [1]. Here is the error message from G2:
Error (ERROR_COLLISION)

    * in modules/core/classes/GalleryUser.class at line 154 (gallerycoreapi::error)
    * in modules/core/classes/GalleryEmbed.class at line 360 (galleryuser::create)
    * in /home/jonf/public_html/forum/gallery2.php at line 95 (galleryembed::createuser)
    * in /home/jonf/public_html/forum/gallery2.php at line 50

and my forum below with nothing under the "Gallery" header.

Screenies:
http://img347.imageshack.us/my.php?i...6191204wz8.jpg
http://img347.imageshack.us/my.php?i...6191231xz2.jpg

EDIT2
Only happens when logged in as me. Everyone else gets a working page, but no images in the gallery section...
http://img347.imageshack.us/my.php?i...6191554uh5.jpg

EDIT3

Ok, plan B. Could somebody alter the gallery2.php file so that it just creates the user accounts for the gallery? I can then add a redirect or link to the main gallery. I understand this isn't really the place to ask, but i wondered if anyone else had done the same.

Akagi 09-07-2006 08:53 AM

Quote:

Originally Posted by SilVert
glad i could help. i know i focused a TON of time into getting the script to work when i had that error :)

can you be a bitmore specific with your question? they are two seperate Databases, they both track users differently. if you look at the database table ?externalid's? it mapps the VBB userid to the gallery userid. that table is there for the sole purpose of integration.

is that the anwser you were looking for?

actually, the problem that i'm having is that the VBB users ain't mapped on my gallery user database. VBB has 6k users and gallery has only 2. Any idea?

Jon. 09-09-2006 07:10 PM

Are you getting your users to visit the gallery2.php file? To my knowledge, it won't auto-create them until you visit that page.

SilVert 09-13-2006 09:04 PM

Quote:

Originally Posted by Jon.
Having problems :(

I'm running 3.6, and when i visit the gallery2.php logged in as me (member #1) it gives me the error that m0nde gets. When i log out completely, or log in as someone else, i just get a blank screen with no source code. Any ideas?

EDIT

I wasn't using the skin that i'd put the template in :blush:

Now, though, there's this php error at the top:
Code:

line: 98, Failed to create G2 user with extId [1]. Here is the error message from G2:
Error (ERROR_COLLISION)

    * in modules/core/classes/GalleryUser.class at line 154 (gallerycoreapi::error)
    * in modules/core/classes/GalleryEmbed.class at line 360 (galleryuser::create)
    * in /home/jonf/public_html/forum/gallery2.php at line 95 (galleryembed::createuser)
    * in /home/jonf/public_html/forum/gallery2.php at line 50

and my forum below with nothing under the "Gallery" header.

Screenies:
http://img347.imageshack.us/my.php?i...6191204wz8.jpg
http://img347.imageshack.us/my.php?i...6191231xz2.jpg

EDIT2
Only happens when logged in as me. Everyone else gets a working page, but no images in the gallery section...
http://img347.imageshack.us/my.php?i...6191554uh5.jpg

EDIT3

Ok, plan B. Could somebody alter the gallery2.php file so that it just creates the user accounts for the gallery? I can then add a redirect or link to the main gallery. I understand this isn't really the place to ask, but i wondered if anyone else had done the same.

the problem is that you are using ID #1 in VBB, in gallery #1 is already assigned so you are getting a collision of sorts.... i know i have mentioned how to fix this previously so i dotn truthfully remember EXACTLY how to resolve this. but here is somewhat what i remember:

there is a table in the gallery 2 database called ?extIDs?(external ID's). this table houses the VBB user ID and then maps it to the Gallery 2 user ID. so if you find the gallery users ID 1, map it to VBB's userID 1. i THINK that will do it. if not it is something along those lines.

Quote:

Originally Posted by Jon.
Are you getting your users to visit the gallery2.php file? To my knowledge, it won't auto-create them until you visit that page.

Quote:

Originally Posted by Akagi
actually, the problem that i'm having is that the VBB users ain't mapped on my gallery user database. VBB has 6k users and gallery has only 2. Any idea?

he speaks the troof! ;)

the integration script HAS TO BE VISITED for VBB/Gallery to integrate. how it works is basically as 2 totaly seperate islands with a small bridge. so when you cross the brodge you get an account. if you do not cross the bridge, you dont get an account.

hows that for a beach like explination ;)

Codeman05 09-17-2006 12:57 PM

Hi SilVert,

Quick question that maybe you can help me with. I have a few different usergroups on my board and I would like to have different quotas for them in the gallery 2 integration.

I've already setup corresponding usergroups in Gallery 2 with the same usergroup names and IDs as those on the forum.

Should the Update/Integration script be reading my members usergroup ID off of the forum and setting that same ID into Gallery (because it is not).....or do I need to modify the script?

Everything else is working great however

Edit
One other issue I have noticed is that users trying to use Gallery remote are unable to authenticate. Not a huge deal, I just wanted to make sure this was "normal"

SilVert 09-18-2006 02:00 PM

Quote:

Originally Posted by Codeman05
Hi SilVert,

Quick question that maybe you can help me with. I have a few different usergroups on my board and I would like to have different quotas for them in the gallery 2 integration.

I've already setup corresponding usergroups in Gallery 2 with the same usergroup names and IDs as those on the forum.

Should the Update/Integration script be reading my members usergroup ID off of the forum and setting that same ID into Gallery (because it is not).....or do I need to modify the script?

Everything else is working great however


Edit
One other issue I have noticed is that users trying to use Gallery remote are unable to authenticate. Not a huge deal, I just wanted to make sure this was "normal"


i was experimenting with the group memberships a while ago, and never made much headway. it was mostly due to not haveing the script work originaly. but i think it is possible.... basically you would haev the create user part go through, then insert some code saying if in this VBB group ID put them in the Gallery group.

it is doable, but i dont haev the code infront of me :)

Gallery remote, i belive that problem has to do with pointing to the wrogn location. if your deisgn is:
root\gallery
root\forum
root\forum\gallery.php

you would have to point the Remote to root/gallery to get it to work... i dont think the remote understands embed'd sites.....

Codeman05 09-18-2006 09:08 PM

Thanks, I'll play with the script a bit and see what I can come up with.

As far as the remote goes, the "imbedded java upload client" isn't working as well. I'll double check the paths but I think they were correct.

Thanks for the help!

Akagi 09-19-2006 10:37 AM

Quote:

Originally Posted by SilVert
he speaks the troof! ;)

the integration script HAS TO BE VISITED for VBB/Gallery to integrate. how it works is basically as 2 totaly seperate islands with a small bridge. so when you cross the brodge you get an account. if you do not cross the bridge, you dont get an account.

hows that for a beach like explination ;)

thanks for the clarification guys!
it's working great now cheers!

GrandAmGuru 09-21-2006 07:50 PM

I posted this up over on the menalto forums too in hopes of a resolution for a funky problem.

I'm integrating Gallery2 into my vBulletin script (which is essentially done). The problem I have is the folder navigation within the Gallery. Say I have a folder called Jeremy under the main Gallery. If I'm in the Jeremy folder and want to navigate back to Gallery (by clicking the breadcrumb link under the Gallery logo) it does a random google search on 'forum'. The same holds true for any nested folders. If you try to go up the breadcrumb trail it's doing that random search.

Codeman05 09-23-2006 02:13 AM

Quote:

Originally Posted by Codeman05
Thanks, I'll play with the script a bit and see what I can come up with.

As far as the remote goes, the "imbedded java upload client" isn't working as well. I'll double check the paths but I think they were correct.

Thanks for the help!

Still no luck, this is what I'm getting with the java upload...
"Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 22'."

Any suggestions?

GrandAmGuru 09-25-2006 02:33 PM

1 Attachment(s)
Ok, disregard my previous post. I have the gallery working fully outside the forum. When I view it from an embedded view, something is up with the style. I don't have all the navigation links like I do when I view outside the forum.

Check the screen caps below.

I known when I was monkeying around with it before it did this same thing, and I ended up completely removing and reinstalling. Could it possibly be a corrupted style or something?

fishhub 09-28-2006 06:34 AM

My installation completed and things work fine, except the link below user within VB once click on error comes out:->

You don't have permission to access /forum/gallery2/g2data/albums/xxxxx/ on this server.

Can any kind soul help? Thanks.

xitrum 10-03-2006 04:54 PM

1 Attachment(s)
Hi all,

I follow instructions to install gallery2 on the same root folder as my forum and everything seems to work ok. I was able to upload and view images as standalone version:

http://<mydomain>/forum/gallery2/main.php

but when I switch to the embeded version:

http://<mydomain>/forum/gallery2.php

I don't see any thumbnails in my gallery? Any idea. TIA for you help.

-xitrum

PS. Gallery 2.1, VBB 3.6

Chet T16 10-04-2006 06:39 PM

Can anyone tell me what to remove from the gallery code posted so that it is a purely visual integration?

xitrum 10-04-2006 10:11 PM

OK. I tried again with a new installation on my local machine and everything seems to work (now even thumbnails displayed when i access gallery2.php) ...except when I add a new item to the album.

After uploaded a new photo, the browser refresh with this URL:

http://<mydomain>/gallery2.php?g2_view=core.ItemAdmin&g2_subView=cor e.ItemAddConfirmation&g2_itemI d=7&g2_statusId=x5a383bbd&g2_navId=x58f76c22

It should have been:

http://<mydomain>/forum/gallery2.php?g2_view=core.ItemAdmin&g2_subView=cor e.ItemAddConfirmation&g2_itemI d=7&g2_statusId=x5a383bbd&g2_navId=x58f76c22

So the script actually pickup only the basename of the domain name. If I insert /forum to the URL and refresh then it works!

Can someone please help showing me how to fix this problem? TIA.

-xitrum
================================================== =================
I think I found the problem now. It was with these 2 lines in gallery2.php file

$ret = GalleryEmbed::init(array('embedUri' => '/forum/gallery2.php',
'g2Uri' => 'http://<full domain name>/forum/gallery2/',

The first line must have full path from the root of httpd. The second line should have the full domain name.

Everything works now. Thanks. Great mod.

xitrum
================================================== ============================
Man... I am having a headache with this and almost giving up now.. Wonder if anyone with the same problem or anyone can help out with this.

My standalone gallery2 works fine with:

http://<mydomainurl>/forum/gallery2/main.php

but when I tried the embeded version, I lost the theme and only the text display so it take up a lot of screen real estate:

http://<mydomainurl>/forum/gallery2.php

I have gallery2 installed as:

$htdocs/forum/gallery2

On my local test machine, the embeded version display correct theme. Only the production env it doesn't display correctly. Don't know what the differences are. There must be a very simple explanation to this! PLEASE HELP. TIA

xitrum

xitrum 10-05-2006 04:35 PM

1 Attachment(s)
================================================== ==
I found out that the path to images directory is not correct when using the
embeded gallery link. Images link shown:

http://<domainurl>/forum/images/galleryLogo_sm.gif

instead of:

http://<domainurl>/forum/gallery2/images/galleryLogo_sm.gif

where:

Forum installed at: http://<domainurl>/forum

Gallery2 installed at: http://<domainurl>/forum/gallery2

Can someone please shed some light on this issue? TIA.

-xitrum

brvheart 10-10-2006 06:23 PM

I am having the issue of having created a user with the userid of 1 bumping with the one that VB has for me as an admin.

I am not clear on how to fix this even though I have been reading this thread all day :(

Could someone please give me a hand?

SilVert 10-17-2006 05:16 PM

wow, i go away for a month and i haev 500 questions ;)

Quote:

Originally Posted by Codeman05
Still no luck, this is what I'm getting with the java upload...
"Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 22'."

Any suggestions?

can you post the code that you have inserted into the integration script? i will haev to look around in the code again to see if i can find the right code to pull..

Quote:

Originally Posted by GrandAmGuru
Ok, disregard my previous post. I have the gallery working fully outside the forum. When I view it from an embedded view, something is up with the style. I don't have all the navigation links like I do when I view outside the forum.

Check the screen caps below.


I known when I was monkeying around with it before it did this same thing, and I ended up completely removing and reinstalling. Could it possibly be a corrupted style or something?

the issue is realted to the URL REWRITE!!!! the rewrite does not play well with "embed mode". somebody said in this thread they had it working, but i haev yet to have it all working... remove all of the check boxes and add them in 1 by one... i only have 2 or 3 things workin with the rewrite....

Quote:

Originally Posted by fishhub
My installation completed and things work fine, except the link below user within VB once click on error comes out:->

You don't have permission to access /forum/gallery2/g2data/albums/xxxxx/ on this server.

Can any kind soul help? Thanks.

where is your path pointing?

give me this info:
webadress:
forum lacation:
gallery location:
where the integration file is:



Quote:

Originally Posted by xitrum
Hi all,

I follow instructions to install gallery2 on the same root folder as my forum and everything seems to work ok. I was able to upload and view images as standalone version:

http://<mydomain>/forum/gallery2/main.php

but when I switch to the embeded version:

http://<mydomain>/forum/gallery2.php

I don't see any thumbnails in my gallery? Any idea. TIA for you help.

-xitrum

PS. Gallery 2.1, VBB 3.6

im going to blame this one on the URL rewrite again.... try to uncheck everything, validate it all works, then check things one by one till they stop working...

right now, i bet that if you look at where the links point it is saying something like <site name> gallery/v/xxxx/xxxx. the key is that v. that is from the url rewrite. and the embed mode does not understand that very well...


Quote:

Originally Posted by Chet T16
Can anyone tell me what to remove from the gallery code posted so that it is a purely visual integration?

can you give me more detail on what you are looking for?

Quote:

Originally Posted by xitrum
================================================== ==
I found out that the path to images directory is not correct when using the
embeded gallery link. Images link shown:

http://<domainurl>/forum/images/galleryLogo_sm.gif

instead of:

http://<domainurl>/forum/gallery2/images/galleryLogo_sm.gif

where:

Forum installed at: http://<domainurl>/forum

Gallery2 installed at: http://<domainurl>/forum/gallery2

Can someone please shed some light on this issue? TIA.

-xitrum


i really hate to say this again.. but looks like URL rewrite... try disabling all of the rewrite and see if it works fine...

GrandAmGuru 10-17-2006 05:24 PM

Quote:

Originally Posted by SilVert
the issue is realted to the URL REWRITE!!!! the rewrite does not play well with "embed mode". somebody said in this thread they had it working, but i haev yet to have it all working... remove all of the check boxes and add them in 1 by one... i only have 2 or 3 things workin with the rewrite....

I've gone and completely uninstalled the url rewrite module and the thumbnails work. As soon as I enable any portion of it. thumbs are gone. Either way it strips the navigation stuff and replaces it with basic text

Chet T16 10-17-2006 05:32 PM

Quote:

Originally Posted by SilVert

can you give me more detail on what you are looking for?

I'm using the gallery as a database for scans from magazines and newspapers etc so i only need 1 user to be able to upload and be admin, all of the other existing vB members only need access as a guest.

Since posting this question i have managed to get it working the way i wanted, even tho accounts are being created the users can't add or edit to the gallery. Originally i was importing users from phpBB and that was leading to admin conflicts etc

xitrum 10-18-2006 03:41 AM

Thanks Silvert. I got my gallery working ok now. I think it's the path that's not correct. My only problem is that when the user access gallery2.php the first time. The embeded script create a user in the gallery2 database but the password isn't correct. Using the same password, user can't login to the standalone gallery. This is not a big deal since user can access the gallery after login to the forum.
Another note, is there a mod to display the most recent added albums or most view images, etc... I thought I saw it somewhere but couldn't find it. That would be a nice feature especially when you have a lot of nested albums.
Great mod and great work. Thanks a million.

-xitrum

SilVert 10-18-2006 12:18 PM

Quote:

Originally Posted by Chet T16
I'm using the gallery as a database for scans from magazines and newspapers etc so i only need 1 user to be able to upload and be admin, all of the other existing vB members only need access as a guest.

Since posting this question i have managed to get it working the way i wanted, even tho accounts are being created the users can't add or edit to the gallery. Originally i was importing users from phpBB and that was leading to admin conflicts etc

somewhere in this thread i put some code inplace that will only create user accounts if they are in X VBB group... if they are not in the group they will only view as guest :)

Quote:

Originally Posted by xitrum
Thanks Silvert. I got my gallery working ok now. I think it's the path that's not correct. My only problem is that when the user access gallery2.php the first time. The embeded script create a user in the gallery2 database but the password isn't correct. Using the same password, user can't login to the standalone gallery. This is not a big deal since user can access the gallery after login to the forum.
Another note, is there a mod to display the most recent added albums or most view images, etc... I thought I saw it somewhere but couldn't find it. That would be a nice feature especially when you have a lot of nested albums.
Great mod and great work. Thanks a million.

-xitrum

sure thing. sorry it took me so long to get back to you(been SLAMMED at work) if i even helped at all ;)

the standalone password is explained somewhere. when VBB assignes the password it injevts "salt(<password>)" or something like that into the password. so it will work fine embed, but when you goto the standalone version, you would have to enter salt(insertpasswordhere). im 99% sure that is the right "frase" but i cant remember EXACLTY what it is. it has been documented somewhere. it might be in the gallery integration script for versions prior to 3.5(aka 3.0)

thereis somethign inside of gallery called ?imageblock? i think that allows you to view a random image etc. there is also a way to point to a gallery image or gallery via an external site. i have not messed with this at all, but i knwo it exists. now if it wil do the most recent images etc, i do not know. sorry, i dont have all the anwsers :( ;)

syclone13 10-20-2006 04:08 AM

Just to jump in because I didn't see it noted elsewhere in the thread...

I installed everything and it is functioning just fine, images and all work, users are created in the gallery2 database, however the users dont seem to have any rights in gallery2. I can't figure out what group they are a part of in g2 as they dont seem to be listed as members of any of the groups that exist.

I have a barebones g2 install so I'm wondering if its some config options, some modules I didn't install or if I'm missing something.

The users viewing the embeded gallery get logged in as it shows their usernames in the view, but they just dont have access to upload or do anything beyond view the gallery.

xitrum 10-20-2006 03:03 PM

I believe they are in "Registered User" group by default.

Codeman05 10-22-2006 02:21 PM

Quote:

Originally Posted by SilVert
can you post the code that you have inserted into the integration script? i will haev to look around in the code again to see if i can find the right code to pull..

This what you want?

PHP Code:

require_once('/www/site/www/beta/embed.php');
$ret GalleryEmbed::init();

if (
$ret) {
//  echo $ret->getAsHtml();
}


// Set fullname based upon custom fields
$fullname=$this->existing['field13'] ." "$this->existing['field14'];


// Set the array for updating
$args['fullname']     =  $fullname 
$args['username']    = $this->existing['username']; 
$args['hashedpassword'] =   $this->existing['password']; 
$args['hashmethod'] =    'md5'
$args['email']       =   $this->existing['email']; 
$args['language']   =   $this->existing['lang_code']; 
$args['creationtimestamp']   =   $this->existing['joindate'];

//$this->existing['usergroupid'] 

// Get the userid
$uid $vbulletin->userinfo['userid'];

//$this->existing['userid']


$ret GalleryEmbed::isExternalIdMapped($uid,$args);

//Now if no user exists, we'll create one
//If user exists, we'll update existing user

if ($ret && ($ret->getErrorCode() & ERROR_MISSING_OBJECT)) {

 
$ret2 GalleryEmbed::createUser($uid,$args);

}else {

 
$ret2 GalleryEmbed::updateUser($uid,$args);

}


if (
$ret2) {

//  echo "ret2: ". $ret2->getAsHtml() ;


and this is the error I recieve using the java applet template:
Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 1007'.

I get the same error when trying to upload on 2 different user accounts

well, I don't know what I did, but it works now lol.

I do have another question though if anyone can help.

I have a couple of "premium usergroups" on our forum and I would like to be able to give them a larger quota in the gallery. Any suggestions on how to modify the creation/update scripts to get it to translate a forum groupID into the gallery group?

Dimitrio 10-23-2006 12:34 AM

This is not longer working or not working as intended.

When I am not logged as administrator, the page appears in blank. And when I am logged in as administrator, I get several errors.

Quote:

line: 98, Failed to create G2 user with extId [1]. Here is the error message from G2:
Error (ERROR_COLLISION)

* in modules/core/classes/GalleryUser.class at line 154 (gallerycoreapi::error)
* in modules/core/classes/GalleryEmbed.class at line 360 (galleryuser::create)
* in /home/veguild/public_html/forums/gallery2.php at line 95 (galleryembed::createuser)
* in /home/veguild/public_html/forums/gallery2.php at line 50
And yes installed the plugins, but they are not working.

SilVert 10-30-2006 04:53 PM

Quote:

Originally Posted by Codeman05
This what you want?

and this is the error I recieve using the java applet template:
Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 1007'.

I get the same error when trying to upload on 2 different user accounts

well, I don't know what I did, but it works now lol.

I do have another question though if anyone can help.

I have a couple of "premium usergroups" on our forum and I would like to be able to give them a larger quota in the gallery. Any suggestions on how to modify the creation/update scripts to get it to translate a forum groupID into the gallery group?


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:

Originally Posted by Dimitrio
This is not longer working or not working as intended.

When I am not logged as administrator, the page appears in blank. And when I am logged in as administrator, I get several errors.



And yes installed the plugins, but they are not working.

this is the classic problem(which if you would read back i have stated 500 times by now) of you trying to log into Gallery with the VBB user number 1, most likley Admin.

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.

weeno 11-01-2006 08:28 PM

is there a demo of this?

arn

SilVert 11-09-2006 04:02 PM

Quote:

Originally Posted by weeno
is there a demo of this?

arn

if you want...
Http://www.racersden.net/forum/gallery.php

chevy01xtreme 11-15-2006 01:20 PM

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:

Fatal error: Call to a member function on a non-object in /home/sonezero/public_html/forum/global.php on line 241

Dimitrio 11-16-2006 02:30 PM

Quote:

Originally Posted by SilVert (Post 1107573)
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.



this is the classic problem(which if you would read back i have stated 500 times by now) of you trying to log into Gallery with the VBB user number 1, most likley Admin.

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.

how can I do that"?

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

N8R 11-29-2006 12:42 AM

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

Mr Peabody 12-01-2006 10:13 PM

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.

cthree 12-04-2006 01:25 AM

Quote:

Originally Posted by brvheart (Post 1094139)
I am having the issue of having created a user with the userid of 1 bumping with the one that VB has for me as an admin.

I am not clear on how to fix this even though I have been reading this thread all day :(

Could someone please give me a hand?

My Only advice is to NEVER use the default #1 Admin account that any package creates, including VB. ALL authenticated applications create at least 1 account and that account is ALWAYS #1. Using this account is like logging on and using your server as root. Bad idea. First thing you should do with VB is make yourself an account #2 that you will use and abandon/disable/delete user id #1.

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.

N8R 12-07-2006 07:50 PM

No one has any help for me?

SilVert 12-09-2006 09:26 PM

Quote:

Originally Posted by Dimitrio (Post 1118659)
how can I do that"?

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

i jsut responded to your PM, but it is most likley due to your URL_Rewrite... they dotn work so well with VBB and embed mode. i disabled most of them.... if not ALL of them. i have spend countless hours in attempting to get it to work with the mod rewrite(an apache thing, that callery calls URL Rewrite :))




Quote:

Originally Posted by N8R (Post 1127730)
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

what you want is EXACTLY what the integration is for... there are really no other benefits to haveing the integration script. the script is to enable VBB to create users in Gallery.... soley... you can custom script other things...

Quote:

Originally Posted by Mr Peabody (Post 1129676)
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.

can you send me a link to what you mean? the users when they are CREATED shoudl come in as "users" not guests.... or that is how i remember it working.. look at the some of the gallery sections in the admin panel and see if there is a config setting that is not right :)

Quote:

Originally Posted by cthree (Post 1131329)
My Only advice is to NEVER use the default #1 Admin account that any package creates, including VB. ALL authenticated applications create at least 1 account and that account is ALWAYS #1. Using this account is like logging on and using your server as root. Bad idea. First thing you should do with VB is make yourself an account #2 that you will use and abandon/disable/delete user id #1.

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.

EXACTLY... but if you want to fix it you HAVE TO go into the gallery database and edit the extid's table.. the user in gallery that is number 1 needs to point to the VBB admin ID, i dotn remember it off the top of my head, but it is easy enough to find out :)

Quote:

Originally Posted by N8R (Post 1134063)
No one has any help for me?

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 :)


All times are GMT. The time now is 08:42 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
  • Page Generation 0.01825 seconds
  • Memory Usage 1,952KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (33)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete