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)

jonathanhodd 12-12-2006 07:21 AM

Ive just installed gallery 2.1.2 on vb3.6.4 and just thought i'd share my experiences based on having vb installed under /forums and the gallery under /forums/gallery2

After following the instructions in the first post none of the g2 images/javascript/css files were being called correctly (the html was showing src="forums/gallery2.." instead of src="/forums/gallery2..")

The important variables were originally set like this:

require_once('/home/thrasher/public_html/forums/gallery2/embed.php');
'embedUri' => '/gallery2.php'
'g2Uri' => 'http://www.mysite.com/forums/gallery2'

i found changing these two got everything working:

'embedUri' => 'gallery2.php'
'g2Uri' => '/forums/gallery2'

SilVert 12-14-2006 07:27 PM

Quote:

Originally Posted by jonathanhodd (Post 1136893)
Ive just installed gallery 2.1.2 on vb3.6.4 and just thought i'd share my experiences based on having vb installed under /forums and the gallery under /forums/gallery2

After following the instructions in the first post none of the g2 images/javascript/css files were being called correctly (the html was showing src="forums/gallery2.." instead of src="/forums/gallery2..")

The important variables were originally set like this:

require_once('/home/thrasher/public_html/forums/gallery2/embed.php');
'embedUri' => '/gallery2.php'
'g2Uri' => 'http://www.mysite.com/forums/gallery2'

i found changing these two got everything working:

'embedUri' => 'gallery2.php'
'g2Uri' => '/forums/gallery2'



i still have to upgrade.. thanks for the headsup man!

Mr Peabody 12-15-2006 07:15 PM

Quote:

Originally Posted by SilVert (Post 1135378)
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 :)

Sorry for the late reply.
I've attached a pic with a dummy user I made to show you what I mean. There are no options to add pics when a new account is made automatically.
Cheers
Travis

scan-pa 12-15-2006 07:17 PM

Never mind, I figured it out.

Fatal error: Call to a member function on a non-object in /home/********/public_html/forum/gallery2.php on line ###

this error is caused by deleting a user in gallery2's user db, but not removing there external id from the db. after I did that, it all works again.

extremesanity 12-17-2006 08:59 AM

1 Attachment(s)
Quote:

Originally Posted by Mr Peabody (Post 1139316)
There are no options to add pics when a new account is made automatically.

I believe this is caused by permission problems.

The problems I have so far with this integration are:
- no default sub-album built for each new user
- users can set own permissions and settings for albums (I don't need 5 mb raw pictures on my web server)

The script needs to built a default album set off of the main gallery album permissions, then set permissions for the each user and the registered user group automatically.

Is it supposed to do that now or is that something I need to add?

scan-pa 12-17-2006 03:46 PM

Quote:

Originally Posted by extremesanity (Post 1140210)
I believe this is caused by permission problems.

The problems I have so far with this integration are:
- no default sub-album built for each new user
- users can set own permissions and settings for albums (I don't need 5 mb raw pictures on my web server)

The script needs to built a default album set off of the main gallery album permissions, then set permissions for the each user and the registered user group automatically.

Is it supposed to do that now or is that something I need to add?

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.

extremesanity 12-20-2006 01:09 AM

Quote:

Originally Posted by scan-pa (Post 1140398)
With the owner admin account on gallery 2 be sure edit your guest, regestered user permisions for the main gallery page.

Yeah, thats the problem, those instructions aren't included in the original post.

Basically the way I did it was I logged into the standalone login as the admin and created a gallery. I then set permissions on that gallery to allow registered users to create albums of their own.

The problem arises because a register user has way to much freedom when creating their own album. I want a user to be able to create sub-albums, but force them to use the settings from the parent albums so they are not uploading 2000 pixel images.

In addition, the standalone version will create a default album for the user and switch them to that album when they are first created. The integration script does not yet do that. I will probably change that here fairly soon, as soon as I can get the permissions problem figured out.

reverse1312 12-21-2006 01:29 PM

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

rjdpa 12-27-2006 06:09 PM

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

Aken 12-29-2006 07:51 AM

For anyone who experienced blank pages: I kept getting a normal page when every unregistered guest got a blank one. Turns out it was simply a matter of I had added the 'gallery2' template to one style set, and my default style set was something different.

Felt really stupid, but at least it was an easily fix :) Just something to keep in mind!


All times are GMT. The time now is 03:47 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.01444 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)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