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)

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.


All times are GMT. The time now is 08:38 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.01503 seconds
  • Memory Usage 1,801KB
  • 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
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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