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)

SilVert 12-29-2006 07:37 PM

Quote:

Originally Posted by scan-pa (Post 1140398)
Do you have your vB 3.6.4 usergroup permisions set in the gallery2.php file?
It should go after this line (aprox line 76)
'activeUserId' => $uid));

Add this line after:
----------------------------------------
if ($vbulletin->userinfo[usergroupid] == 5 or $vbulletin->userinfo[usergroupid] == 6 or $vbulletin->userinfo[usergroupid] == 7 or $vbulletin->userinfo[usergroupid] == 39 or $vbulletin->userinfo[usergroupid] == 43)
{
----------------------------------------

Change the number after the == to whatever vB usergroups ID# you want to allow Album & photo posting access to.

and add a } after this line of the 2nd. else statement to make 3 }

ex:
Should look like this (aprox line to add in area of line 123:

if ($ret) {
print $ret->getAsHtml();
return false;
}
}
else
{
echo '<HR>line: '.__LINE__.', G2 did not return a success status. Here is the error message from G2: <br />'.$ret->getAsHtml();
return false;
}
}
else
{
echo '<HR>line: '.__LINE__.', G2 did not return a success status. Here is the error message from G2: <br />'.$ret->getAsHtml();
return false;
}
}
} //<----- Add this } //

-------------------------------------------

With the owner admin account on gallery 2 be sure edit your guest, regestered user permisions for the main gallery page.


hope that helps.

this guy has the right idea! that code that you are talking about is the code that i contributed... i did not create the thread so i have no editing power over it :)

side note: a few weeks ago i edited Gallery2's site to point to MY gallery integration so that people know this project is still alive :) just to make you all aware :)


Quote:

Originally Posted by reverse1312 (Post 1142819)
Hello All,

my question :

Would it be possible

- to have Gallery on one server and vB on another (to save bandwidth on the vB server ) and though just 1 login system ?

or

- to have Gallery and vB on the same server (which would share the same registration process) and store all the media files on another server ?

By other server I mean another domain

Thanks

i dont see why not, gallery and VBB on separate servers is probably do able as well as gallery and VBB on the same server, btu the image store on another server is easyer to do IMO...

gallery and VBB on another server: i think woudl be more complicated. you would have to point the integration script to the other server, im not sure how happy VBB/Gallery would be with this, but i dont see why it would not work :)

VBB and Gallery on the same, images on another: this is the easyer of the two to do(i think). when you install gallery just point the image store directory to the other server(or however your prefered method would be) and then go forth like normal. depending how gallery acts with this all woudl be fine. this question would be better directed at Gallery2.org though... they know the software much better than I. i can only guess as of to how it works :)




Quote:

Originally Posted by rjdpa (Post 1145937)
I'm getting this error when trying to add a user in the VB Admin Control Panel after installing the plugins. I modified the paths and followed all of the directions...

User Manager

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/rjmdiam/public_html/olfaithful/forums/includes/class_dm_user.php(1657) : eval()'d code on line 10

i have never used the plugin and had it working. but all i can recommend is that you tripple check the paths and the variables they want.. aka absolute path and... the other path, whatever its name is :)

Codeman05 12-30-2006 06:22 PM

I have a very strange problem. If you guys could help out that would be great.

So far this plugin has been working great. However, I recently noticed that Page 10 of the main album index does not work...everything else is fine.

If you go to page 10, here is the error you get
Quote:

