Topic Title: phpBB3 Integration Bugs

Forum Index » phpBB3 / Gallery 2 Integration » phpBB3 Integration Bugs
Topic URL: http://www.nukedgallery.net/postt2896.html

AuthorMessage
Post Title: phpBB3 Integration Bugs
dari
Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA
Posted: Wed Jun 28, 2006 12:45 pm
Post all your bug reports here.

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
jettyrat
Joined: Nov 28, 2005
Posts: 1161

Posted: Sun Jul 02, 2006 4:01 pm
Here's a few bugs I've come across and fixes...

Open g2helper.inc

Find:
Code: ›       $phpbbDefaultGroups = array('"GUESTS"', '"INACTIVE"', '"INACTIVE_COPPA"', '"REGISTERED"', '"REGISTERED_COPPA"', '"SUPER_MODERATORS"', '"ADMINISTRATORS"', '"BOTS"');


Replace with:
Code: ›       $phpbbDefaultGroups = array('"GUESTS"', '"INACTIVE"', '"INACTIVE_COPPA"', '"REGISTERED"', '"REGISTERED_COPPA"', '"GLOBAL_MODERATORS"', '"ADMINISTRATORS"', '"BOTS"');


Find:
Code: ›       elseif (isset($ret) && $ret->getErrorCode() & ERROR_MISSING_OBJECT) {
         /*
         * Group already exists in gallery, so do nothing!


Replace with:
Code: ›       elseif (isset($ret)) {
         /*
         * Group already exists in gallery, so do nothing!


Open includes/acp/acp_gallery2.php

Find: (this removes the commented section and fixes an issue with double $ at versionData[0]
Code: › /*            if ($fp = @fopen($this->_integrationVersionUrl, 'r')) {
               $versionData = fread($fp, 4096);

               fclose($fp);

               $versionData = explode("\n", $versionData);

               $integrationVersion = explode('.', $this->_integrationVersion);

               if ($$versionData[0] == $integrationVersion[0] && $versionData[1] == $integrationVersion[1] && $versionData[2] == $integrationVersion[2]) {   
                  $versionText = $user->lang['GALLERY2_TO_DATE'];
               }
               else {
                  $versionText = sprintf($user->lang['GALLERY2_NOT_TO_DATE'], "$versionData[0].$versionData[1].$versionData[2]") . sprintf($user->lang['GALLERY2_VIEW_CHANGES'], $this->_integrationChangeLog, $this->_integrationDownload);
               }
            }
            else {
               $versionText = sprintf($user->lang['GALLERY2_URL_FAILED'], $this->_integrationVersionUrl);
            }
*/


Replace with:
Code: ›             if ($fp = @fopen($this->_integrationVersionUrl, 'r')) {
               $versionData = fread($fp, 4096);

               fclose($fp);

               $versionData = explode("\n", $versionData);

               $integrationVersion = explode('.', $this->_integrationVersion);

               if ($versionData[0] == $integrationVersion[0] && $versionData[1] == $integrationVersion[1] && $versionData[2] == $integrationVersion[2]) {   
                  $versionText = $user->lang['GALLERY2_TO_DATE'];
               }
               else {
                  $versionText = sprintf($user->lang['GALLERY2_NOT_TO_DATE'], "$versionData[0].$versionData[1].$versionData[2]") . sprintf($user->lang['GALLERY2_VIEW_CHANGES'], $this->_integrationChangeLog, $this->_integrationDownload);
               }
            }
            else {
               $versionText = sprintf($user->lang['GALLERY2_URL_FAILED'], $this->_integrationVersionUrl);
            }

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
Kudlaty
Joined: Mar 26, 2007
Posts: 3

Posted: Tue Mar 27, 2007 2:28 pm
Hi!

I use PhpBB3 Beta5. Only with the intergrated version I get to big letters, standalone works fine.

so what i must to do to correct this??

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
jettyrat
Joined: Nov 28, 2005
Posts: 1161

Posted: Sat Mar 31, 2007 12:05 am
I just installed a fresh copy of gallery 2.2.1 and phpbb3.0b5, then went through the integration. There were a few changes to the php code, but nothing to do with page rendering and I don't see this problem.

Have you changed something in the phpbb3 layout? Try leaving out the changes in the integration to the gallery theme.css. ie, instead of changing the font-size to 100%, leave it at 62.5%.

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
Kudlaty
Joined: Mar 26, 2007
Posts: 3

Posted: Sat Mar 31, 2007 1:55 am
I eliminate this when i change all of em to px.
But something still is bad...

www.kudlaty.frihost.net/check/board/

This is a polish forum...

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
andrepl
Joined: May 11, 2007
Posts: 2

Posted: Fri May 11, 2007 12:51 pm
I installed the mod today and everything seems to have installed correctly, but when i got to 'synchronize users' i just get a blank white page. if I try to visit the gallery it tells me that the admin id isn't valid and i should run the synchronization at least once before proceeding, but again, the synchronization only gives me a blank white page.

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
chriushikas
Joined: Jun 17, 2007
Posts: 1

Posted: Mon Jun 18, 2007 2:24 am
Hello,
Just installed fresh phpBB3 and Gallery 2 but i get a strange error when i try to go to forum administration -> General -> gallery2 settings...
All i see is { Integration title } but nothing more... so basically i cant set up...

Maybe any help possible on this one?

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
hazmat
Joined: Aug 24, 2007
Posts: 11

Posted: Tue Aug 28, 2007 11:44 am
phpBB3 RC4 / Gallery 2.2.2

I'll reserve most comments since I realize that the integration package hasn't been updated for the most recent versions of phpBB3. The one thing is that the link to the forum links to the root of the web site.

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
mckooter
Joined: Jul 30, 2004
Posts: 3

Posted: Wed Nov 21, 2007 8:21 pm
tiny one but noticed it during my convert:

prosilver_mods.txt
Lines: 115-118
Code: ›
#
#-----[ OPEN ]------------------------------------------
#
styles/subSilver/template/memberlist_view.html


should say:
Code: ›
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/memberlist_view.html



tiny one, but figured id point it out

thx
McK

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
smg
Joined: Jul 21, 2008
Posts: 15

Posted: Sun Aug 03, 2008 3:27 pm
G2Integ/templates/prosilver.xml

Quote: ›
Included Files
root/styles/prosilver/imageset/icon_user_gallery.gif,
root/styles/prosilver/imageset/en/button_gallery.gif,
root/styles/prosilver/template/gallery2.html,
Arrow root/styles/prosilver/theme/gallery_overrides.css,
root/styles/prosilver/theme/images/icon_gallery.gif

Included file is actually named g2embed_overrides.css

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
sonmer
Joined: Aug 17, 2008
Posts: 1

Posted: Sun Aug 17, 2008 2:30 pm
Hi everybody.
I found a small glitch in the lightbox integration (the one for gallery itself). It is about the "view item details" link under the picture. normaly it looks quite good, but if you use the picture frame plugin it becomes ugly, because the link is in the frame and not below.

small changes to the /themes/matrix/templates/local/album.tpl

find:
Code: › {if isset($theme.params.$frameType) && isset($child.thumbnail)}
            {g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
               width=$child.thumbnail.width height=$child.thumbnail.height}
            {if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem' || $child.entityType == 'GalleryMovieItem')}
               <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" >
               {g->image id="%ID%" item=$child image=$child.thumbnail
                  class="%CLASS% giThumbnail"}
            {else}
               <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
                  imgLink="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}"
                  title="{$child.title|markup}<br /><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}&quot;>View Item Details</a>"
                  pageLink="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
                  rel="lightbox[photos]" >
               {g->image id="%ID%" item=$child image=$child.thumbnail
                  class="%CLASS% giThumbnail"}
               <br />
               <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Item Details
            {/if}
            </a>
            {/g->container}


and replace with:
Code: › {if isset($theme.params.$frameType) && isset($child.thumbnail)}
            {g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
               width=$child.thumbnail.width height=$child.thumbnail.height}
            {if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem' || $child.entityType == 'GalleryMovieItem')}
               <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" >
               {g->image id="%ID%" item=$child image=$child.thumbnail
                  class="%CLASS% giThumbnail"}
               </a>
            {else}
               <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
                  imgLink="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}"
                  title="{$child.title|markup}<br /><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}&quot;>View Item Details</a>"
                  pageLink="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
                  rel="lightbox[photos]" >
               {g->image id="%ID%" item=$child image=$child.thumbnail
                  class="%CLASS% giThumbnail"}
            {/if}
            {/g->container}
            {if !($child.canContainChildren || $child.entityType == 'GalleryLinkItem' || $child.entityType == 'GalleryMovieItem')}
               <br />
               <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Item Details</a>
            {/if}


if this is done, the link always appears below the frame.

hope it helps.

have fun. Laughing
sonmer

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
mineeds01
Joined: Mar 26, 2009
Posts: 1

Posted: Thu Mar 26, 2009 12:36 am
If you people need services in this category, please post your needs on Mineeds.com and providers will post their bids on your needs.

Seattle Web Designers & Programmers - Get Bids & Save | MiNeeds [mineeds.com]

AuthorMessage
Post Title: Re: phpBB3 Integration Bugs
AgeofStrife
Joined: Feb 12, 2009
Posts: 3

Posted: Wed Jul 01, 2009 4:56 am
Discovered an odd one, not sure what's casusing it as I think it worked fine a few weeks ago. I'm in the final stages of tweaking my soon to be live site (sorry, no public access yet), but I think I've found a problem in the Logout integration. I'm running Gallery 2.3 with phpBB 3.0.4 (this also occurs with 3.0.5), and I'm having trouble reproducing it so it might be down to cookies or some issue with the session handling.

When clicking Logout in phpBB, which goes to ucp.php?mode=logout, sometimes the resultant page is blank. Disabling the line

$ret = GalleryEmbed::logout(array('embedUri' => $config['g2i_embedUri']));

works around this, but obviously that means that the user is not logged out of the Gallery system. I can only assume that there is an error occuring without a handler, so instead of the logout step failing gracefully it's just stopping. I don't know if this is in the integration code or in the Gallery codebase itself.

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group