Quote:
Originally Posted by extremesanity
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.