Error (ERROR_MISSING_OBJECT) : Missing object for 4871

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1852 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 109 (GalleryStorageExtras::_identifyEntities)
* in modules/core/classes/GalleryStorage.class at line 293 (GalleryStorageExtras::loadEntities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (GalleryStorage::loadEntities)
* in modules/core/classes/GalleryCoreApi.class at line 2382 (GalleryEntityHelper_simple::loadEntitiesById)
* in modules/core/classes/GalleryTheme.class at line 1243 (GalleryCoreApi::loadEntitiesById)
* in themes/classic/theme.inc at line 118 (GalleryTheme::loadCommonTemplateData)
* in modules/core/classes/GalleryTheme.class at line 916 (ClassicTheme::showAlbumPage)
* in modules/core/classes/GalleryView.class at line 325 (GalleryTheme::loadTemplate)
* in main.php at line 386 (GalleryView::doLoadTemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 192
* in /data/www/jeeps-offroad.com/www/image-hosting.php at line 124 (GalleryEmbed::handleRequest)
* in /data/www/site.com/www/image-hosting.php at line 50
* in /data/www/site.com/www/vbseo.php at line 846
* in /data/www/site.com/www/vbseo.php at line 3
I'm not sure what is causing this, and why it is only this one page that is effected. Any ideas?

RobParker 01-04-2007 01:50 PM

I'm having a bit of a strange problem and I was hoping someone could help.

Using this embedded in the latest VB.

The front page of the gallery works fine but when I go into an album to actually look at what's in it it seems to come out of embedded mode and is displayed full screen. It now no longer appears embedded despite the URL still being something like gallery2.php?g2_itemId=206.

TheHeartSmasher 01-10-2007 08:28 PM

Where are the demos, screenshots, etc. for this from the author in the main post.

SilVert 01-25-2007 02:14 PM

Quote:

Originally Posted by Codeman05 (Post 1147649)
I have a very strange problem. If you guys could help out that would be great.

So far this plugin has been working great. However, I recently noticed that Page 10 of the main album index does not work...everything else is fine.

If you go to page 10, here is the error you get


I'm not sure what is causing this, and why it is only this one page that is effected. Any ideas?

did you move or modify and of the gallery files? the embed script requires no manipulation of files other than the integration script.... and twekaing yoru gallery itself :)


Quote:

Originally Posted by RobParker (Post 1150604)
I'm having a bit of a strange problem and I was hoping someone could help.

Using this embedded in the latest VB.

The front page of the gallery works fine but when I go into an album to actually look at what's in it it seems to come out of embedded mode and is displayed full screen. It now no longer appears embedded despite the URL still being something like gallery2.php?g2_itemId=206.

im not sure, but it seems like the URL Rewrite might be messing things up? have you looked into that?

Quote:

Originally Posted by TheHeartSmasher (Post 1155745)
Where are the demos, screenshots, etc. for this from the author in the main post.

i am not the author, just a guy who supports it...
http://www.RacersDen.net/forum/gallery.php is my gallery... thats about the best i got for you...

OpalCat 02-04-2007 06:05 AM

Pardon me for sounding like an idiot, but I'm about frothing at the mouth in frustration after spending over an hour on this, and searching here and at the Gallery site does NO good because it gets way too many search results, exactly zero of which have anything to do with answering my question. Namely: What the holy heck am I supposed to actually DO with the "gallery-plugins.xml" file? Keep in mind that this is also my first real attempt to use Gallery2 (been too happy with Gallery1 on my other sites for all these years) so if this is some incredibly well known process in G2, I don't know it because I haven't used G2 before.

I'll be over here in the corner whimpering and twitching, awaiting some kind soul's response --->

I am adding this gallery as part of upgrading vbulletin, and so this is all on a test server at the moment. Anyway, I have the thing installed and quasi-functional, but as soon as you click on an album, you are whisked out of the embedded environment. Why?

http://test.fathom.org/forums/gallery2.php

All_Starzes 02-21-2007 09:24 AM

I have a big Problem.
I have install the vb Version 3.6.4 and Gallery 2.1

When i logged in as M?cke it gives the follow problem...

Code:

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

    * in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 317 (GalleryCoreApi::error)
    * in modules/core/classes/GalleryStorage.class at line 304 (GalleryStorageExtras::saveEntity)
    * in modules/core/classes/GalleryEntity.class at line 317 (GalleryStorage::saveEntity)
    * in modules/core/classes/GalleryUser.class at line 212 (GalleryEntity::save)
    * in modules/core/classes/GalleryEmbed.class at line 365 (GalleryUser::save)
    * in /var/www/web0/html/ni/gallery2.php at line 95 (GalleryEmbed::createUser)
    * in /var/www/web0/html/ni/gallery2.php at line 50

I think that is the collation.... the gallery works on utf8 and my board in ISO...
i dont know really...
I hope some people can help me!!!!:confused: :confused: :confused:

cgray24 02-22-2007 09:53 PM

Hey guys,

Thanks for all the Great work and help here! I was able to install the embed and everything thing works.

The problem im having now is the same as others and the Gallery Remote doesnt connect with anything other than the admin account (the one im assuming was already in Gallery to begin with)

No other user, admin privileges or not, can get it to connect. It gives error

"Invalid username/password.

If your Gallery is embedded inside a CMS like PostNuke, you need to use the "native" (non-embedded) Gallery URL to log in, as well as the native Gallery user and password. You can test these by trying to go the native URL and trying to log in.
"

Since the users getting the error get it on the same URL that the admin user/pass works, im assuming this problem is because of the way vb has set the passwords or something in gallery.

My folder stucture is
www/forum/
www/forum/gallery

Im hoping someone smarter than me here has figured this out? Remote is a great desire for our needs, any help would be appreciated.

Moon! 03-01-2007 06:43 PM

Thank you very much for putting this together, I am very pleased with the end results and how easy it was me to do.

cthree 03-05-2007 12:15 PM

There is a bug in the first post, Step 2:

$uid = $vbulletin->userinfo['userid'] = 0 ? '' : $vbulletin->userinfo['userid'];

should be:

$uid = $vbulletin->userinfo['userid'] == 0 ? '' : $vbulletin->userinfo['userid'];


All times are GMT. The time now is 08:39 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.02749 seconds
  • Memory Usage 1,783KB
  • 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_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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